Java Doc for ABContext.java in  » Portal » Open-Portal » com » sun » portal » wireless » taglibs » ab » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » Open Portal » com.sun.portal.wireless.taglibs.ab 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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.0
See Also:    Context, ContextCache, ABContextCache


Field Summary
final public static  StringASCENDING
    
final public static  StringCONTEXT_CACHE_CLASS_NAME
    
final public static  StringCONTEXT_CLASS_NAME
    
final public static  StringCONTEXT_TYPE
    
final public static  StringDESCENDING
    
final public static  StringSSO_CONFIG_TYPE
    
protected  ConfigurationappConfig
    
protected  ConfigurationFactoryconfigFactory
    
protected  ContactDBcontactdb
    
protected  Listcontacts
    
protected  Listentries
    
protected  Listgroupmembers
    
protected  Listmemberchoices
    
protected  intnumContacts
    
protected  intnumEntries
    
protected  intnumGroupmembers
    
protected  intnumMemberchoices
    
protected  StringpabLang
    
protected  StringsortBy
    
protected  StringsortOrder
    


Method Summary
public  ElementgetContact(int entryid)
    
public  ContactDBgetContactDB()
    
public  ListgetContacts()
    
public static  ABContextgetContext(PageContext pageContext)
     Returns a ABContext for this session.
public  ListgetEntries()
    
public  ElementgetEntry(int entryid)
    
public  ElementgetGroupmember(int entryid)
    
public  ListgetGroupmembers()
    
public  ElementgetMemberchoice(int entryid)
    
public  ListgetMemberchoices()
    
public  intgetNumContacts()
    
public  intgetNumEntries()
     Get the number of elements in the entries collection.
public  intgetNumGroupmembers()
    
public  intgetNumMemberchoices()
    
public  StringgetPabLang()
    
public  StringgetSortBy()
    
public  StringgetSortOrder()
    
public  voidinit(HttpServletRequest request, SSOToken session, SSOAdapter ssoAdapter)
    
public  booleanisContactsEmpty()
    
public  booleanisEntriesEmpty()
     Returns whether the entries collection is empty or not.
public  booleanisGroupSupported()
     Are Groups supported by this Address Book Groups are supported by Sun ONE, Lotus Notes and Webdav Exchange.
public  booleanisGroupmembersEmpty()
    
public  booleanisMemberchoicesEmpty()
    
public  voidrelease()
    
public  voidsetContactDB(ContactDB contactdb)
    
public  voidsetContacts(List res)
    
public  voidsetEntries(List res)
    
public  voidsetGroupmembers(List res)
    
public  voidsetMemberchoices(List res)
    
public  voidsetNumContacts(int numContacts)
    
public  voidsetNumEntries(int numEntries)
     Set the number of elements in the entries collection.
public  voidsetNumGroupmembers(int numGroupmembers)
    
public  voidsetNumMemberchoices(int numMemberchoices)
    
public  voidssoTokenChanged(SSOTokenEvent evt)
     Handle SessionChanged events from the Portal Session.

Field Detail
ASCENDING
final public static String ASCENDING(Code)



CONTEXT_CACHE_CLASS_NAME
final public static String CONTEXT_CACHE_CLASS_NAME(Code)



CONTEXT_CLASS_NAME
final public static String CONTEXT_CLASS_NAME(Code)



CONTEXT_TYPE
final public static String CONTEXT_TYPE(Code)



DESCENDING
final public static String DESCENDING(Code)



SSO_CONFIG_TYPE
final public static String SSO_CONFIG_TYPE(Code)



appConfig
protected Configuration appConfig(Code)



configFactory
protected ConfigurationFactory configFactory(Code)



contactdb
protected ContactDB contactdb(Code)



contacts
protected List contacts(Code)



entries
protected List entries(Code)



groupmembers
protected List groupmembers(Code)



memberchoices
protected List memberchoices(Code)



numContacts
protected int numContacts(Code)



numEntries
protected int numEntries(Code)



numGroupmembers
protected int numGroupmembers(Code)



numMemberchoices
protected int numMemberchoices(Code)



pabLang
protected String pabLang(Code)



sortBy
protected String sortBy(Code)



sortOrder
protected String sortOrder(Code)





Method Detail
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



init
public void init(HttpServletRequest request, SSOToken session, SSOAdapter ssoAdapter) throws Exception(Code)
Initialize the Address Book context
Parameters:
  session - where to save the context.
exception:
  Exception -



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



Fields inherited from com.sun.portal.wireless.taglibs.base.Context
protected String charSetString(Code)(Java Doc)
protected String errorCode(Code)(Java Doc)
protected Context parentContext(Code)(Java Doc)
protected SSOToken session(Code)(Java Doc)
protected SSOAdapter ssoAdapter(Code)(Java Doc)
protected TimeZone timezone(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.