Java Doc for UserContainer.java in  » GIS » GeoServer » org » vfny » geoserver » global » 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 » GIS » GeoServer » org.vfny.geoserver.global 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.vfny.geoserver.global.UserContainer

UserContainer
public class UserContainer implements HttpSessionBindingListener(Code)
Represents a User for GeoServer.

Used as a typesafe Session container. This is an alternative to using calls to request.getAttributes( key ) and casting.

The User object is saved in session scope by ConfigAction:


 HttpSession session = request.getSession();
 User user = request.getAttributes( UserContainer.WEB_CONTAINER_KEY );
 if( user == null ){
 user = new UserContainer( request.getLocal() );
 session.setAttributes( UserContainer.WEB_CONTAINER_KEY, user );
 }
 

This class is based on the UserContainer class outlined in the book "Programming Jakarta Struts" by Chuck Cavaness.


author:
   jgarnett, Refractions Research, Inc.
author:
   $Author: jive $ (last modification)
version:
   $Id: UserContainer.java 6326 2007-03-15 18:36:40Z jdeolive $


Field Summary
final public static  StringSESSION_KEY
    

Constructor Summary
public  UserContainer()
    
public  UserContainer(Locale local)
    

Method Summary
public  AttributeTypegetAttributeType()
     Access attributeType property.
public  AttributeTypeInfoConfiggetAttributeTypeConfig()
     Access attributeTypeConfig property.
public  GridCoverage2DgetCoverage()
    
public  CoverageConfiggetCoverageConfig()
    
public  FormatgetDataFormat()
    
public  CoverageStoreConfiggetDataFormatConfig()
    
public  StringgetDataFormatID()
    
public  DataStoregetDataStore()
     Access dataStore property.
public  DataStoreConfiggetDataStoreConfig()
     Access dataStoreConfig property.
public  StringgetDataStoreID()
     Access dataStoreID property.
public  FeatureTypegetFeatureType()
     Access featureType property.
public  FeatureTypeConfiggetFeatureTypeConfig()
     Access featureTypeConfig property.
public  LocalegetLocale()
     User's Locale.

Used to format messages.

public  NameSpaceConfiggetNamespaceConfig()
     Access namespaceConfig property.
public  DataStoreConfiggetNewDataStore()
     Access newDataStore property.
public  StringgetPrefix()
     Access prefix property.
public  StyleConfiggetStyle()
     Access style property.
public  StringgetUsername()
     Access username property.
public  voidsetAttributeType(AttributeType attributeType)
     Set attributeType to attributeType.
public  voidsetAttributeTypeConfig(AttributeTypeInfoConfig attributeTypeConfig)
     Set attributeTypeConfig to attributeTypeConfig.
public  voidsetCoverage(GridCoverage2D coverage)
    
public  voidsetCoverageConfig(CoverageConfig coverageConfig)
    
public  voidsetDataFormat(Format dataFormat)
    
public  voidsetDataFormatConfig(CoverageStoreConfig dataFormatConfig)
    
public  voidsetDataFormatID(String dataFormatID)
    
public  voidsetDataStore(DataStore dataStore)
     Set dataStore to dataStore.
public  voidsetDataStoreConfig(DataStoreConfig dataStoreConfig)
     Set dataStoreConfig to dataStoreConfig.
public  voidsetDataStoreID(String dataStoreID)
     Set dataStoreID to dataStoreID.
public  voidsetFeatureType(FeatureType featureType)
     Set featureType to featureType.
public  voidsetFeatureTypeConfig(FeatureTypeConfig featureTypeConfig)
     Set featureTypeConfig to featureTypeConfig.
public  voidsetLocale(Locale locale)
     Set the user's Locale.
public  voidsetNamespaceConfig(NameSpaceConfig namespaceConfig)
     Set namespaceConfig to namespaceConfig.
public  voidsetNewDataStore(DataStoreConfig newDataStore)
     Set newDataStore to newDataStore.
public  voidsetPrefix(String prefix)
     Set prefix to prefix.
public  voidsetStyle(StyleConfig style)
     Set style to style.
public  voidsetUsername(String username)
     Set username to username.
public  voidvalueBound(HttpSessionBindingEvent arg0)
     Session callback.
public  voidvalueUnbound(HttpSessionBindingEvent arg0)
     Clean up user resources when unbound from session.

Field Detail
SESSION_KEY
final public static String SESSION_KEY(Code)




Constructor Detail
UserContainer
public UserContainer()(Code)
Create User Container for the current locale



UserContainer
public UserContainer(Locale local)(Code)
Create User Container for the provided locale
Parameters:
  local - DOCUMENT ME!




Method Detail
getAttributeType
public AttributeType getAttributeType()(Code)
Access attributeType property. Returns the attributeType.



getAttributeTypeConfig
public AttributeTypeInfoConfig getAttributeTypeConfig()(Code)
Access attributeTypeConfig property. Returns the attributeTypeConfig.



getCoverage
public GridCoverage2D getCoverage()(Code)
Returns the coverage.



getCoverageConfig
public CoverageConfig getCoverageConfig()(Code)
Returns the coverageConfig.



getDataFormat
public Format getDataFormat()(Code)
Returns the dataFormat.



getDataFormatConfig
public CoverageStoreConfig getDataFormatConfig()(Code)
Returns the dataFormatConfig.



getDataFormatID
public String getDataFormatID()(Code)
Returns the dataFormatID.



getDataStore
public DataStore getDataStore()(Code)
Access dataStore property. Returns the dataStore.



getDataStoreConfig
public DataStoreConfig getDataStoreConfig()(Code)
Access dataStoreConfig property. Returns the dataStoreConfig.



getDataStoreID
public String getDataStoreID()(Code)
Access dataStoreID property. Returns the dataStoreID.



getFeatureType
public FeatureType getFeatureType()(Code)
Access featureType property. Returns the featureType.



getFeatureTypeConfig
public FeatureTypeConfig getFeatureTypeConfig()(Code)
Access featureTypeConfig property. Returns the featureTypeConfig.



getLocale
public Locale getLocale()(Code)
User's Locale.

Used to format messages. Should be used in conjunction with internatalization support.

Locale for the User.



getNamespaceConfig
public NameSpaceConfig getNamespaceConfig()(Code)
Access namespaceConfig property. Returns the namespaceConfig.



getNewDataStore
public DataStoreConfig getNewDataStore()(Code)
Access newDataStore property. Returns the newDataStore.



getPrefix
public String getPrefix()(Code)
Access prefix property. Returns the prefix.



getStyle
public StyleConfig getStyle()(Code)
Access style property. Returns the style.



getUsername
public String getUsername()(Code)
Access username property. Returns the username.



setAttributeType
public void setAttributeType(AttributeType attributeType)(Code)
Set attributeType to attributeType.
Parameters:
  attributeType - The attributeType to set.



setAttributeTypeConfig
public void setAttributeTypeConfig(AttributeTypeInfoConfig attributeTypeConfig)(Code)
Set attributeTypeConfig to attributeTypeConfig.
Parameters:
  attributeTypeConfig - The attributeTypeConfig to set.



setCoverage
public void setCoverage(GridCoverage2D coverage)(Code)

Parameters:
  coverage - The coverage to set.



setCoverageConfig
public void setCoverageConfig(CoverageConfig coverageConfig)(Code)

Parameters:
  coverageConfig - The coverageConfig to set.



setDataFormat
public void setDataFormat(Format dataFormat)(Code)

Parameters:
  dataFormat - The dataFormat to set.



setDataFormatConfig
public void setDataFormatConfig(CoverageStoreConfig dataFormatConfig)(Code)

Parameters:
  dataFormatConfig - The dataFormatConfig to set.



setDataFormatID
public void setDataFormatID(String dataFormatID)(Code)

Parameters:
  dataFormatID - The dataFormatID to set.



setDataStore
public void setDataStore(DataStore dataStore)(Code)
Set dataStore to dataStore.
Parameters:
  dataStore - The dataStore to set.



setDataStoreConfig
public void setDataStoreConfig(DataStoreConfig dataStoreConfig)(Code)
Set dataStoreConfig to dataStoreConfig.
Parameters:
  dataStoreConfig - The dataStoreConfig to set.



setDataStoreID
public void setDataStoreID(String dataStoreID)(Code)
Set dataStoreID to dataStoreID.
Parameters:
  dataStoreID - The dataStoreID to set.



setFeatureType
public void setFeatureType(FeatureType featureType)(Code)
Set featureType to featureType.
Parameters:
  featureType - The featureType to set.



setFeatureTypeConfig
public void setFeatureTypeConfig(FeatureTypeConfig featureTypeConfig)(Code)
Set featureTypeConfig to featureTypeConfig.
Parameters:
  featureTypeConfig - The featureTypeConfig to set.



setLocale
public void setLocale(Locale locale)(Code)
Set the user's Locale.
Parameters:
  locale - User's locale.



setNamespaceConfig
public void setNamespaceConfig(NameSpaceConfig namespaceConfig)(Code)
Set namespaceConfig to namespaceConfig.
Parameters:
  namespaceConfig - The namespaceConfig to set.



setNewDataStore
public void setNewDataStore(DataStoreConfig newDataStore)(Code)
Set newDataStore to newDataStore.
Parameters:
  newDataStore - The newDataStore to set.



setPrefix
public void setPrefix(String prefix)(Code)
Set prefix to prefix.
Parameters:
  prefix - The prefix to set.



setStyle
public void setStyle(StyleConfig style)(Code)
Set style to style.
Parameters:
  style - The style to set.



setUsername
public void setUsername(String username)(Code)
Set username to username.
Parameters:
  username - The username to set.



valueBound
public void valueBound(HttpSessionBindingEvent arg0)(Code)
Session callback.
Parameters:
  arg0 -
See Also:   javax.servlet.http.HttpSessionBindingListener.valueBound(javax.servlet.http.HttpSessionBindingEvent)



valueUnbound
public void valueUnbound(HttpSessionBindingEvent arg0)(Code)
Clean up user resources when unbound from session.
Parameters:
  arg0 -
See Also:   javax.servlet.http.HttpSessionBindingListener.valueUnbound(javax.servlet.http.HttpSessionBindingEvent)



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.