|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nim.Nugget
com.nitido.nim.CachableNugget
com.nitido.nimx.nuggets.pab.PABNugget
com.nitido.nimx.nuggets.pab.stub.PABNuggetStub
public class PABNuggetStub
Personal Address Book Nugget provides services for accessing and modifying a user's address book. It assume that the backend is LDAP directory type of data storage.
This nugget encapsulate the information of the address group and personal information with PABGroup and PABNugget classes. You should refer to the JavaDoc of these two classes for a detail list of infromation supported by them.
Field Summary | |
---|---|
protected java.util.Hashtable |
_entries
|
protected static java.lang.String |
ADDR_BOOK_UN
|
protected static java.lang.String |
AT_OBJ_CLASS
|
protected static java.lang.String |
AT_PAB
|
static java.lang.String |
GROUP
|
static java.lang.String |
HOMER
The UN of a default PABPerson entry "test-homer". |
static java.lang.String |
MARGE
|
Fields inherited from class com.nitido.nim.Nugget |
---|
_entity, _nim, _nuggetName, _settings |
Constructor Summary | |
---|---|
PABNuggetStub(NuggetVisa visa)
Default Nugget constructor. |
Method Summary | |
---|---|
PABBatchResult |
addEntries(PABEntry[] entries)
Add a large number of entries in one batch. |
java.lang.String |
addEntry(PABEntry entry)
Add a new PAB entry. |
java.util.Vector |
getEmailAddresses(java.lang.String entryUN)
Resolve the specified unique name into a vector of email addresses. |
java.util.Enumeration |
getEntries()
Return all entries that has been stored. |
java.util.Enumeration |
getEntries(java.lang.String filter)
Return empty enumeration if the filter starts with "( &". |
PABEntry |
getEntry(java.lang.String un)
Return the matched PABEntry. |
PABGroup |
getGroup(java.lang.String un)
Return the matched PABGroup. |
java.util.Enumeration |
getGroupMembers(java.lang.String groupUN)
Get the Unique Name of members belong to the group |
java.lang.String |
getGroupObjectClass()
Get the "objectclass" string that will be used by a PAB group LDAP entry. |
PABPerson |
getPerson(java.lang.String un)
Return the matched PABPerson. |
java.lang.String |
getPersonObjectClass()
Get the "objectclass" string that will be used by a PAB person LDAP entry. |
void |
initImpl()
Used by NiM Nugget mechanism. |
void |
modifyEntry(PABEntry entry)
Replace an existing PAB entry with the new one. |
void |
removeEntry(PABEntry entry)
Remove an existing PAB entry. |
void |
removeFromGroup(java.lang.String groupUN,
java.lang.String personUN)
Remove the specified PABEntry from the group. |
protected void |
setGroupFixedAttributes(PABEntry entry)
|
void |
setGroupMembers(java.lang.String groupUN,
java.util.Vector personUNs)
Set the group member of a group. |
void |
setGroups(java.util.Vector groupUNs,
java.lang.String personUN)
Set the groups that the specified entryDN belongs to. |
protected void |
setPersonFixedAttributes(PABEntry entry)
|
Methods inherited from class com.nitido.nimx.nuggets.pab.PABNugget |
---|
activate, deactivate, generateNewCN, generateNewUN, getDescriptor |
Methods inherited from class com.nitido.nim.CachableNugget |
---|
isCachable |
Methods inherited from class com.nitido.nim.Nugget |
---|
destroy, destroyImpl, getEntity, getNuggetName, getSetting, getSettings, init, requestBegin, requestEnd |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Hashtable _entries
protected static final java.lang.String ADDR_BOOK_UN
protected static final java.lang.String AT_OBJ_CLASS
protected static final java.lang.String AT_PAB
public static final java.lang.String HOMER
public static final java.lang.String MARGE
public static final java.lang.String GROUP
Constructor Detail |
---|
public PABNuggetStub(NuggetVisa visa)
Method Detail |
---|
public void initImpl()
PABNugget
initImpl
in class PABNugget
protected void setPersonFixedAttributes(PABEntry entry)
protected void setGroupFixedAttributes(PABEntry entry)
public PABPerson getPerson(java.lang.String un)
getPerson
in class PABNugget
un
- The unique name of the PABPerson.public PABGroup getGroup(java.lang.String un)
getGroup
in class PABNugget
un
- The unique name of the PABGroup.public PABEntry getEntry(java.lang.String un)
getEntry
in class PABNugget
un
- The unique name of the PABEntry.public java.util.Enumeration getEntries()
getEntries
in class PABNugget
public java.util.Enumeration getEntries(java.lang.String filter)
getEntries
in class PABNugget
filter
- The filter string.public PABBatchResult addEntries(PABEntry[] entries) throws InvalidEntryException, PABException
PABNugget
addEntries
in class PABNugget
entries
- The list of PABEntry objects to be added.
PABException
- Major problem at the backend (such as major IO exception). For other
entry specific errors, this method will only indicate those error codes
in the PABBatchResult object instead of throwing an exception.
InvalidEntryException
public java.lang.String addEntry(PABEntry entry) throws InvalidEntryException, PABException
PABNugget
addEntry
in class PABNugget
entry
- The entry to be added. A new entry does not require the un
specified (i.e. just pass "" to the un parameter when you construct
the object).
InvalidEntryException
- Thrown when another entry with the same unique name already exists.
PABException
public void modifyEntry(PABEntry entry) throws InvalidEntryException, PABException
PABNugget
modifyEntry
in class PABNugget
entry
- The entry to be replaced.
InvalidEntryException
- If the specified entry does not exist.
PABException
public void removeEntry(PABEntry entry) throws InvalidEntryException, PABException
PABNugget
If it is a PABGroup, this will remove the links to child PABEntry that it contains. However, it would not attempt to remove them from the system completely.
removeEntry
in class PABNugget
entry
- The entry to be removed.
InvalidEntryException
- If the specified entry does not exist.
PABException
public void setGroups(java.util.Vector groupUNs, java.lang.String personUN) throws InvalidEntryException, PABException
PABNugget
setGroups
in class PABNugget
groupUNs
- The unique name of groups that the entry is going to be added to.personUN
- The unique name of the entry to be added.
InvalidEntryException
- If the entry or one of the specified groups does not exist.
PABException
public void setGroupMembers(java.lang.String groupUN, java.util.Vector personUNs) throws PABException
PABNugget
setGroupMembers
in class PABNugget
groupUN
- The unique name of the target grouppersonUNs
- The UNs of the PAB persons to be added to the group.
PABException
- PB problempublic void removeFromGroup(java.lang.String groupUN, java.lang.String personUN) throws InvalidEntryException, PABException
PABNugget
removeFromGroup
in class PABNugget
groupUN
- The unique name of the group that the entry is going to be
removed to.personUN
- The unique name of the entry to be added.
InvalidEntryException
- If the entry or the group does not exist.
PABException
public java.util.Enumeration getGroupMembers(java.lang.String groupUN) throws InvalidEntryException, PABException
PABNugget
getGroupMembers
in class PABNugget
groupUN
- The unique name of the group
InvalidEntryException
- If the entry does not exist.
PABException
public java.util.Vector getEmailAddresses(java.lang.String entryUN)
PABNugget
If it is a person, it will return the email of the corresponding person (if it is specified).
If it is a group, it will return the email addresses of ALL members.
getEmailAddresses
in class PABNugget
"Display Name"If no matches, an empty vector.
public java.lang.String getGroupObjectClass()
PABNugget
getGroupObjectClass
in class PABNugget
public java.lang.String getPersonObjectClass()
PABNugget
getPersonObjectClass
in class PABNugget
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.