| java.lang.Object com.ivata.groupware.business.BusinessLogic com.ivata.groupware.admin.security.SecurityImpl
All known Subclasses: com.ivata.groupware.admin.security.addressbook.AddressBookSecurityImpl,
Constructor Summary | |
public | SecurityImpl(QueryPersistenceManager persistenceManagerParam, SecurityServer securityServerParam, MaskFactory maskFactoryParam, Boolean demoVersionParam) Constructor. |
Method Summary | |
public UserDO | addUser(SecuritySession securitySession, UserDO user) | public void | amendUser(SecuritySession securitySession, UserDO user) | public boolean | checkPassword(SecuritySession securitySession, String password) | public void | enableUser(SecuritySession securitySession, String userNameEnable, boolean enable) | public UserDO | findUserByName(SecuritySession securitySession, String userName) | protected String | getRealName(PersistenceSession persistenceSession, UserDO user)
Override this to provide a better string as the 'real' user name. | final public String | getSystemUserName(SecuritySession securitySession, String userName) | final public String | getUserNameFromSystemUserName(SecuritySession securitySession, String systemUserName) | protected boolean | isDemoVersion() Find out whether or not the system is in demo mode.
All security features are disabled in demo mode. | public boolean | isUser(SecuritySession securitySession, String userNameParam) | public boolean | isUserEnabled(SecuritySession securitySession, String userName) | public SecuritySession | login(UserDO user, String password) | public SecuritySession | loginGuest() | protected void | onAmendUserName(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 void | removeUser(SecuritySession securitySession, String userNameRemove) | final public void | setPassword(SecuritySession securitySession, String userNamePassword, String password) |
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. |
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. |
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 - |
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 - |
|
|