org.opencrx.kernel.backend
Class UserHomes
java.lang.Object
org.opencrx.kernel.backend.UserHomes
public class UserHomes
- extends Object
|
Method Summary |
short |
changePassword(Path userHomeIdentity,
boolean verifyOldPassword,
String oldPassword,
String newPassword,
String newPasswordVerification)
|
short |
changePassword(Path passwordCredentialIdentity,
String oldPassword,
String password)
|
List |
completeUserHome(DataproviderObject_1_0 userHome)
|
DataproviderObject |
createPasswordCredential(Path subjectIdentity,
List errors)
Creates a password credential for the specified subject. |
UserHome |
createUserHome(Path realmIdentity,
Path contactIdentity,
Path primaryGroup,
String principalName,
Set isMemberOf,
boolean isAdministrator,
String initialPassword,
String initialPasswordVerification,
List errors)
Creates a new user. |
void |
encodeEMailAccountPassword(DataproviderObject object,
DataproviderObject_1_0 oldValues)
|
DataproviderObject_1_0 |
getUserHome(Path from)
|
DataproviderObject_1_0 |
getUserHome(String user,
Path from)
|
String |
importUsers(Path homeSegmentIdentity,
byte[] item)
|
FilterProperty[] |
mapObjectFinderToFilter(DataproviderObject_1_0 objectFinder)
|
void |
markAsAccepted(Path alertIdentity)
|
void |
markAsRead(Path alertIdentity)
|
void |
refreshCharts(DataproviderObject_1_0 userHome)
|
void |
refreshItems(UserHome userHome)
|
ObjectFinder |
searchAdvanced(Path userHomeIdentity,
String allWords,
String atLeastOneOfTheWords,
String withoutWords)
|
ObjectFinder |
searchBasic(Path userHomeIdentity,
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
backend
protected final Backend backend
UserHomes
public UserHomes(Backend backend)
refreshItems
public void refreshItems(UserHome userHome)
throws ServiceException
- Throws:
ServiceException
markAsAccepted
public void markAsAccepted(Path alertIdentity)
throws ServiceException
- Throws:
ServiceException
markAsRead
public void markAsRead(Path alertIdentity)
throws ServiceException
- Throws:
ServiceException
refreshCharts
public void refreshCharts(DataproviderObject_1_0 userHome)
throws ServiceException
- Throws:
ServiceException
getUserHome
public DataproviderObject_1_0 getUserHome(Path from)
throws ServiceException
- Throws:
ServiceException
getUserHome
public DataproviderObject_1_0 getUserHome(String user,
Path from)
throws ServiceException
- Throws:
ServiceException
createPasswordCredential
public DataproviderObject createPasswordCredential(Path subjectIdentity,
List errors)
- Creates a password credential for the specified subject. The password
is not set by this method. This must be done with changePassword.
changePassword
public short changePassword(Path passwordCredentialIdentity,
String oldPassword,
String password)
changePassword
public short changePassword(Path userHomeIdentity,
boolean verifyOldPassword,
String oldPassword,
String newPassword,
String newPasswordVerification)
createUserHome
public UserHome createUserHome(Path realmIdentity,
Path contactIdentity,
Path primaryGroup,
String principalName,
Set isMemberOf,
boolean isAdministrator,
String initialPassword,
String initialPasswordVerification,
List errors)
- Creates a new user. The owner of the created objects are set as follows:
- user subject: segment administrator
- all other objects (user home, password): user
importUsers
public String importUsers(Path homeSegmentIdentity,
byte[] item)
throws ServiceException
- Throws:
ServiceException
encodeEMailAccountPassword
public void encodeEMailAccountPassword(DataproviderObject object,
DataproviderObject_1_0 oldValues)
throws ServiceException
- Throws:
ServiceException
completeUserHome
public List completeUserHome(DataproviderObject_1_0 userHome)
throws ServiceException
- Throws:
ServiceException
mapObjectFinderToFilter
public FilterProperty[] mapObjectFinderToFilter(DataproviderObject_1_0 objectFinder)
searchBasic
public ObjectFinder searchBasic(Path userHomeIdentity,
String searchExpression)
throws ServiceException
- Throws:
ServiceException
searchAdvanced
public ObjectFinder searchAdvanced(Path userHomeIdentity,
String allWords,
String atLeastOneOfTheWords,
String withoutWords)
throws ServiceException
- Throws:
ServiceException
This software is published under the BSD license. Copyright © 2003-2008, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.