org.opencrx.kernel.backend
Class UserHomes
java.lang.Object
org.opencrx.kernel.backend.AbstractImpl
org.opencrx.kernel.backend.UserHomes
public class UserHomes
- extends AbstractImpl
|
Method Summary |
void |
applyUserSettings(UserHome userHome,
Properties userSettings,
boolean runAsAdministrator,
boolean storeSettings,
PrincipalGroup primaryGroup,
String fTimezone,
String fStoreSettingsOnLogoff,
String fDefaultEmailAccount,
String fSendmailSubjectPrefix,
String fWebAccessUrl,
String fTopNavigationShowMax,
String fShowHistory,
List<String> fRootObjects,
Map<String,String> fSubscriptions)
Initializes a user's home and settings. |
short |
changePassword(org.openmdx.security.authentication1.jmi1.Password passwordCredential,
String oldPassword,
String password)
|
short |
changePassword(UserHome userHome,
boolean verifyOldPassword,
String oldPassword,
String newPassword,
String newPasswordVerification)
|
org.openmdx.security.authentication1.jmi1.Password |
createPasswordCredential(org.openmdx.security.realm1.jmi1.Subject subject,
List<String> errors)
|
UserHome |
createUserHome(org.openmdx.security.realm1.jmi1.Realm realm,
Contact contact,
PrincipalGroup primaryGroup,
String principalName,
List<org.openmdx.security.realm1.jmi1.Group> requiredGroups,
boolean isAdministrator,
String initialPassword,
String initialPasswordVerification,
List<String> errors,
javax.jdo.PersistenceManager pmRoot)
|
static UserHomes |
getInstance()
|
UserHome |
getUserHome(org.openmdx.base.naming.Path from,
javax.jdo.PersistenceManager pm)
|
UserHome |
getUserHome(String user,
org.openmdx.base.naming.Path from,
javax.jdo.PersistenceManager pm)
|
String |
getWebAccessUrl(UserHome userHome)
|
String |
importUsers(Segment homeSegment,
byte[] item)
|
void |
markAsAccepted(Alert alert)
|
void |
markAsRead(Alert alert)
|
void |
refreshItems(UserHome userHome)
|
static void |
register()
|
ObjectFinder |
searchAdvanced(UserHome userHome,
String allWords,
String atLeastOneOfTheWords,
String withoutWords)
|
ObjectFinder |
searchBasic(UserHome userHome,
String searchExpression)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CHANGE_PASSWORD_OK
public static final short CHANGE_PASSWORD_OK
- See Also:
- Constant Field Values
MISSING_NEW_PASSWORD
public static final short MISSING_NEW_PASSWORD
- See Also:
- Constant Field Values
MISSING_NEW_PASSWORD_VERIFICATION
public static final short MISSING_NEW_PASSWORD_VERIFICATION
- See Also:
- Constant Field Values
PASSWORD_VERIFICATION_MISMATCH
public static final short PASSWORD_VERIFICATION_MISMATCH
- See Also:
- Constant Field Values
CAN_NOT_RETRIEVE_REQUESTED_PRINCIPAL
public static final short CAN_NOT_RETRIEVE_REQUESTED_PRINCIPAL
- See Also:
- Constant Field Values
CAN_NOT_CHANGE_PASSWORD
public static final short CAN_NOT_CHANGE_PASSWORD
- See Also:
- Constant Field Values
MISSING_OLD_PASSWORD
public static final short MISSING_OLD_PASSWORD
- See Also:
- Constant Field Values
UserHomes
protected UserHomes()
register
public static void register()
getInstance
public static UserHomes getInstance()
throws ServiceException
- Throws:
ServiceException
markAsAccepted
public void markAsAccepted(Alert alert)
throws ServiceException
- Throws:
ServiceException
markAsRead
public void markAsRead(Alert alert)
throws ServiceException
- Throws:
ServiceException
refreshItems
public void refreshItems(UserHome userHome)
throws ServiceException
- Throws:
ServiceException
getUserHome
public UserHome getUserHome(org.openmdx.base.naming.Path from,
javax.jdo.PersistenceManager pm)
throws ServiceException
- Throws:
ServiceException
getUserHome
public UserHome getUserHome(String user,
org.openmdx.base.naming.Path from,
javax.jdo.PersistenceManager pm)
throws ServiceException
- Throws:
ServiceException
createPasswordCredential
public org.openmdx.security.authentication1.jmi1.Password createPasswordCredential(org.openmdx.security.realm1.jmi1.Subject subject,
List<String> errors)
changePassword
public short changePassword(org.openmdx.security.authentication1.jmi1.Password passwordCredential,
String oldPassword,
String password)
changePassword
public short changePassword(UserHome userHome,
boolean verifyOldPassword,
String oldPassword,
String newPassword,
String newPasswordVerification)
createUserHome
public UserHome createUserHome(org.openmdx.security.realm1.jmi1.Realm realm,
Contact contact,
PrincipalGroup primaryGroup,
String principalName,
List<org.openmdx.security.realm1.jmi1.Group> requiredGroups,
boolean isAdministrator,
String initialPassword,
String initialPasswordVerification,
List<String> errors,
javax.jdo.PersistenceManager pmRoot)
throws ServiceException
- Throws:
ServiceException
importUsers
public String importUsers(Segment homeSegment,
byte[] item)
throws ServiceException
- Throws:
ServiceException
searchBasic
public ObjectFinder searchBasic(UserHome userHome,
String searchExpression)
throws ServiceException
- Throws:
ServiceException
searchAdvanced
public ObjectFinder searchAdvanced(UserHome userHome,
String allWords,
String atLeastOneOfTheWords,
String withoutWords)
throws ServiceException
- Throws:
ServiceException
getWebAccessUrl
public String getWebAccessUrl(UserHome userHome)
applyUserSettings
public void applyUserSettings(UserHome userHome,
Properties userSettings,
boolean runAsAdministrator,
boolean storeSettings,
PrincipalGroup primaryGroup,
String fTimezone,
String fStoreSettingsOnLogoff,
String fDefaultEmailAccount,
String fSendmailSubjectPrefix,
String fWebAccessUrl,
String fTopNavigationShowMax,
String fShowHistory,
List<String> fRootObjects,
Map<String,String> fSubscriptions)
throws ServiceException
- Initializes a user's home and settings.
- Throws:
ServiceException
This software is published under the BSD license. Copyright © 2003-2009, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.