Package mc.core.domain.cc.dobj
Class UserGroupDO
java.lang.Object
mc.core.system.base.BaseBean
-
Nested Class Summary
Nested classes/interfaces inherited from class mc.core.domain.base.dobj.AbstractBaseDO
AbstractBaseDO.Initializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds user to group.voidNOTE: when overriding this method and you delete any other objects you need to call validateNotUsed before in case flag force is false!getAllActive(mc.core.system.search.SearchFilter sf) get all principals (User and UserGroup) according to given SearchFilter and active, not deleted and with isSystem-Flag false.getAllUserGroups(mc.core.system.search.SearchFilter sf) getSystemUserGroup(String type) get or insert system userGroupvoidremoveUser(UserGroup userGroup, User user) Methods inherited from class mc.core.domain.cc.dobj.AbstractPrincipalDO
getAllActiveMethods inherited from class mc.core.domain.base.dobj.AbstractComplexEntityDO
addDefaultSearchCriteria, assertPermission, assertPermission, attributes, copy, copyDataSync, copyToCollection, doRecursiveActionAsync, edit, entityProfileApply, entityProfileApply, filter, getCollectionHierarchies, getCollectionsAll, getFromExternalKey, getFromKeySearchFilter, getUserRole, insert, lifecycle, newComplexEntityEvent, onChange, parameter, permissions, prepareSearchFilter, relations, secondaryCollectionAdd, secondaryCollectionCopy, secondaryCollectionMove, secondaryCollectionRemove, setRightInheritanceDisabled, states, translate, versions, watchesMethods inherited from class mc.core.domain.base.dobj.AbstractEntityBaseDO
getFromInternalDescription, save, sendEvent, sendEventMethods inherited from class mc.core.domain.base.dobj.AbstractBaseDO
delete, getAll, getEntityDisplay, getFromId, getFromKey, getOne, map, map, save, validator
-
Constructor Details
-
UserGroupDO
public UserGroupDO()
-
-
Method Details
-
getAllActive
Description copied from class:AbstractPrincipalDOget all principals (User and UserGroup) according to given SearchFilter and active, not deleted and with isSystem-Flag false.- Overrides:
getAllActivein classAbstractPrincipalDO<UserGroup>
-
getAllUserGroups
-
delete
Description copied from class:AbstractBaseDONOTE: when overriding this method and you delete any other objects you need to call validateNotUsed before in case flag force is false!- Overrides:
deletein classAbstractPrincipalDO<UserGroup>- Parameters:
userGroup- mandatoryforce- if true delete without usage check, which can result in db constraints error unless references are taken care of- Throws:
ApplicationException
-
addUser
Adds user to group. This is a no-op if user is already in group, in other words an idempotent method.- Parameters:
userGroup- Group that shall be assigned.user- User to modify if required.
-
removeUser
-
getSystemUserGroup
get or insert system userGroup- Parameters:
type- optional. used to build groupName and name label key. if null the "ALL" group is used- Returns:
- persistent userGroup
- Throws:
ApplicationException
-