|
Java SDK r12.5 SP 8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TSContext
Contains information about the current task, such as the subject of
the task, security information, and an instance of the task.
You retrieve the current TSContext
object from the
getTSContext()
method
inherited by ...Context
objects (such as BLTHContext
).
TSContext
is passed into methods of provider objects such as
UserProvider
.
Provider objects are retrieved through
ProviderAccessor
.
Method Summary | |
---|---|
boolean |
checkSecurityAgainstTSContext()
Determines whether security checks will be made against the subject's attributes and group memberships as stored in the data store, or against the current information in TSContext . |
User |
getAdministrator()
Retrieves the administrator who is executing the current task. |
java.util.Vector |
getGroupsToAddSubjectTo()
Retrieves the groups to which the subject is being added. |
java.util.Vector |
getGroupsToRemoveSubjectFrom()
Retrieves the groups from which the subject is being removed. |
ProposedChangesCollection |
getProposedChangesCollection()
Get proposed changes. |
ManagedObject |
getSubject()
Retrieves the subject of the current task -- for example, a User object in a Create User task. |
AdminTask |
getTask()
Retrieves the admin task being executed. |
void |
setSubject(ManagedObject obj)
Internal use only. |
void |
setTask(AdminTask task)
Internal use only. |
Method Detail |
---|
User getAdministrator() throws java.lang.Exception
java.lang.Exception
ManagedObject getSubject()
User
object in a Create User task.
AdminTask getTask()
java.lang.Exception
void setSubject(ManagedObject obj) throws java.lang.Exception
java.lang.Exception
void setTask(AdminTask task) throws NotAuthorizedException, java.lang.Exception
NotAuthorizedException
java.lang.Exception
java.util.Vector getGroupsToAddSubjectTo()
Retrieves the groups to which the subject is being added.
null
if the subject is not a
GroupableObject
.
GroupableObject
,
but is not being added to any groups.java.util.Vector getGroupsToRemoveSubjectFrom()
null
if the subject is not a
GroupableObject
.
GroupableObject
,
but is not being removed from any groups.boolean checkSecurityAgainstTSContext()
TSContext
.
true
to make security checks against the current
information in TSContext
, or false
to make
security checks against the information stored in the data store
for this object.ProposedChangesCollection getProposedChangesCollection()
ProposedChangesCollection
contains the relationship changes (assigned and revoked)
like group and role memberships
|
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 |