Package mc.core.domain.cc.dobj
Class AbstractPrincipalDO<T extends Principal>
java.lang.Object
mc.core.system.base.BaseBean
mc.core.domain.base.dobj.AbstractBaseDO<T>
mc.core.domain.base.dobj.AbstractEntityBaseDO<T>
mc.core.domain.base.dobj.AbstractComplexEntityDO<T>
mc.core.domain.cc.dobj.AbstractPrincipalDO<T>
- All Implemented Interfaces:
IBaseDO<T>
- Direct Known Subclasses:
PrincipalDO,UserDO,UserGroupDO
-
Nested Class Summary
Nested classes/interfaces inherited from class mc.core.domain.base.dobj.AbstractBaseDO
AbstractBaseDO.Initializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNOTE: when overriding this method and you delete any other objects you need to call validateNotUsed before in case flag force is false!get all active entities.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.Methods 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
-
AbstractPrincipalDO
public AbstractPrincipalDO()
-
-
Method Details
-
getAllActive
Description copied from interface:IBaseDOget all active entities. method is not implemented for all entity classes:- Principal: get all with active flag true and isSystem flag false
- SimpleEntity: get all with isActive flag true and isSystem flag false
- TypeEntity: get all with isActive flag true
- all other: throws UnsupportedOperationException cause result may be too large
- Specified by:
getAllActivein interfaceIBaseDO<T extends Principal>- Overrides:
getAllActivein classAbstractBaseDO<T extends Principal>- Returns:
- list of entities matching the above rules
-
getAllActive
get all principals (User and UserGroup) according to given SearchFilter and active, not deleted and with isSystem-Flag false. -
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 classAbstractComplexEntityDO<T extends Principal>- Parameters:
principal- mandatoryforce- if true delete without usage check, which can result in db constraints error unless references are taken care of- Throws:
ApplicationException
-