Package mc.core.model.generic
Class Node
java.lang.Object
mc.core.model.base.EntityBase
mc.core.model.base.ComplexEntity
mc.core.model.base.HrcEntity
mc.core.model.generic.Node
- All Implemented Interfaces:
Serializable,IBaseEntity,ICoreEntity,IEntity,IHrcManaged<Node>,IRightManaged,ISortableEntity,IStateManaged,ITypeManaged,IVersionManaged
@Entity
public class Node
extends HrcEntity
implements IRightManaged, IStateManaged, IVersionManaged, IHrcManaged<Node>
In most PIM-systems Node is chosen as the main entity that carries information and represents the sellable product or
article. Nodes are grouped in a hierarchy with a fix number of levels, each level being represented by a NodeType.
NodeTypes serve to configure and structure the data that describe the corresponding Nodes. Structuring of information
in Node:
Nodes can be right managed, user need permissions to manipulate and see the Node.
State: Nodes can have one or more States in order to signal if Node can be edited, can be published or other user
defined stages. Right management and State management must be enabled and configured in NodeType.
- Fields of ComplexEntity are used for the most accessed data, such as for display in trees and lists and for
searches:
name,description,externalKey. Additionally there are 5 user defined fields that allow quicker access in searches and display. - type attributes carry the information that each Node of the same type has. The set of type attributes, their ordering and if they are mandatory is configured with the NodeType.
- object attributes: User can freely assign Attributes to each Node from the list of allowedAttributeTypes of NodeType. Usually the object and type Attributes have one ore more value(s), but there are also Attributes (subtype OBJECTS_STATIC that have no values, which serve as text blocks.
- Classification: Nodes can be assigned to one or more classifications. The classification can be used to provide a set of features similar to the type attributes.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumno property fields, used as parameter constant and label keyNested classes/interfaces inherited from class mc.core.model.base.HrcEntity
HrcEntity.HrcEntityComparatorNested 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 TypeMethodDescriptionvoidaddClassification(ClassificationToNode classification) give the maximum list of RightTypes that apply for this class.getHrc()override in derived classes
return hierarchytype of ComplexEntity must be attachedgetType()override in derived classes, return null if ComplexEntity-subclass is not type managed.typesafe retrieval of HrcEntity children.typesafe retrieval of HrcEntity parent.typesafe retrieval of HrcEntity parents.hrcPath()typesafe retrieval of HrcEntity parents plus entity itself.typesafe retrieval of HrcEntity visible children (filtered on life cycle flag visible)
never return proxiesvoidsetClassifications(List<ClassificationToNode> classifications) voidsetNodeHrc(NodeHrc nodeHrc) voidsetNodeType(NodeType nodeType) voidsetType(ComplexTypeEntity type) override in derived classes if ComplexEntity-subclass is type managed, else do nothing.
be used by entity mappervoidsetUdfField1(String udfField1) voidsetUdfField2(String udfField2) voidsetUdfField3(String udfField3) voidsetUdfField4(String udfField4) voidsetUdfField5(String udfField5) Methods inherited from class mc.core.model.base.HrcEntity
addChild, getChildren, getParent, getVisibleChildren, hrcParentsDisplay, hrcPathDisplay, hrcPathDisplay, setChildren, setParentMethods inherited from class mc.core.model.base.ComplexEntity
addState, getAttributes, getCollections, getCollections, getCollectionToCEs, getDateCreated, getDateModified, getEntityData, getEntityDatas, getEntityFilters, getEntityOwner, getExternalKey, getFileId, getFilename, getHasObjectRights, getId, getInternalDescription, getLifeCycleFlag, getMasterId, getMasterLocale, getMemos, getParameter, getParameters, getParameterValue, getPermissions, getRelatedEntities, getState, getStates, getStatesToRemove, getVersions, getWatches, isArchived, isDeleted, isRightInheritanceDisabled, isSecondaryCollection, isVisible, setAttributes, setCollectionToCEs, setDateCreated, setDateModified, setEntityDatas, setEntityFilters, setEntityOwner, setExternalKey, setFileId, setFilename, setId, setLifeCycleFlag, setMasterId, setMasterLocale, setMemos, setParameters, setPermissions, setRelatedEntities, setRightInheritanceDisabled, setStates, 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, toStringMethods inherited from interface mc.core.model.base.IBaseEntity
getId, setIdMethods inherited from interface mc.core.model.base.IEntity
getDescription, getInternalDescription, getName, getPrio, setInternalDescriptionMethods inherited from interface mc.core.model.base.IHrcManaged
hrcParentsDisplay, hrcPathDisplay, hrcPathDisplayMethods inherited from interface mc.core.model.base.IRightManaged
getHasObjectRights, getPermissionsMethods inherited from interface mc.core.model.base.IStateManaged
getState, getStates
-
Constructor Details
-
Node
public Node() -
Node
-
-
Method Details
-
getNodeType
-
setNodeType
-
getNodeHrc
-
setNodeHrc
-
getUdfField1
-
setUdfField1
-
getUdfField2
-
setUdfField2
-
getUdfField3
-
setUdfField3
-
getUdfField4
-
setUdfField4
-
getUdfField5
-
setUdfField5
-
getClassifications
-
setClassifications
-
addClassification
-
getAllowedRightTypes
Description copied from interface:IRightManagedgive the maximum list of RightTypes that apply for this class.- Specified by:
getAllowedRightTypesin interfaceIRightManaged- Returns:
- array of enum RightType
-
getType
Description copied from class:ComplexEntityoverride in derived classes, return null if ComplexEntity-subclass is not type managed.- Specified by:
getTypein interfaceITypeManaged- Specified by:
getTypein classComplexEntity
-
setType
Description copied from class:ComplexEntityoverride in derived classes if ComplexEntity-subclass is type managed, else do nothing.
be used by entity mapper- Overrides:
setTypein classComplexEntity
-
getInheritedStateGroupTypes
- Returns:
- StateGroupTypes of closest ancestor's NodeType, only if this Node's NodeType has no StateGroupTypes. NodeType must be attached
-
getStateGroupTypes
Description copied from class:ComplexEntitytype of ComplexEntity must be attached- Specified by:
getStateGroupTypesin interfaceIStateManaged- Overrides:
getStateGroupTypesin classComplexEntity- Returns:
- the list of StateGroupType assigned to this Node's NodeType or assigned to an ancestor's NodeType. Node and NodeType must be attached
-
getHrc
Description copied from class:HrcEntityoverride in derived classes
return hierarchy -
hrcChildren
Description copied from interface:IHrcManagedtypesafe retrieval of HrcEntity children. never return proxies- Specified by:
hrcChildrenin interfaceIHrcManaged<Node>- Returns:
- typesafe list of children entities or empty list. never null
-
hrcVisibleChildren
Description copied from interface:IHrcManagedtypesafe retrieval of HrcEntity visible children (filtered on life cycle flag visible)
never return proxies- Specified by:
hrcVisibleChildrenin interfaceIHrcManaged<Node>- Returns:
- typesafe list of children entities or empty list. never null
-
hrcParent
Description copied from interface:IHrcManagedtypesafe retrieval of HrcEntity parent. never return proxy. use this preferable over getParent() if you want access type special properties or use entity class, instead of safeCast to target type yourself. still use getParent() if you only need the id, cause no need to initialize (load) proxy then- Specified by:
hrcParentin interfaceIHrcManaged<Node>- Returns:
- parent entity or null
-
hrcParents
Description copied from interface:IHrcManagedtypesafe retrieval of HrcEntity parents. never return proxies. use this if you want access type special properties or use entity class, instead of safeCast to target type yourself- Specified by:
hrcParentsin interfaceIHrcManaged<Node>- Overrides:
hrcParentsin classHrcEntity- Returns:
- Parents starting from root up to (but not including) this
HrcEntity.
-
hrcPath
Description copied from interface:IHrcManagedtypesafe retrieval of HrcEntity parents plus entity itself. never return proxies. use this if you want access type special properties or use entity class, instead of safeCast to target type yourself- Specified by:
hrcPathin interfaceIHrcManaged<Node>- Overrides:
hrcPathin classHrcEntity- Returns:
- List of ancestors starting with root ancestor and including ourself at the end
- See Also:
-