org.opencrx.kernel.backend
Class UserHomes

java.lang.Object
  extended by org.opencrx.kernel.backend.UserHomes

public class UserHomes
extends Object


Field Summary
protected  Backend backend
           
static short CAN_NOT_CHANGE_PASSWORD
           
static short CAN_NOT_RETRIEVE_REQUESTED_PRINCIPAL
           
static short CHANGE_PASSWORD_OK
           
static short MISSING_NEW_PASSWORD
           
static short MISSING_NEW_PASSWORD_VERIFICATION
           
static short MISSING_OLD_PASSWORD
           
static short PASSWORD_VERIFICATION_MISMATCH
           
 
Constructor Summary
UserHomes(Backend backend)
           
 
Method Summary
 short changePassword(org.openmdx.base.naming.Path userHomeIdentity, boolean verifyOldPassword, String oldPassword, String newPassword, String newPasswordVerification)
           
 short changePassword(org.openmdx.base.naming.Path passwordCredentialIdentity, String oldPassword, String password)
           
 List completeUserHome(org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 userHome)
          Deprecated.  
 org.openmdx.application.dataprovider.cci.DataproviderObject createPasswordCredential(org.openmdx.base.naming.Path subjectIdentity, List errors)
          Deprecated.  
 UserHome createUserHome(org.openmdx.base.naming.Path realmIdentity, org.openmdx.base.naming.Path contactIdentity, org.openmdx.base.naming.Path primaryGroup, String principalName, Set isMemberOf, boolean isAdministrator, String initialPassword, String initialPasswordVerification, List errors)
          Deprecated.  
 void encodeEMailAccountPassword(org.openmdx.application.dataprovider.cci.DataproviderObject object, org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 oldValues)
          Deprecated.  
static String getUidAsString()
           
 org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 getUserHome(org.openmdx.base.naming.Path from)
          Deprecated.  
 org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 getUserHome(String user, org.openmdx.base.naming.Path from)
          Deprecated.  
static String getWebAccessUrl(UserHome userHome)
           
 String importUsers(org.openmdx.base.naming.Path homeSegmentIdentity, byte[] item)
          Deprecated.  
 FilterProperty[] mapObjectFinderToFilter(org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 objectFinder)
          Deprecated.  
static void markAsAccepted(Alert alert, javax.jdo.PersistenceManager pm)
           
static void markAsRead(Alert alert, javax.jdo.PersistenceManager pm)
           
static void refreshItems(UserHome userHome, javax.jdo.PersistenceManager pm)
           
static ObjectFinder searchAdvanced(UserHome userHome, String allWords, String atLeastOneOfTheWords, String withoutWords, javax.jdo.PersistenceManager pm)
           
static ObjectFinder searchBasic(UserHome userHome, String searchExpression, javax.jdo.PersistenceManager pm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

UserHomes

public UserHomes(Backend backend)
Method Detail

getUidAsString

public static String getUidAsString()

markAsAccepted

public static void markAsAccepted(Alert alert,
                                  javax.jdo.PersistenceManager pm)
                           throws ServiceException
Throws:
ServiceException

markAsRead

public static void markAsRead(Alert alert,
                              javax.jdo.PersistenceManager pm)
                       throws ServiceException
Throws:
ServiceException

refreshItems

public static void refreshItems(UserHome userHome,
                                javax.jdo.PersistenceManager pm)
                         throws ServiceException
Throws:
ServiceException

getUserHome

public org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 getUserHome(org.openmdx.base.naming.Path from)
                                                                            throws ServiceException
Deprecated. 

Throws:
ServiceException

getUserHome

public org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 getUserHome(String user,
                                                                                   org.openmdx.base.naming.Path from)
                                                                            throws ServiceException
Deprecated. 

Throws:
ServiceException

createPasswordCredential

public org.openmdx.application.dataprovider.cci.DataproviderObject createPasswordCredential(org.openmdx.base.naming.Path subjectIdentity,
                                                                                            List errors)
Deprecated. 

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(org.openmdx.base.naming.Path passwordCredentialIdentity,
                            String oldPassword,
                            String password)

changePassword

public short changePassword(org.openmdx.base.naming.Path userHomeIdentity,
                            boolean verifyOldPassword,
                            String oldPassword,
                            String newPassword,
                            String newPasswordVerification)

createUserHome

public UserHome createUserHome(org.openmdx.base.naming.Path realmIdentity,
                               org.openmdx.base.naming.Path contactIdentity,
                               org.openmdx.base.naming.Path primaryGroup,
                               String principalName,
                               Set isMemberOf,
                               boolean isAdministrator,
                               String initialPassword,
                               String initialPasswordVerification,
                               List errors)
Deprecated. 

Creates a new user. The owner of the created objects are set as follows:


importUsers

public String importUsers(org.openmdx.base.naming.Path homeSegmentIdentity,
                          byte[] item)
                   throws ServiceException
Deprecated. 

Throws:
ServiceException

encodeEMailAccountPassword

public void encodeEMailAccountPassword(org.openmdx.application.dataprovider.cci.DataproviderObject object,
                                       org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 oldValues)
                                throws ServiceException
Deprecated. 

Throws:
ServiceException

completeUserHome

public List completeUserHome(org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 userHome)
                      throws ServiceException
Deprecated. 

Throws:
ServiceException

mapObjectFinderToFilter

public FilterProperty[] mapObjectFinderToFilter(org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 objectFinder)
Deprecated. 


searchBasic

public static ObjectFinder searchBasic(UserHome userHome,
                                       String searchExpression,
                                       javax.jdo.PersistenceManager pm)
                                throws ServiceException
Throws:
ServiceException

searchAdvanced

public static ObjectFinder searchAdvanced(UserHome userHome,
                                          String allWords,
                                          String atLeastOneOfTheWords,
                                          String withoutWords,
                                          javax.jdo.PersistenceManager pm)
                                   throws ServiceException
Throws:
ServiceException

getWebAccessUrl

public static String getWebAccessUrl(UserHome userHome)


This software is published under the BSD license. Copyright © 2003-2009, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.