com.centrasite.control.registry.items
Class RegistryUserItem
java.lang.Object
com.centrasite.control.AbstractItem
com.centrasite.control.registry.items.RegistryObjectItem
com.centrasite.control.registry.items.RegistryUserItem
- All Implemented Interfaces:
- Item
public class RegistryUserItem
- extends RegistryObjectItem
Wrap an arbitrary User object
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 |
RegistryUserItem
public RegistryUserItem(javax.xml.registry.infomodel.RegistryObject ro,
Connector con)
throws java.lang.Exception
- Throws:
java.lang.Exception
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