Package mc.core.model.cc
Class User
java.lang.Object
mc.core.model.base.EntityBase
mc.core.model.base.ComplexEntity
mc.core.model.cc.Principal
mc.core.model.cc.User
- All Implemented Interfaces:
Serializable,IBaseEntity,ICoreEntity,IEntity,ISortableEntity
Entity representing a User in the system. User must have login and password and a baseRole (UserCredentials).
BaseRoles are:
BaseRoles are:
- STANDARDUSER: see, insert, edit and delete object in main area, depending on his permissions on right managed objects
- POWERUSER: insert, edit and delete User and UserGroups
- CONFIGADMIN: allowed to insert, edit and delete configuration
- SERVICEUSER: starts workflows and internal processes that need an User
- ROOT: all functions in the system
password: is stored encrypted and can only changed by user himself or by a POWERUSER.
defaultLocale: the User's default content locale. Currently not used translationLocales:
target locale's for translations which the user uses to perform. Multilocale data of objects are presented with data
in content locale followed by input fields for the translation locales.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumno property fields, used as parameter constant and label keystatic enumNested classes/interfaces inherited from class mc.core.model.base.ComplexEntity
ComplexEntity.ComplexEntityComparatorNested classes/interfaces inherited from class mc.core.model.base.EntityBase
EntityBase.EntityComparator -
Field Summary
Fields inherited from class mc.core.model.base.EntityBase
INTDESC_COLUMN_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()getLogin()get single translation locale.needed by EntityMapper on save (PropertyDescriptor read method)booleanis(User.UserBaseRole role) booleanis(UserCredentials userCredentials) booleanbooleanisExactly(User.UserBaseRole role) booleanbooleanisRoot()booleanbooleanbooleanvoidsetBaseRole(User.UserBaseRole role) voidsetDefaultLocale(Locale defaultLocale) voidvoidvoidsetPassword(String password) voidsetPasswordSalt(String passwordSalt) voidsetTranslationLocales(Set<Locale> translationLocales) used by EntityMapper on savevoidsetUiLocale(Locale uiLocale) voidsetUserGroupList(List<UserGroup> list) voidsetUserName(String name) Methods inherited from class mc.core.model.cc.Principal
getInternalDescription, getPermissionsForPrincipal, getTerritory, getType, isActive, setActive, setPermissionsForPrincipal, setTerritoryMethods inherited from class mc.core.model.base.ComplexEntity
addState, getAttributes, getCollections, getCollections, getCollectionToCEs, getDateCreated, getDateModified, getEntityData, getEntityDatas, getEntityFilters, getEntityOwner, getExternalKey, getFileId, getFilename, getHasObjectRights, getId, getLifeCycleFlag, getMasterId, getMasterLocale, getMemos, getParameter, getParameters, getParameterValue, getPermissions, getRelatedEntities, getState, getStateGroupTypes, getStates, getStatesToRemove, getVersions, getWatches, isArchived, isDeleted, isRightInheritanceDisabled, isSecondaryCollection, setAttributes, setCollectionToCEs, setDateCreated, setDateModified, setEntityDatas, setEntityFilters, setEntityOwner, setExternalKey, setFileId, setFilename, setId, setLifeCycleFlag, setMasterId, setMasterLocale, setMemos, setParameters, setPermissions, setRelatedEntities, setRightInheritanceDisabled, setStates, setType, setVersions, setWatchesMethods inherited from class mc.core.model.base.EntityBase
equals, getCollection, getDescription, getDescription, getFlag, getIsSystem, getName, getName, getNamespace, getPrio, hashCode, setCollection, setDescription, setDescription, setFlag, setInternalDescription, setIsSystem, setName, setName, setNamespace, setPrio, toString
-
Constructor Details
-
User
public User() -
User
Copy constructor.- Parameters:
source- Template object.
-
User
-
-
Method Details
-
getDefaultLocale
-
getUiLocale
-
getEmail
-
getPassword
-
getPasswordSalt
-
getUserGroupList
-
getBaseRole
-
setBaseRole
-
setDefaultLocale
-
setUiLocale
-
setEmail
-
setPassword
-
setPasswordSalt
-
setUserGroupList
-
getTranslationLocales
needed by EntityMapper on save (PropertyDescriptor read method) -
setTranslationLocales
used by EntityMapper on save -
getTranslationLocale
get single translation locale. currently only one is implemented- Returns:
- locale or null if no translation locale is set
-
getUserWithGroups
- Returns:
- combined list with user and and his/her groups
-
is
-
isExactly
-
is
-
getLogin
-
setLogin
-
getUserName
-
setUserName
-
isConfigAdmin
public boolean isConfigAdmin()- Returns:
trueif user's role as mighty as or mightier thanUser.UserBaseRole.CONFIGADMIN.
-
isPowerUser
public boolean isPowerUser()- Returns:
trueif user's role as mighty as or mightier thanUser.UserBaseRole.POWERUSER.
-
isRoot
public boolean isRoot()- Returns:
trueif user's role isUser.UserBaseRole.ROOT.
-
isServiceUser
public boolean isServiceUser()- Returns:
trueif user's role as mighty as or mightier thanUser.UserBaseRole.SERVICEUSER.
-
isStandardUser
public boolean isStandardUser()- Returns:
- Always
true.
-
getUserProfile
-
isVisible
public boolean isVisible()
-