|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.candle.roma.kxc.RomaDirectoryItem
This class encapsalates a Roma directory item that has been retrieved from the Roma directory using the RomaDirectoryAgent class.
The class is constructed by calling the item()method on RomaDirectoryAgent.
RomaDirectoryAgent
Field Summary | |
static int |
BUF_HEADER_SIZE
|
static int |
BUF_RES_SIZE
|
Constructor Summary | |
RomaDirectoryItem(java.lang.String dn,
java.lang.String objectClass)
Constructor All new items must have an objectclass attribute, so this is mandated in the constructor. |
Method Summary | |
void |
addAttribute(java.lang.String name,
java.lang.String value)
Add attribute to item. |
java.lang.String |
attributeName()
Returns name of the first attribute |
java.lang.String |
attributeName(int attribute)
Returns name of nth attribute. |
int |
attributes()
Returns the number of attributes |
java.lang.String |
attributeValue()
Returns value of the first attribute |
java.lang.String |
attributeValue(int attribute)
Returns value of nth attribute. |
java.lang.String |
attributeValue(java.lang.String name)
Returns value of first occurrence of named attribute |
java.lang.String |
attributeValue(java.lang.String name,
int attribute)
Returns value of nth occurrence of named attribute |
java.lang.String |
dn()
Retrieves the distinguished name |
void |
setDN(java.lang.String disname)
Set the distinguished name |
void |
setItemMustExist(boolean f)
Specify if an item with the same DN must or must not exist at the time that a DirectoryAgent attempts to store this item By default, the update is forced through. |
void |
setItemMustNotExist(boolean f)
Specify if an item with the same DN must or must not exist at the time that a DirectoryAgent attempts to store this item By default, the update is forced through. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int BUF_HEADER_SIZE
public static final int BUF_RES_SIZE
Constructor Detail |
public RomaDirectoryItem(java.lang.String dn, java.lang.String objectClass)
Method Detail |
public java.lang.String dn()
public void setDN(java.lang.String disname)
name
- distiguished name.public void addAttribute(java.lang.String name, java.lang.String value)
name
- attribute name.value
- attribute value.public int attributes()
public java.lang.String attributeValue()
public java.lang.String attributeValue(int attribute)
attribute
- number of attributepublic java.lang.String attributeName()
public java.lang.String attributeName(int attribute)
attribute
- number of attributepublic java.lang.String attributeValue(java.lang.String name)
name
- name of attributepublic java.lang.String attributeValue(java.lang.String name, int attribute)
name
- name of attributeattribute
- number of occurrence attributepublic void setItemMustExist(boolean f)
f
- if true an item with the same DN must exist,
if false an item with the same DN must not existpublic void setItemMustNotExist(boolean f)
f
- if true an item with the same DN must not exist,
if false an item with the same DN must exist
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |