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


java.lang.Object
   com.ivata.groupware.business.BusinessLogic
      com.ivata.groupware.admin.security.SecurityImpl

All known Subclasses:   com.ivata.groupware.admin.security.addressbook.AddressBookSecurityImpl,
SecurityImpl
public class SecurityImpl extends BusinessLogic implements Security(Code)
Refer to Security .
author:
   Colin MacLeod
author:
   colin.macleod@ivata.com
since:
   ivata groupware 0.9 (2002-09-08)
version:
   $Revision: 1.8 $



Constructor Summary
public  SecurityImpl(QueryPersistenceManager persistenceManagerParam, SecurityServer securityServerParam, MaskFactory maskFactoryParam, Boolean demoVersionParam)
     Constructor.

Method Summary
public  UserDOaddUser(SecuritySession securitySession, UserDO user)
    
public  voidamendUser(SecuritySession securitySession, UserDO user)
    
public  booleancheckPassword(SecuritySession securitySession, String password)
    
public  voidenableUser(SecuritySession securitySession, String userNameEnable, boolean enable)
    
public  UserDOfindUserByName(SecuritySession securitySession, String userName)
    
protected  StringgetRealName(PersistenceSession persistenceSession, UserDO user)
    

Override this to provide a better string as the 'real' user name.

final public  StringgetSystemUserName(SecuritySession securitySession, String userName)
    
final public  StringgetUserNameFromSystemUserName(SecuritySession securitySession, String systemUserName)
    
protected  booleanisDemoVersion()
     Find out whether or not the system is in demo mode.

All security features are disabled in demo mode.

public  booleanisUser(SecuritySession securitySession, String userNameParam)
    
public  booleanisUserEnabled(SecuritySession securitySession, String userName)
    
public  SecuritySessionlogin(UserDO user, String password)
    
public  SecuritySessionloginGuest()
    
protected  voidonAmendUserName(SecuritySession securitySession, PersistenceSession persistenceSession, UserDO user, String oldName)
     Called when the user name is changed, so it can be overridden to change address book groups accordingly.
public  voidremoveUser(SecuritySession securitySession, String userNameRemove)
    
final public  voidsetPassword(SecuritySession securitySession, String userNamePassword, String password)
    


Constructor Detail
SecurityImpl
public SecurityImpl(QueryPersistenceManager persistenceManagerParam, SecurityServer securityServerParam, MaskFactory maskFactoryParam, Boolean demoVersionParam)(Code)
Constructor. Normally called by PicoContainer.
Parameters:
  persistenceManagerParam - Used to store and retrieve users.
Parameters:
  securityServerParam - Used to log users in and add system users.
Parameters:
  maskFactoryParam - Used in validation.
Parameters:
  demoVersionParam - If true, users will not be added tothe system.




Method Detail
addUser
public UserDO addUser(SecuritySession securitySession, UserDO user) throws SystemException(Code)

Parameters:
  securitySession -
Parameters:
  user -
throws:
  SystemException -



amendUser
public void amendUser(SecuritySession securitySession, UserDO user) throws SystemException(Code)

Parameters:
  securitySession -
Parameters:
  user -
throws:
  SystemException -



checkPassword
public boolean checkPassword(SecuritySession securitySession, String password) throws SystemException(Code)

Parameters:
  securitySession -
Parameters:
  password -
throws:
  SystemException -



enableUser
public void enableUser(SecuritySession securitySession, String userNameEnable, boolean enable) throws SystemException(Code)

Enable/disable a user from logging into the system.


Parameters:
  securitySession - Used to authenticate the user currently using thesystem.
Parameters:
  userNameEnable - the name of the user to enable or disable.
Parameters:
  enable - set to true if the user should be allowed tolog into the system, otherwise false.
throws:
  SystemException - if any of the parameters arenull, or the user cannot be enabled for any reason.



findUserByName
public UserDO findUserByName(SecuritySession securitySession, String userName) throws SystemException(Code)

Parameters:
  securitySession -
Parameters:
  userName -
throws:
  SystemException -



getRealName
protected String getRealName(PersistenceSession persistenceSession, UserDO user) throws SystemException(Code)

Override this to provide a better string as the 'real' user name. This is usually a name such as "Paul Smith". The default implementation just returns the user name.


Parameters:
  persistenceSession - Valid persistence session.
Parameters:
  user - The user for whom to return the name. Real-life name for this user.
throws:
  SystemException - If the user's real name cannot be obtained forany reason.



getSystemUserName
final public String getSystemUserName(SecuritySession securitySession, String userName)(Code)

Parameters:
  securitySession -
Parameters:
  userName -



getUserNameFromSystemUserName
final public String getUserNameFromSystemUserName(SecuritySession securitySession, String systemUserName)(Code)

Parameters:
  securitySession -
Parameters:
  systemUserName -



isDemoVersion
protected boolean isDemoVersion()(Code)
Find out whether or not the system is in demo mode.

All security features are disabled in demo mode. This is determined by the system setting demoVersion.

Returns true if the system is currently in demomode.



isUser
public boolean isUser(SecuritySession securitySession, String userNameParam) throws SystemException(Code)

Parameters:
  securitySession -
Parameters:
  userNameParam -
throws:
  SystemException -



isUserEnabled
public boolean isUserEnabled(SecuritySession securitySession, String userName) throws SystemException(Code)

Parameters:
  securitySession -
Parameters:
  userName -
throws:
  SystemException -



login
public SecuritySession login(UserDO user, String password) throws SystemException(Code)

Parameters:
  user -
Parameters:
  password -
throws:
  SystemException -



loginGuest
public SecuritySession loginGuest() throws SystemException(Code)

throws:
  SystemException -



onAmendUserName
protected void onAmendUserName(SecuritySession securitySession, PersistenceSession persistenceSession, UserDO user, String oldName) throws SystemException(Code)
Called when the user name is changed, so it can be overridden to change address book groups accordingly.
Parameters:
  securitySession - Used to authenticate the current system user.
Parameters:
  persistenceSession - valid, open session for the current data storetransaction.
Parameters:
  user - user with the new name set.
Parameters:
  oldName - user name before the change.
throws:
  SystemException - if the name cannot be changed for any reason



removeUser
public void removeUser(SecuritySession securitySession, String userNameRemove) throws SystemException(Code)

Parameters:
  securitySession -
Parameters:
  userNameRemove -
throws:
  SystemException -



setPassword
final public void setPassword(SecuritySession securitySession, String userNamePassword, String password) throws SystemException(Code)

Parameters:
  securitySession -
Parameters:
  userNamePassword -
Parameters:
  password -
throws:
  SystemException -




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.