|
Java SDK r12.5 SP 8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaskInfo
Provides information about the current task context -- for example,
the time the task was created, the name and unique identifier of the
administrator who is executing the task, and the organization
associated with the subject of the task.
The task's subject is the object that is directly affected
by the task. For example, for a Create User task, the
subject is User
.
The TaskInfo
interface is part of the core Identity Manager
API architecture. The ...Context
object in each
Identity Manager API inherits TaskInfo
methods.
Method Summary | |
---|---|
void |
addErrorObject(java.lang.String key,
java.lang.Object[] values,
java.lang.String tabName)
Add a task error object to the task session. |
void |
addMessageObject(IMSException ex,
java.lang.String component,
ProcessStep processStep,
ErrorLevel errorLevel)
Adds a response message that is displayed as a part of the task submission acknowledgement. |
void |
addMessageObject(java.lang.String message,
java.lang.String component,
ProcessStep processStep,
ErrorLevel errorLevel)
Adds a response message that is displayed as a part of the task submission acknowledgement. |
void |
addStatusDetail(RuntimeStatusDetail rst)
Add a statusDetail record to the Runtime status detail. |
RuntimeStatusDetail |
createRuntimeStatusDetail()
Get a instance of a RuntimeStatusDetail record. |
ActionType |
getActionType()
Return the ActionType of the current task. |
java.lang.String |
getAdminFriendlyName()
Retrieves the name of the administrator who is executing the task. |
User |
getAdministrator()
Retrieves the administrator who is executing the task. |
AdminTask |
getAdminTask()
Retrieves the admin task being executed. |
java.lang.String |
getAdminUniqueName()
Retrieves the unique identifier of the administrator who is executing the task. |
java.lang.String |
getAuthDirFriendlyName()
Returns the friendly name of the directory where the administrator who is executing the task was authenticated. |
java.lang.String |
getAuthDirUniqueName()
Retrieves the unique name of the user directory where the administrator who is executing the task was authenticated. |
java.lang.String |
getEnvironmentFriendlyName()
Retrieves the name of the Identity Manager environment where the task is being executed. |
java.lang.String |
getEnvironmentUniqueName()
Retrieves the unique identifier for the Identity Manager environment |
Organization |
getObjectOrganization()
Retrieves the organization of the task's subject. |
java.lang.String |
getObjectOrganizationFriendlyName()
Retrieves the friendly name of the subject's organization. |
java.util.Date |
getSessionCreateTime()
Retrieves the creation date of the task context. |
java.lang.String |
getSessionId()
Retrieves the Identity Manager task context ID. |
java.lang.String |
getSiteMinderSessionId()
Retrieves the unique ID of a SiteMinder session. |
java.lang.String |
getSiteMinderSessionSpec()
Retrieves the SiteMinder session specification. |
java.lang.String |
getSiteMinderTransactionId()
Retrieves the transaction ID of a SiteMinder request. |
java.lang.String |
getSMHeader(java.lang.String headerName)
Retrieves the specified SiteMinder header information from the task session. |
ManagedObject |
getSubject()
Return the subject for the current task. |
java.util.Vector |
getSubjects()
Return the subjects for the current task. |
java.lang.String |
getTaskApplication()
Retrieves the name of the application associated with the current task. |
java.lang.String |
getTaskCategory()
Retrieves the category of the current task. |
java.lang.String |
getTaskFriendlyName()
Retrieves the user-defined name for the task. |
java.lang.String |
getTaskUniqueName()
Retrieves the unique identifier for the task. |
TSContext |
getTSContext()
Retrieves the task session context information for the current task session. |
java.util.Locale |
getUserLocale()
Retrieves the java.util.Locale object representing
the locale where the current task is being executed -- for example,
the browser locale of the administrator executing a task. |
boolean |
isAuditableTask()
Retrives the Auditable flag of the current task. |
boolean |
isTaskReadOnly()
Specifies whether the current task is a read-only task. |
boolean |
isWorkflowTask()
Retrives the workflow flag of the current task. |
void |
sendAuditEvent(AuditEvent event)
Sends an auditing event to the Identity Manager auditing mechanism. |
Method Detail |
---|
java.util.Date getSessionCreateTime()
java.lang.String getTaskFriendlyName()
java.lang.String getAdminUniqueName()
java.lang.String getAdminFriendlyName()
java.lang.String getEnvironmentFriendlyName()
java.lang.String getTaskUniqueName()
Organization getObjectOrganization()
java.lang.String getObjectOrganizationFriendlyName()
java.lang.String getEnvironmentUniqueName()
java.lang.String getSiteMinderTransactionId()
java.lang.String getSiteMinderSessionId()
java.lang.String getSiteMinderSessionSpec()
java.lang.String getAuthDirUniqueName()
java.lang.String getAuthDirFriendlyName()
java.lang.String getTaskApplication()
java.lang.String getTaskCategory()
boolean isTaskReadOnly()
true
if the task is read-only. Otherwise,
returns false
.java.lang.String getSessionId()
java.util.Locale getUserLocale()
java.util.Locale
object representing
the locale where the current task is being executed -- for example,
the browser locale of the administrator executing a task.
boolean isWorkflowTask()
true
,
workflow is enabled for the task.boolean isAuditableTask()
true
,
Auditing is enabled for the task.User getAdministrator() throws java.lang.Exception
User
object.
java.lang.Exception
AdminTask getAdminTask()
void addMessageObject(java.lang.String message, java.lang.String component, ProcessStep processStep, ErrorLevel errorLevel) throws java.lang.Exception
IMSException
.
message
- The localized error/informational messagecomponent
- The name of the component which generated this message.processStep
- The process step which generated this messageerrorLevel
- The errorLevel associated with the message
java.lang.Exception
void addMessageObject(IMSException ex, java.lang.String component, ProcessStep processStep, ErrorLevel errorLevel) throws java.lang.Exception
IMSException
.
ex
- The IMSException which contains the localized messagecomponent
- The name of the component which generated this message.processStep
- The process step which generated this messageerrorLevel
- The errorLevel associated with the message
java.lang.Exception
java.lang.String getSMHeader(java.lang.String headerName)
Retrieves the specified SiteMinder header information from the task session.
SiteMinder includes the following default HTTP header names. You can use any of these names in theheaderName
parameter:
- SMAUTHDIRNAME
- SMAUTHDIRNAMESPACE
- SMAUTHDIROID
- SMAUTHDIRSERVER
- SMAUTHENTIC
- SMAUTHORIZED
- SMAUTHREASON
- SMAUTHTYPE
- SMDOMINOCN
- SMREALM
- SMREALMOID
- SMSDOMAIN
- SMSERVERIDENTITYSPEC
- SMSERVERSESSIONID
- SMSERVERSESSIONSPEC
- SMSESSIONDRIFT
- SMTIMETOEXPIRE
- SMTRANSACTIONID
- SMUNIVERSALID
- SMUSER
- SMUSERDN
- SMUSERMSG
- REMOTEUSER
headerName
- The name of the SiteMinder header.
TSContext getTSContext() throws java.lang.Exception
TSContext
is passed into methods of provider objects such as
UserProvider
.
java.lang.Exception
void sendAuditEvent(AuditEvent event) throws java.lang.Exception
Sends an auditing event to the Identity Manager auditing mechanism.
event
- The event to be audited.
java.lang.Exception
GenericAuditEvent
RuntimeStatusDetail createRuntimeStatusDetail()
Get a instance of a RuntimeStatusDetail record. This object will need to be submitted using the addStatusDetail method
void addStatusDetail(RuntimeStatusDetail rst) throws java.lang.Exception
Add a statusDetail record to the Runtime status detail.
rst
- A RuntimeStatusDetail object that contains the auxiliary
information to be used for additional information reporting
to the Submitted Tasks subsystem. This record will be reported against the Task if invoked on
the TaskContext or the Event if invoked at the EventContext level.
java.lang.Exception
#createStatusDetail()
void addErrorObject(java.lang.String key, java.lang.Object[] values, java.lang.String tabName) throws java.lang.Exception
key
- - localization key for error messagevalues
- - array of values for use in the rendering of the key, if it is a patterntabName
- - the name of the tab giving rise to the error
java.lang.Exception
ManagedObject getSubject()
java.util.Vector getSubjects()
ActionType getActionType()
ActionType
of the current task.
|
Java SDK r12.5 SP 8 06/13/2011 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |