Package mc.core.domain.generic.dobj
Class EntityProfileDO
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<EntityProfile>
mc.core.domain.generic.dobj.EntityProfileDO
- All Implemented Interfaces:
IBaseDO<EntityProfile>
-
Nested Class Summary
Nested classes/interfaces inherited from class mc.core.domain.base.dobj.AbstractBaseDO
AbstractBaseDO.Initializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClassification(EntityProfile entityProfile, Classification classification) add classification to profile if not already assignedvoidcollectionAdd(EntityProfile entityProfile, Collection collection) voidcollectionChangeOrder(EntityProfile entityProfile, Collection collection, boolean decreaseOrder) copy(EntityProfile source) Subclass of ComplexEntity passed to this method must implement a constructor that takes as sole argument an instance of this class, otherwise an ApplicationException is thrown.copy(EntityProfile source, CopyFilter copyFilter) create(EntityProfile entityProfile, ComplexEntity entity, DataMap dataMap) voiddelete(EntityProfile entityProfile, boolean force) NOTE: when overriding this method and you delete any other objects you need to call validateNotUsed before in case flag force is false!getAttributeSetTypeForCollection(boolean create) getAttributeSetTypeForRelationType(RelationType relType, boolean create) <S extends IBaseEntity>
List<EntityProfile>getEntityProfiles(Class<S> entityClass) voidremoveClassification(EntityProfile entityProfile, Classification classification) remove classification from profile with all assigned classification attributessave(EntityProfile entityProfile, DataMap dataMap) map data to entity if any, validate and saveMethods inherited from class mc.core.domain.base.dobj.AbstractComplexEntityDO
addDefaultSearchCriteria, assertPermission, assertPermission, attributes, 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, sendEvent, sendEventMethods inherited from class mc.core.domain.base.dobj.AbstractBaseDO
delete, getAll, getAllActive, getEntityDisplay, getFromId, getFromKey, getOne, map, map, save, validator
-
Constructor Details
-
EntityProfileDO
public EntityProfileDO()
-
-
Method Details
-
getEntityProfiles
-
getPermissionProfiles
-
getAttributeSetTypeForCollection
public EntityProfileType getAttributeSetTypeForCollection(boolean create) throws ApplicationException - Throws:
ApplicationException
-
getAttributeSetTypeForRelationType
public EntityProfileType getAttributeSetTypeForRelationType(RelationType relType, boolean create) throws ApplicationException - Throws:
ApplicationException
-
collectionAdd
public void collectionAdd(EntityProfile entityProfile, Collection collection) throws ApplicationException - Throws:
ApplicationException
-
collectionChangeOrder
public void collectionChangeOrder(EntityProfile entityProfile, Collection collection, boolean decreaseOrder) throws ApplicationException - Throws:
ApplicationException
-
create
public EntityProfile create(EntityProfile entityProfile, ComplexEntity entity, DataMap dataMap) throws ApplicationException - Throws:
ApplicationException- See Also:
-
GenericAPI#entityProfileCreate(EntityProfile, ComplexEntity, DataMap)
-
delete
public void delete(EntityProfile entityProfile, boolean force) throws DeleteTiedElementException, UserException, ApplicationException 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<EntityProfile>- Parameters:
entityProfile- mandatoryforce- if true delete without usage check, which can result in db constraints error unless references are taken care of- Throws:
DeleteTiedElementExceptionUserExceptionApplicationException
-
save
Description copied from interface:IBaseDOmap data to entity if any, validate and save- Specified by:
savein interfaceIBaseDO<EntityProfile>- Overrides:
savein classAbstractEntityBaseDO<EntityProfile>- Parameters:
entityProfile- mandatorydataMap- optional- Returns:
- mapped entity
- Throws:
ApplicationException
-
copy
Description copied from class:AbstractComplexEntityDOSubclass of ComplexEntity passed to this method must implement a constructor that takes as sole argument an instance of this class, otherwise an ApplicationException is thrown. The copy constructor should set all properties that must be copied but not the dependent objects such as entityToAttributes.- Overrides:
copyin classAbstractComplexEntityDO<EntityProfile>- Parameters:
source- ComplexEntity, mandatory- Returns:
- copy
- Throws:
ApplicationException
-
copy
- Throws:
ApplicationException
-
addClassification
public void addClassification(EntityProfile entityProfile, Classification classification) throws ApplicationException add classification to profile if not already assigned- Throws:
ApplicationException
-
removeClassification
public void removeClassification(EntityProfile entityProfile, Classification classification) throws ApplicationException remove classification from profile with all assigned classification attributes- Throws:
ApplicationException
-