public interface CheckPrivilegesResult extends JobResult
Job
implementation.
Note: It is not necessary to set a message or code for a "privileges" result. The UI that
reports the error or warning will construct an appropriate message based on the
information contained in the result instance. However, if the job author desires to
report additional information to the user then the message and/or code may be set.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeName()
Get the attribute name to which the trustee object needs rights.
|
int |
getNeededPrivileges()
Get the bit-mapped value that indicates the right(s) that the trustee object needs
on the target object.
|
DirectoryObject |
getTargetObject()
Return the object to which the trustee object needs rights.
|
DirectoryObject |
getTrusteeObject()
Return the object that needs rights to the target object.
|
void |
setAttributeName(java.lang.String attrName)
Set the attribute name to which the trustee object needs rights.
|
void |
setNeededPrivileges(int privileges)
Set the bit-mapped value that indicates the right(s) that the trustee object needs
on the target object.
|
void |
setTargetObject(DirectoryObject target)
Set the object to which the trustee object needs rights.
|
void |
setTrusteeObject(DirectoryObject trustee)
Set the object that needs rights to the target object.
|
getCode, getLevel, getMessage, getObject, setCode, setLevel, setMessage, setObject
DirectoryObject getTrusteeObject()
void setTrusteeObject(DirectoryObject trustee)
trustee
- trustee objectDirectoryObject getTargetObject()
JobResult.getObject()
.void setTargetObject(DirectoryObject target)
JobResult.setObject
.target
- target objectjava.lang.String getAttributeName()
"[Entry Rights]"
or
"[All Attribute Rights]"
.void setAttributeName(java.lang.String attrName)
"[Entry Rights]"
or
"[All Attribute Rights]"
.attrName
- attribute nameint getNeededPrivileges()
CheckPrivileges.ATTR_READ
,
CheckPrivileges.ENTRY_BROWSE
, etc.CheckPrivileges
void setNeededPrivileges(int privileges)
privileges
- any combination of CheckPrivileges.ATTR_READ
,
CheckPrivileges.ENTRY_BROWSE
, etc.)CheckPrivileges