|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.idm.util.progress.ProgressReporter
oracle.idm.util.progress.ProgressProcessor
oracle.idm.provisioning.tools.BulkProvision
public class BulkProvision
This class provides necessary API to provision users read from a Input stream as LDIF content into OID
Nested Class Summary | |
---|---|
static class |
BulkProvision.ProgressInfo |
Field Summary | |
---|---|
static Transitions |
TRANSITIONS State transitions supported by BulkProvision. |
Fields inherited from class oracle.idm.util.progress.ProgressProcessor |
---|
ABORTED, CANCELED, FINISHED, progressEventDurationInfo, progressEventLocalizedMessage, progressEventMessage, progressEventName, progressEventPercentInfo, progressEventProgressInfo, progressEventStateInfo, progressEventStatusInfo, progressEventStepInfo, progressEventThrowable, RESTORED, RESUMED, STARTED, STOPPED, SUSPENDED, TIMEDOUT, transitions |
Constructor Summary | |
---|---|
BulkProvision(javax.naming.ldap.LdapContext ldapCtx, java.lang.String realmName, java.io.InputStream inputStream, java.io.OutputStream failedStream, java.io.PrintStream logStream) Constructor |
|
BulkProvision(javax.naming.ldap.LdapContext ldapCtx, java.lang.String realmName, java.io.InputStream inputStream, java.lang.String inEnc, java.io.OutputStream failedStream, java.io.PrintStream logStream) |
|
BulkProvision(javax.naming.ldap.LdapContext ldapCtx, java.lang.String realmName, java.lang.String inputFile, java.lang.String failedFile, java.lang.String logFile) Constructor |
|
BulkProvision(javax.naming.ldap.LdapContext ldapCtx, java.lang.String realmName, java.lang.String inputFile, java.lang.String failedFile, java.lang.String logFile, java.util.Locale l) |
|
BulkProvision(javax.naming.ldap.LdapContext ldapCtx, java.lang.String realmName, java.lang.String inputFile, java.lang.String inEnc, java.lang.String failedFile, java.lang.String logFile) |
Method Summary | |
---|---|
boolean |
getContinueOnFailure() Getter for the continueOnFailure property. |
int |
getFailureCount() Getter for the failureCount property. |
protected java.lang.String |
getProgressEventMessage() Creates progress event message. |
protected PercentInfo |
getProgressEventPercentInfo() Creates progress event percent info. |
protected java.lang.Object |
getProgressEventProgressInfo() Creates progress event progress info. |
protected StepInfo |
getProgressEventStepInfo() Creates progress event step info. |
int |
getSuccessCount() Getter for the successCount property. |
int |
getTotalCount() Getter for the totalCount property. |
static void |
main(java.lang.String[] args) Unit Test Driver program |
protected void |
process(boolean quiet) The main driver method that does the bulk provisioning |
void |
resume() Resume processing |
void |
setContinueOnFailure(boolean continueOnFailure) Setter for the continueOnFailure property. |
void |
start() Start processing, calls process(); |
void |
stop() Stop processing |
void |
suspend() Suspend processing |
Methods inherited from class oracle.idm.util.progress.ProgressProcessor |
---|
abort, block, block, block, canAbort, canCancel, cancel, cancel, canFinish, canReset, canRestore, canResume, canStart, canStop, canSuspend, canTimeout, canTransition, finish, getProgressEvent, getProgressEventDurationInfo, getProgressEventLocalizedMessage, getProgressEventName, getProgressEventStateInfo, getProgressEventStatusInfo, getProgressEventThrowable, getTransitions, isAborted, isCanceled, isFinal, isFinished, isInitial, isIntermediate, isNext, isPrevious, isReachable, isReset, isRestored, isResumed, isStarted, isStopped, isSuspended, isTimedout, isUnreachable, ping, reset, restore, resume, run, sendProgressEvent, setTransitions, start, stop, suspend, timeout, transition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Transitions TRANSITIONS
null -> STARTED STARTED -> [ STOPPED | SUSPENDED | FINISHED | ABORTED | TIMEDOUT ] SUSPENDED -> [ STOPPED | RESUMED | FINISHED | ABORTED | TIMEDOUT ] RESUMED -> [ STOPPED | SUSPENDED | FINISHED | ABORTED | TIMEDOUT ]
Constructor Detail |
---|
public BulkProvision(javax.naming.ldap.LdapContext ldapCtx, java.lang.String realmName, java.io.InputStream inputStream, java.io.OutputStream failedStream, java.io.PrintStream logStream)
ldapCtx
- the OID to which the entries must be loadedrealmName
- The realm into which the bulk provisioning needs to be done.inputStream
- an input stream supplying the LDIF datafailedStream
- an output stream to which failed LDIF entries are writtenlogStream
- an output stream to which log messaes are writtenpublic BulkProvision(javax.naming.ldap.LdapContext ldapCtx, java.lang.String realmName, java.io.InputStream inputStream, java.lang.String inEnc, java.io.OutputStream failedStream, java.io.PrintStream logStream)
public BulkProvision(javax.naming.ldap.LdapContext ldapCtx, java.lang.String realmName, java.lang.String inputFile, java.lang.String failedFile, java.lang.String logFile) throws java.io.IOException
ldapCtx
- the OID to which the entries must be loadedrealmName
- The realm into which the bulk provisioning needs to be done.inputFile
- an input filename supplying the LDIF datafailedFile
- an output filename to which failed LDIF entries are writtenlogFile
- an output filename to which log messaes are writtenjava.io.IOException
- when an I/O error occurrspublic BulkProvision(javax.naming.ldap.LdapContext ldapCtx, java.lang.String realmName, java.lang.String inputFile, java.lang.String failedFile, java.lang.String logFile, java.util.Locale l) throws java.io.IOException
java.io.IOException
public BulkProvision(javax.naming.ldap.LdapContext ldapCtx, java.lang.String realmName, java.lang.String inputFile, java.lang.String inEnc, java.lang.String failedFile, java.lang.String logFile) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public boolean getContinueOnFailure()
public void setContinueOnFailure(boolean continueOnFailure)
continueOnFailure
- true continue with the next user on failurepublic int getTotalCount()
public int getSuccessCount()
public int getFailureCount()
public void start() throws java.io.IOException, ProvisioningException, java.lang.Exception
start
in class ProgressProcessor
java.io.IOException
ProvisioningException
java.lang.Exception
public void stop()
stop
in class ProgressProcessor
public void suspend()
suspend
in class ProgressProcessor
public void resume()
resume
in class ProgressProcessor
protected void process(boolean quiet) throws java.io.IOException, ProvisioningException, java.lang.Exception
process
in class ProgressProcessor
quiet
- if quiet is true, this method does not throw transition exceptionsjava.io.IOException
- when and I/O erroor occurs i.e while reading the LDIF input stream or writing the bad entries to the output stream.ProvisioningException
- when user creation/provisioning failsjava.lang.Exception
protected java.lang.String getProgressEventMessage()
getProgressEventMessage
in class ProgressProcessor
protected StepInfo getProgressEventStepInfo()
getProgressEventStepInfo
in class ProgressProcessor
protected PercentInfo getProgressEventPercentInfo()
getProgressEventPercentInfo
in class ProgressProcessor
protected java.lang.Object getProgressEventProgressInfo()
getProgressEventProgressInfo
in class ProgressProcessor
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |