Java Doc for GlobalConfigurationEngine.java in  » J2EE » fleXive » com » flexive » shared » interfaces » 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 » J2EE » fleXive » com.flexive.shared.interfaces 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.flexive.shared.interfaces.GlobalConfigurationEngine

All known Subclasses:   com.flexive.ejb.beans.configuration.GlobalConfigurationEngineBean,
GlobalConfigurationEngine
public interface GlobalConfigurationEngine extends GenericConfigurationEngine(Code)
Global configuration interface. Stores parameters valid for all divisions and the division configuration itself.
author:
   Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)




Method Summary
 voidclearDivisionCache()
     Clear the division cache.
 voidcreate()
     JMX management method.
 DivisionDatacreateDivisionData(int divisionId, String dataSource, String domainRegEx)
     Tests the database connection for the given dataSource JNDI name and returns a DivisionData object with the current database vendor and version values.
 voiddestroy()
     JMX management method.
 DivisionDatagetDivisionData(int division)
     Returns the configuration data for a given division ID.
 intgetDivisionId(String serverName)
     Returns the first matching division for the given server name, or -1 if no division was found.
 int[]getDivisionIds()
     Return all configured division IDs.
 DivisionData[]getDivisions()
     Return the division data for all configured divisions.
 StringgetRootLogin()
     Return the root user name.
 StringgetRootPassword()
     Get the SHA1-hashed root password.
 booleanisMatchingRootPassword(String userPassword)
     Return true if the given plain-text password matches the stored (and hashed) password.
 voidregisterCacheMBean(ObjectName name)
    
 voidsaveDivisions(List<? extends DivisionData> divisions)
     Replaces the existing division configuration.
 voidsetRootLogin(String value)
     Set the root user name.
 voidsetRootPassword(String value)
     Set the root password.



Method Detail
clearDivisionCache
void clearDivisionCache()(Code)
Clear the division cache.



create
void create() throws Exception(Code)
JMX management method.
throws:
  Exception - if an error occured



createDivisionData
DivisionData createDivisionData(int divisionId, String dataSource, String domainRegEx)(Code)
Tests the database connection for the given dataSource JNDI name and returns a DivisionData object with the current database vendor and version values.
Parameters:
  divisionId - the division ID
Parameters:
  dataSource - the datasource JNDI path
Parameters:
  domainRegEx - the regular expression used for matching domains the DivisionData object with database information



destroy
void destroy() throws Exception(Code)
JMX management method.
throws:
  Exception - if an error occured



getDivisionData
DivisionData getDivisionData(int division) throws FxApplicationException(Code)
Returns the configuration data for a given division ID.
Parameters:
  division - the division ID. the configuration data for a given division ID.
throws:
  FxApplicationException - TODO
throws:
  FxLoadException - if an error occured reading the division configuration
throws:
  FxNotFoundException - if the division was not found



getDivisionId
int getDivisionId(String serverName) throws FxApplicationException(Code)
Returns the first matching division for the given server name, or -1 if no division was found.
Parameters:
  serverName - the server name to be matched the ID of the first division that matches
throws:
  FxApplicationException - TODO
throws:
  FxLoadException - if an error occured reading the division configuration



getDivisionIds
int[] getDivisionIds() throws FxApplicationException(Code)
Return all configured division IDs. all configured division IDs
throws:
  FxApplicationException - TODO
throws:
  FxLoadException - if an error occured reading the division configuration



getDivisions
DivisionData[] getDivisions() throws FxApplicationException(Code)
Return the division data for all configured divisions. division data for all configured divisions.
throws:
  FxApplicationException - TODO
throws:
  FxLoadException - if an error occured reading the division configuration



getRootLogin
String getRootLogin() throws FxApplicationException(Code)
Return the root user name. the root login name.
throws:
  FxApplicationException - TODO
throws:
  FxLoadException - if a database error occured
throws:
  FxNotFoundException - if the root login is not set in the configuration



getRootPassword
String getRootPassword() throws FxApplicationException(Code)
Get the SHA1-hashed root password. the SHA1-hashed root password.
throws:
  FxApplicationException - TODO
throws:
  FxLoadException - if the parameter could not be loaded successfully
throws:
  FxNotFoundException - if the root login is not set



isMatchingRootPassword
boolean isMatchingRootPassword(String userPassword) throws FxApplicationException(Code)
Return true if the given plain-text password matches the stored (and hashed) password.
Parameters:
  userPassword - the password to be checked true if the given plain-text password matches the stored(and hashed) password.
throws:
  FxApplicationException - TODO
throws:
  FxLoadException - if the root password could not be loaded
throws:
  FxNotFoundException - if the root password is not set in the global configuration



registerCacheMBean
void registerCacheMBean(ObjectName name) throws MBeanRegistrationException, NotCompliantMBeanException, InstanceAlreadyExistsException(Code)



saveDivisions
void saveDivisions(List<? extends DivisionData> divisions) throws FxApplicationException(Code)
Replaces the existing division configuration.
Parameters:
  divisions - the new division data
throws:
  FxApplicationException - if the divisions could not be updated.



setRootLogin
void setRootLogin(String value) throws FxApplicationException(Code)
Set the root user name.
Parameters:
  value - the new root user name
throws:
  FxApplicationException - TODO
throws:
  FxUpdateException - if the user name could not be updated
throws:
  FxNoAccessException - if the calling user is not permitted to change to root long



setRootPassword
void setRootPassword(String value) throws FxApplicationException(Code)
Set the root password.
Parameters:
  value - the root password in plain-text.
throws:
  FxApplicationException - TODO
throws:
  FxUpdateException - if the password could not be updated
throws:
  FxNoAccessException - if the calling user is not permitted to change the password



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