|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.autonomy.aci.businessobjects.AciBusinessObject
com.autonomy.aci.businessobjects.Privilege
Represents a Privilege defined on IDOL.
Constructor Summary | |
Privilege()
Create a privilege with no name and the SingleValue property set to false . |
|
Privilege(java.lang.String sPrivilegeName)
Create a privilege with the given name and the SingleValue property set to false . |
|
Privilege(java.lang.String sPrivilegeName,
boolean bSingleValued)
Create a privilege with the given name and the SingleValue property set to whatever is specified. |
Method Summary | |
void |
addValue(java.lang.String sValue)
Add a value to those set on this privilege. |
void |
clearValues()
Remove all values set on this privilege. |
boolean |
equals(java.lang.Object o)
Privileges are defined to be equal if their privilege names are the same (case insensitive). |
java.lang.String |
getPrivilegeName()
Read the name of this privilege. |
java.util.ArrayList |
getValues()
Read the values set on this privilege. |
boolean |
isSingleValued()
Determine whether this privilege is single-valued or not. |
void |
removeValue(java.lang.String sValue)
Remove a value from those set on this privilege. |
void |
setPrivilegeName(java.lang.String sPrivilegeName)
Set the name of this privilege. |
void |
setSingleValued(boolean bSingleValued)
Set whether this privilege is single-valued or not. |
void |
setValues(java.util.ArrayList alValues)
Set all the values of this privilege. |
java.lang.String |
toString()
|
Methods inherited from class com.autonomy.aci.businessobjects.AciBusinessObject |
getUID, setUID |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Privilege()
false
.
public Privilege(java.lang.String sPrivilegeName)
false
.
sPrivilegeName
- the name of this privilege.public Privilege(java.lang.String sPrivilegeName, boolean bSingleValued)
sPrivilegeName
- the name of this privilege.Method Detail |
public void setPrivilegeName(java.lang.String sPrivilegeName)
sPrivilegeName
- the name of the privilege.public void setValues(java.util.ArrayList alValues)
alValues
- a list of String
s giving the values for this privilege.
If this privilege is set to be single-valued, only the first value in the list is used.public void addValue(java.lang.String sValue)
sValue
- the value to add.public void removeValue(java.lang.String sValue)
sValue
- the value to remove.public void clearValues()
public java.lang.String getPrivilegeName()
public java.util.ArrayList getValues()
ArrayList
of String
s giving the values set on this
privilege.public void setSingleValued(boolean bSingleValued)
bSingleValued
- whether this privilege is single-valued or not.public boolean isSingleValued()
public boolean equals(java.lang.Object o)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |