|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.autonomy.aci.businessobjects.SecurityType
Holds information about a user's access to a document repository or security type. Can be used either to set a user's security information on an ACI action request or when reading a user's security details from IDOL.
Constructor Summary | |
SecurityType()
Create an empty SecurityType . |
|
SecurityType(java.lang.String sSecurityTypeName)
Create a SecurityType for a given document repository or security type. |
Method Summary | |
void |
clearSecurityFields()
Deletes all existing user fields and their values. |
java.lang.String |
getRepositoryName()
Read the name of the repository/security type that this SecurityType object
refers to. |
java.util.Set |
getSecurityFieldNames()
Read the names of the security type fields set on this SecurityType object. |
java.util.HashMap |
getSecurityFields()
Read the security type fields set on this SecurityType object and their values. |
java.lang.String |
getSecurityFieldValue(java.lang.String sFieldname)
Read the value of a given security type field. |
java.lang.String |
getSecurityFieldValue(java.lang.String sFieldname,
java.lang.String sDefaultValue)
Read the value of a given security type field. |
void |
removeSecurityField(java.lang.String sFieldname)
Deletes the field entry for the specified security field, if it exists. |
void |
setRepositoryName(java.lang.String sTypeName)
Set the name of the document repository or security type this SecurityType object
refers to. |
void |
setSecurityFields(java.util.HashMap fieldMap)
Replaces any existing security type fields with those provided. |
void |
setSecurityFieldValue(java.lang.String sFieldname,
java.lang.String sFieldValue)
Set the value of a security field. |
java.lang.String |
toString()
Lists all the security type fields and values set for this repository/security type. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SecurityType()
SecurityType
. The repository or security type should then be
specified by using setRepositoryName
.
public SecurityType(java.lang.String sSecurityTypeName)
SecurityType
for a given document repository or security type.
sSecurityTypeName
- the name of the repository/security type as configured in IDOL.Method Detail |
public void setRepositoryName(java.lang.String sTypeName)
SecurityType
object
refers to.
sTypeName
- the name of the repository/security type as configured in IDOL.public void setSecurityFields(java.util.HashMap fieldMap)
HashMap
must be String
s.
fieldMap
- a HashMap
assosciating String
pairs representing the
field names and values.public void setSecurityFieldValue(java.lang.String sFieldname, java.lang.String sFieldValue)
sFieldname
- the name of the security field to set.sFieldValue
- the value to give the field.public void removeSecurityField(java.lang.String sFieldname)
sFieldname
- the name of the field to delete.public void clearSecurityFields()
public java.lang.String getRepositoryName()
SecurityType
object
refers to.
public java.util.HashMap getSecurityFields()
SecurityType
object and their values.
Both the keys and the values assosciated in the HashMap
are String
s.
public java.util.Set getSecurityFieldNames()
SecurityType
object. The
elements in the Set
are String
s.
public java.lang.String getSecurityFieldValue(java.lang.String sFieldname, java.lang.String sDefaultValue)
sFieldname
- the name of the field to look up.sDefaultValue
- the default value to use if the field does not exist or has no value.
sDefaultValue
if the field does not exist or has no value.public java.lang.String getSecurityFieldValue(java.lang.String sFieldname)
sFieldname
- the name of the field to look up.
null
if the field does not exist or has no value.public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |