Java Doc for SettingsImpl.java in  » Groupware » ivatagroupware » com » ivata » groupware » admin » setting » 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 » Groupware » ivatagroupware » com.ivata.groupware.admin.setting 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ivata.groupware.business.BusinessLogic
      com.ivata.groupware.admin.setting.SettingsImpl

SettingsImpl
public class SettingsImpl extends BusinessLogic implements Settings(Code)

This class controls/sets the global preferences.


since:
   2001-09-06
author:
   Colin MacLeod
author:
   colin.macleod@ivata.com
version:
   $Revision: 1.3 $



Constructor Summary
public  SettingsImpl(QueryPersistenceManager persistenceManagerParam)
     Construct a new settings object.

Method Summary
public  voidamendSetting(SecuritySession securitySession, String name, Object value, UserDO user)
    

Change the value of an existing setting.

final public  BooleangetBooleanSetting(SecuritySession securitySession, String name, UserDO user)
    

Get a setting of class Boolean.


Parameters:
  securitySession - Used to authenticate the user.
Parameters:
  name - the name of the setting to return the value for
Parameters:
  user - The user to search for.
final public  IntegergetIntegerSetting(SecuritySession securitySession, String name, UserDO user)
    

Get a setting of class Integer.


Parameters:
  securitySession - Used to authenticate the user.
Parameters:
  name - the name of the setting to return the value for.
Parameters:
  user - The user to search for.
final public  ObjectgetSetting(SecuritySession securitySession, String name, UserDO userDO)
    

Get a setting for a given user.

final public  intgetSettingType(SecuritySession securitySession, String name)
    

Get the type of a setting.

final public  StringgetStringSetting(SecuritySession securitySession, String name, UserDO user)
    

Get a setting of class String.


Parameters:
  securitySession - Used to authenticate the user.
Parameters:
  name - The name of the setting to return the value for
Parameters:
  user - The user to search for.
public  booleanisSettingEnabled(SecuritySession securitySession, String name)
    

Find out whether or not a setting is enabled.


Parameters:
  securitySession - Used to authenticate the user.
Parameters:
  name - Name of the setting to check.
public  voidrevertSetting(SecuritySession securitySession, String name, UserDO user)
    

Revert a user setting back to the general value.

public  ValidationErrorsvalidate(SecuritySession securitySession, Map settings, Locale locale, int settingType)
    


Constructor Detail
SettingsImpl
public SettingsImpl(QueryPersistenceManager persistenceManagerParam)(Code)
Construct a new settings object.
Parameters:
  persistenceManagerParam - used to store objects in db.




Method Detail
amendSetting
public void amendSetting(SecuritySession securitySession, String name, Object value, UserDO user) throws SystemException(Code)

Change the value of an existing setting.


Parameters:
  name - The name of the setting to set.
Parameters:
  securitySession - Used to authenticate the user.
Parameters:
  value - The new value to be set.
Parameters:
  user - if not null, then the setting for this useris set, otherwise the general setting is changed.
throws:
  SystemException - If there is a technical problem retrieving thesetting.



getBooleanSetting
final public Boolean getBooleanSetting(SecuritySession securitySession, String name, UserDO user) throws SystemException(Code)

Get a setting of class Boolean.


Parameters:
  securitySession - Used to authenticate the user.
Parameters:
  name - the name of the setting to return the value for
Parameters:
  user - The user to search for. If null is specified, thedefault setting is searched for and returned if found. A setting of class Boolean for the settingname provided.
See Also:   SettingsImpl.getSetting
See Also:   SettingsImpl.getIntegerSetting
See Also:   SettingsImpl.getStringSetting
throws:
  SystemException - If this setting does not exist or there is atechnical problem. Throws SettingsDataTypeExceptionif the setting has any class other than Boolean.



getIntegerSetting
final public Integer getIntegerSetting(SecuritySession securitySession, String name, UserDO user) throws SystemException(Code)

Get a setting of class Integer.


Parameters:
  securitySession - Used to authenticate the user.
Parameters:
  name - the name of the setting to return the value for.
Parameters:
  user - The user to search for. If null is specified, thedefault setting is searched for and returned if found. A setting of class Integer for the settingname provided.
See Also:   SettingsImpl.getSetting
See Also:   SettingsImpl.getStringSetting
See Also:   SettingsImpl.getBooleanSetting
throws:
  SystemException - If this setting does not exist or there is atechnical problem. Throws SettingsDataTypeExceptionif the setting has any class other than Integer.



getSetting
final public Object getSetting(SecuritySession securitySession, String name, UserDO userDO) throws SystemException(Code)

Get a setting for a given user. The class of the returned object will depend on the type field of the EJB with this name and can be one of:

  • Integer
  • String
  • Boolean


Parameters:
  securitySession - Used to authenticate the user.
Parameters:
  name - The name of the setting to return the value for
Parameters:
  userDO - The user to search for. If null is specified, thedefault setting is searched for and returned if found. A setting with the setting name provided. The type of thereturned object depends on the type field of thesetting.
See Also:   SettingsImpl.getIntegerSetting
See Also:   SettingsImpl.getStringSetting
See Also:   SettingsImpl.getBooleanSetting
throws:
  SystemException - If this setting does not exist, or there is atechnical problem retrieving it.



getSettingType
final public int getSettingType(SecuritySession securitySession, String name) throws SystemException(Code)

Get the type of a setting.


Parameters:
  securitySession - Used to authenticate the user.
Parameters:
  name - the name of the setting one of the static fields of SettingConstants
throws:
  SystemException - if this setting does not exist.



getStringSetting
final public String getStringSetting(SecuritySession securitySession, String name, UserDO user) throws SystemException(Code)

Get a setting of class String.


Parameters:
  securitySession - Used to authenticate the user.
Parameters:
  name - The name of the setting to return the value for
Parameters:
  user - The user to search for. If null is specified, thedefault setting is searched for and returned if found. A setting of class String for the settingname provided.
See Also:   SettingsImpl.getSetting
See Also:   SettingsImpl.getIntegerSetting
See Also:   SettingsImpl.getBooleanSetting
throws:
  SystemException - If this setting does not exist or there is atechnical problem. Throws SettingsDataTypeExceptionif the setting has any class other than String.



isSettingEnabled
public boolean isSettingEnabled(SecuritySession securitySession, String name) throws SystemException(Code)

Find out whether or not a setting is enabled.


Parameters:
  securitySession - Used to authenticate the user.
Parameters:
  name - Name of the setting to check. true if the setting exists and is enabled.
throws:
  SystemException - If there is a technical problem checking thesetting.



revertSetting
public void revertSetting(SecuritySession securitySession, String name, UserDO user) throws SystemException(Code)

Revert a user setting back to the general value.


Parameters:
  securitySession - Used to authenticate the user.
Parameters:
  name - The name of the setting to revert.
Parameters:
  user - The name of the user to revert the setting for.
throws:
  SystemException - If there is a technical problem reverting thesetting.



validate
public ValidationErrors validate(SecuritySession securitySession, Map settings, Locale locale, int settingType) throws SystemException(Code)

Confirm all of the settings passed are correct.


Parameters:
  securitySession - Used to authenticate the user.
Parameters:
  settings - A Map with setting names as keys and settingvalues as values
Parameters:
  locale - The Locale to get localised error messages
Parameters:
  settingType - One of the constants in SettingConstants:SETTING_USER or SETTING_SYSTEM A collection of validation errors if any of the settingscontains invalid value.
throws:
  SystemException - If there is a technical problem.




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.