com.centrasite.control.registry.items
Class RegistryUserItem

java.lang.Object
  extended by com.centrasite.control.AbstractItem
      extended by com.centrasite.control.registry.items.RegistryObjectItem
          extended by com.centrasite.control.registry.items.RegistryUserItem
All Implemented Interfaces:
Item

public class RegistryUserItem
extends RegistryObjectItem

Wrap an arbitrary User object


Nested Class Summary
 
Nested classes/interfaces inherited from class com.centrasite.control.registry.items.RegistryObjectItem
RegistryObjectItem.ProfileVisibilityBean, RegistryObjectItem.ReferencingDescriptor
 
Field Summary
 
Fields inherited from class com.centrasite.control.registry.items.RegistryObjectItem
profilePermissionUpdated, REFERENCING_LIST_AS_ITEMS, REFERENCING_LIST_AS_REFOBJECTS
 
Fields inherited from class com.centrasite.control.AbstractItem
rcs_id
 
Constructor Summary
RegistryUserItem(javax.xml.registry.infomodel.RegistryObject ro, Connector con)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 boolean equals(RegistryObjectProxyItem other)
           
 java.lang.String getFromAddUser()
           
 java.lang.String getImageURL()
           
 java.lang.String getName()
           
 java.lang.String getPersonNameAsString()
          Get person name formatted as string
 javax.xml.registry.infomodel.User getUser()
           
static java.lang.String getUserName(javax.xml.registry.infomodel.User user, java.util.Locale locale)
           
 int hashCode()
          Provide hash function for being able to use RegistryObjectItems as key for hashing
 void save(ActionContext actionContext)
          Save Item
 void setFromAddUser(java.lang.String fromAddUser)
           
 void updatePassword(java.lang.String oldPassword, java.lang.String newPassword)
          Update password of predefined users, e.g.
 
Methods inherited from class com.centrasite.control.registry.items.RegistryObjectItem
addAuditComment, addClassification, addClassification, addExternalClassification, addInternelClassification, clearCache, clearProperties, delete, delete, freeze, getAccessControlElements, getCachedRegistryObject, getCentraSiteRegistryObject, getCentraSiteVirtualTypeConcept, getChildren, getChildren, getCollectRestServiceAssociatedObjects, getCollectVirtualServiceAssociatedObjects, getCurrentUserPermissionItem, getDefinedSlotNames, getDescription, getKey, getLabel, getLargeImageURL, getLastAuditableEvent, getName, getNameEx, getNonPermissionAccessControlElements, getPermissionForNonPermissionACL, getPrivilegeDescriptor, getProperties, getReferencingItems, getReferencingObjects, getRegistryObject, getReport, getReportForDetailView, getSlotDescriptions, getTooltip, hasNoChildren, hasObjectType, hasObjectType, hasObjectType, isCanPropagateACL, isCentraSiteVirtualTypeConcept, isEnabledForVersioning, isModified, isNewItem, isPredefined, isPropagateProfileEnabled, isRevisionObject, isStandalone, setAccessControlElements, setAccessControlElements, setCanPropagateACL, setCollectRestServiceAssociatedObjects, setCollectVirtualServiceAssociatedObjects, setNewItem, setPropagateProfileEnabled, setProperties, toString
 
Methods inherited from class com.centrasite.control.AbstractItem
addBulkCommand, addCommand, addDetailViewTab, cannotHaveChildren, getBulkCommands, getCommand, getCommand, getCommands, getConnector, getDefaultCommand, getDetailsCommand, getDetailViewTabs, getItem, getLanguage, getLocale, getPath, getPersistanceLocale, getRelatedItems, hasRequiredAttribute, isLocked, isReadOnly, isSubTabModified, removeCommand, replaceCommand, setCommandEnabled, setConnector, setDefaultCommand, setDetailsCommand, setLocked, setRelatedItems, setRequiredAttribute, setTabModified, showDetailView, showReport
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegistryUserItem

public RegistryUserItem(javax.xml.registry.infomodel.RegistryObject ro,
                        Connector con)
                 throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getUser

public javax.xml.registry.infomodel.User getUser()

getImageURL

public java.lang.String getImageURL()
                             throws java.lang.Exception
Specified by:
getImageURL in interface Item
Overrides:
getImageURL in class RegistryObjectItem
Throws:
java.lang.Exception

updatePassword

public void updatePassword(java.lang.String oldPassword,
                           java.lang.String newPassword)
Update password of predefined users, e.g. DefaultUser.

Parameters:
oldPassword - The old password.
newPassword - The new password to be set.

getUserName

public static java.lang.String getUserName(javax.xml.registry.infomodel.User user,
                                           java.util.Locale locale)
                                    throws javax.xml.registry.JAXRException
Parameters:
user -
locale -
Throws:
javax.xml.registry.JAXRException

getName

public java.lang.String getName()
Specified by:
getName in interface Item
Overrides:
getName in class RegistryObjectItem

getPersonNameAsString

public java.lang.String getPersonNameAsString()
                                       throws java.lang.Exception
Get person name formatted as string

Returns:
the person name
Throws:
java.lang.Exception

save

public void save(ActionContext actionContext)
          throws java.lang.Exception
Description copied from class: AbstractItem
Save Item

Specified by:
save in interface Item
Overrides:
save in class RegistryObjectItem
Throws:
java.lang.Exception

getFromAddUser

public java.lang.String getFromAddUser()

setFromAddUser

public void setFromAddUser(java.lang.String fromAddUser)

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class RegistryObjectItem

hashCode

public int hashCode()
Description copied from class: RegistryObjectItem
Provide hash function for being able to use RegistryObjectItems as key for hashing

Overrides:
hashCode in class RegistryObjectItem

equals

public boolean equals(RegistryObjectProxyItem other)
Overrides:
equals in class RegistryObjectItem