java.lang .Object com.sun.portal.wireless.taglibs.base .Context com.sun.portal.wireless.taglibs.ab .ABContext All known Subclasses: com.sun.portal.wireless.taglibs.commprefs .ABPrefsContext ,ABContext public class ABContext extends Context (Code) ABContext - track state across Address book requests.
This class implements a simple context mechanism
that may be used for tracking user state across
multiple requests.
author: Mihir Sambhus version: 1.0See Also: Context, ContextCache, ABContextCache
CONTEXT_CACHE_CLASS_NAME final public static String CONTEXT_CACHE_CLASS_NAME (Code)
CONTEXT_CLASS_NAME final public static String CONTEXT_CLASS_NAME (Code)
SSO_CONFIG_TYPE final public static String SSO_CONFIG_TYPE (Code)
numContacts protected int numContacts(Code)
numEntries protected int numEntries(Code)
numGroupmembers protected int numGroupmembers(Code)
numMemberchoices protected int numMemberchoices(Code)
getContact public Element getContact(int entryid)(Code) Get the Element bean from the collection located at the index provided
Parameters: entryid - Index of the entry bean to retrieve from collection the appropriate element
getContactDB public ContactDB getContactDB()(Code) Get the contactdb object, which contains methods to access LDAP server
the contactdb object
getContacts public List getContacts()(Code) Get the Collection of all contacts from a group or top level after
recursively expanding all groups
the contacts List
getContext public static ABContext getContext(PageContext pageContext) throws Exception (Code) Returns a ABContext for this session.
Parameters: request - Parameters: pageContext -
getEntries public List getEntries()(Code) Get the Collection of Address Book Elements
the elements List
getEntry public Element getEntry(int entryid)(Code) Get the Element bean from the collection located at the index provided
Parameters: entryid - Index of the entry bean to retrieve from collection the appropriate element
getGroupmember public Element getGroupmember(int entryid)(Code) Get the Element bean from the collection located at the index provided
Parameters: entryid - Index of the entry bean to retrieve from collection the appropriate element
getGroupmembers public List getGroupmembers()(Code) Get the Collection of Group members
the groupmembers List
getMemberchoice public Element getMemberchoice(int entryid)(Code) Get the Element bean from the collection located at the index provided
Parameters: entryid - Index of the entry bean to retrieve from collection the appropriate element
getMemberchoices public List getMemberchoices()(Code) Get the Collection of Entries to add to a group
the memberchoices List
getNumContacts public int getNumContacts()(Code) Get the number of elements in the contacts collection
numContacts int
getNumEntries public int getNumEntries()(Code) Get the number of elements in the entries collection.
numEntries int
getNumGroupmembers public int getNumGroupmembers()(Code) Get the number of elements in the groupmembers collection
numGroupmembers int
getNumMemberchoices public int getNumMemberchoices()(Code) Get the number of elements in the memberchoices collection
memberchoices int
getPabLang public String getPabLang()(Code) Get the User specified locale
pabLang String
getSortBy public String getSortBy()(Code) Get the User specified sort field
sortBy String
getSortOrder public String getSortOrder()(Code) Get the User specified sort direction
sortOrder String
isContactsEmpty public boolean isContactsEmpty()(Code) Returns whether the contacts collection is empty or not
true if the contacts collection is emptyfalse otherwise
isEntriesEmpty public boolean isEntriesEmpty()(Code) Returns whether the entries collection is empty or not.
true if the entries collection is emptyfalse otherwise
isGroupSupported public boolean isGroupSupported()(Code) Are Groups supported by this Address Book
Groups are supported by Sun ONE, Lotus Notes and Webdav Exchange.
Currently groups are not supported by CDO Exchange. So returning
false if sso adapter is of type CDO Exchange.
isGroupSupported Boolean
isGroupmembersEmpty public boolean isGroupmembersEmpty()(Code) Returns whether the groupmembers collection is empty or not
true if the groupmembers collection is emptyfalse otherwise
isMemberchoicesEmpty public boolean isMemberchoicesEmpty()(Code) Returns whether the memberchoices collection is empty or not
true if the memberchoices collection is emptyfalse otherwise
release public void release()(Code)
setContactDB public void setContactDB(ContactDB contactdb)(Code) Set the contactdb object, which contains methods to access LDAP serve
Parameters: contactdb - the ContactDB object
setContacts public void setContacts(List res)(Code) Set the Collection of all contacts from a group or top level after
recursively expanding all groups
Parameters: res - the contacts List
setEntries public void setEntries(List res)(Code) Set the Collection of Address Book Elements
Parameters: res - the Address Book elements List
setGroupmembers public void setGroupmembers(List res)(Code) Set the Collection of Group members
Parameters: res - the groupmembers List
setMemberchoices public void setMemberchoices(List res)(Code) Set the Collection of Entries to add to a group
Parameters: res - the memberchoices List
setNumContacts public void setNumContacts(int numContacts)(Code) Set the number of elements in the contacts collection
Parameters: numContacts - int - number of elements in the contacts coll.
setNumEntries public void setNumEntries(int numEntries)(Code) Set the number of elements in the entries collection.
Parameters: numEntries - int
setNumGroupmembers public void setNumGroupmembers(int numGroupmembers)(Code) Set the number of elements in the groupmembers collection
Parameters: numGroupmembers - int - number of elements in the group members coll.
setNumMemberchoices public void setNumMemberchoices(int numMemberchoices)(Code) Set the number of elements in the memberchoices collection
Parameters: numMemberchoices - int - number of elements in the memberchoices coll.
ssoTokenChanged public void ssoTokenChanged(SSOTokenEvent evt)(Code) Handle SessionChanged events from the Portal Session.
Cleanup the context when the session goes invalid.
Parameters: se - session change event
Methods inherited from com.sun.portal.wireless.taglibs.base.Context public void closeConnection()(Code) (Java Doc) public Set getAttributeSet(String name)(Code) (Java Doc) public Set getAttributeSet(String name, String clientType)(Code) (Java Doc) public String getAttributeString(String name)(Code) (Java Doc) public String getAttributeString(String name, String value)(Code) (Java Doc) public String getCharset()(Code) (Java Doc) public String getClientType()(Code) (Java Doc) public String getConfigName()(Code) (Java Doc) public String getContentType()(Code) (Java Doc) public static Context getContext(PageContext pageContext, String contextClassName, String contextCacheClassName, String contextType) throws Exception (Code) (Java Doc) public String getErrorCode()(Code) (Java Doc) public Locale getLocale()(Code) (Java Doc) public Context getParentContext()(Code) (Java Doc) public SSOAdapter getSSOAdapter()(Code) (Java Doc) public SSOToken getSession()(Code) (Java Doc) public SSOTokenID getSessionID()(Code) (Java Doc) public TimeZone getTimeZone()(Code) (Java Doc) public Locale getUserLocale()(Code) (Java Doc) public String getUserLocaleString()(Code) (Java Doc) public void init(HttpServletRequest request, SSOToken session, String serviceName, SSOAdapter ssoAdapter) throws Exception (Code) (Java Doc) public void init(HttpServletRequest request, SSOToken session, SSOAdapter ssoAdapter) throws Exception (Code) (Java Doc) public void loadTimeZone()(Code) (Java Doc) public void reloadUserPreferences()(Code) (Java Doc) public static void reset(PageContext pageContext, String contextClassName, String contextCacheClassName, String contextType)(Code) (Java Doc) public void setAttribute(String name, Set value)(Code) (Java Doc) public void setAttribute(String clientType, String name, Set value)(Code) (Java Doc) public void setAttributeString(String name, String value)(Code) (Java Doc) public void setErrorCode(String errorCode)(Code) (Java Doc) public void setParentContext(Context context)(Code) (Java Doc) public void ssoTokenChanged(SSOTokenEvent evt)(Code) (Java Doc)