Package ru.bgcrm.model.user
Class User
java.lang.Object
org.bgerp.model.base.Id
org.bgerp.model.base.IdTitle
org.bgerp.model.base.IdTitleComment
ru.bgcrm.model.user.User
- All Implemented Interfaces:
- Serializable,- Cloneable,- Comparable<User>,- Comment,- Id<Integer>,- IdTitle<Integer>,- Title,- UserAccount
- Direct Known Subclasses:
- UserAccount
Application user
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intActive user.static final intBlocked user.static final intUser provided from external auth system.static final Userstatic final intstatic final Userstatic final intFields inherited from class org.bgerp.model.base.IdTitleCommentcomment
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanChecks ifactionallowed in user permissions.clone()intDeprecated.Group IDs active on the current date.getLogin()Gets user permission for action.intList of users, fist is the current one.booleanisAdmin()voidvoidsetDescription(String value) Deprecated.voidsetGroupIds(Set<Integer> groupIds) voidvoidsetPassword(String password) voidsetPermsetIds(List<Integer> permsetIds) voidsetPersonalization(String personalization) voidsetQueueIds(Set<Integer> queueIds) voidsetStatus(int status) Methods inherited from class org.bgerp.model.base.IdTitleCommentgetComment, setComment
- 
Field Details- 
OBJECT_TYPE- See Also:
 
- 
USER_SYSTEM_IDpublic static final int USER_SYSTEM_ID- See Also:
 
- 
USER_CUSTOMER_IDpublic static final int USER_CUSTOMER_ID- See Also:
 
- 
USER_SYSTEM
- 
USER_CUSTOMER
- 
STATUS_ACTIVEpublic static final int STATUS_ACTIVEActive user.- See Also:
 
- 
STATUS_DISABLEDpublic static final int STATUS_DISABLEDBlocked user.- See Also:
 
- 
STATUS_EXTERNALpublic static final int STATUS_EXTERNALUser provided from external auth system. Is active, but shouldn't be edited in the current one.- See Also:
 
 
- 
- 
Constructor Details- 
Userpublic User()
- 
User
 
- 
- 
Method Details- 
isAdminpublic boolean isAdmin()- Returns:
- is the user admin with Id.getId()equals1.
 
- 
getLogin- Specified by:
- getLoginin interface- UserAccount
 
- 
setLogin
- 
getPassword- Specified by:
- getPasswordin interface- UserAccount
 
- 
setPassword
- 
getStatuspublic int getStatus()
- 
setStatuspublic void setStatus(int status) 
- 
getGroupIdsGroup IDs active on the current date.- Returns:
 
- 
setGroupIds
- 
getPermsetIds
- 
setPermsetIds
- 
getQueueIds
- 
setQueueIds
- 
getConfig
- 
setConfig
- 
getConfigMap
- 
getPersonalization
- 
setPersonalization
- 
getPersonalizationMap
- 
compareTo- Specified by:
- compareToin interface- Comparable<User>
 
- 
clone
- 
getUserListWithSameGroupsList of users, fist is the current one. After collected fromUserCache.getUserList()users with intersected groups with the current one.- Returns:
 
- 
checkPermChecks ifactionallowed in user permissions.- Parameters:
- action- semicolon separated action class and method, e.g.- org.bgerp.plugin.bil.invoice.action.InvoiceAction:get.
- Returns:
- is the action allowed.
 
- 
getPermGets user permission for action.- Parameters:
- action- semicolon separated action class name and method, e.g.- org.bgerp.plugin.bil.invoice.action.InvoiceAction:get.
- Returns:
- allowed permission with options or null.
 
- 
getDescriptionDeprecated.
- 
setDescriptionDeprecated.
 
-