|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CheckPrivilegesResult
Interface for reporting the results of a privileges check from a 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.
Job.checkConfig(com.novell.nds.dirxml.job.JobManager,java.util.Locale)
,
CheckPrivileges
Field Summary |
---|
Fields inherited from interface com.novell.nds.dirxml.job.JobResult |
---|
ABORTED, ERROR, SUCCESS, WARNING |
Method Summary | |
---|---|
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(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. |
Methods inherited from interface com.novell.nds.dirxml.job.JobResult |
---|
getCode, getLevel, getMessage, getObject, setCode, setLevel, setMessage, setObject |
Method Detail |
---|
DirectoryObject getTrusteeObject()
void setTrusteeObject(DirectoryObject trustee)
trustee
- trustee objectDirectoryObject getTargetObject()
JobResult.getObject()
.
void setTargetObject(DirectoryObject target)
JobResult.setObject
.
target
- target objectString getAttributeName()
"[Entry Rights]"
or
"[All Attribute Rights]"
.
void setAttributeName(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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |