Package com.tridion.taxonomies.entities
Interface TaxonomyKeywordEntity
- All Superinterfaces:
Comparable<TaxonomyKeywordEntity>
TaxonomyKeywordEntity.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddRelatedKeywordURI(String relatedKeywordURI) Add a related KeywordURI to the list of related KeywordURIS.clone(int left, TaxonomyKeywordEntity parentKeyword) This clones this keyword and all of its children keywords in memory.intWhen this object is used in a collection it will make sure that the keyword is sorted by using it's natural order which is based on the tree pre-ordering mechanism.Returns a List of all the children of this TaxonomyKeyword.intThis returns the depth of this keyword in the whole taxonomy it belongs to.This returns the description field of the Keyword.This returns a key if one is set or an empty string if none.intThis gets the left value of this Keyword in the hierarchy.Returns the custom metadata for this taxonomyKeyword.The name representing this TaxonomyKeyword.intThis gets the right value of this Keyword in the hierarchy.This returns a title if one is set or an empty string if none.Returns the TCMURI of the keyword.Returns the parent TaxonomyKeyword.Returns the full list of all the parent keywords of this Keyword.intThis returns the reference count for a specific taxonomyKeyword.String[]Returns an array of KeywordURIS related to the current Keyword.This returns the URI of the taxonomy for this taxonomyKeyword.booleanThis returns if this TaxonomyKeyword has children.booleanThis returns if this TaxonomyKeyword is abstract.booleanThis returns if the TaxonomyKeyword should be navigable.booleanThis returns if this TaxonomyKeyword is used for identification.voidsetHasKeywordChildren(boolean hasKeywordChildren) This sets if this TaxonomyKeyword should act if it has children or not.voidsetKeywordAbstract(boolean keywordAbstract) This sets if the TaxonomyKeyword should behave like an abstract.voidsetKeywordDepth(int keywordDepth) This sets the depth of the keyword in the whole taxonomy it is belongs to.voidsetKeywordDescription(String keywordDescription) This sets the description field of the Keyword.voidsetKeywordKey(String keywordKey) Sets the key attribute of this Keyword.voidsetKeywordLeft(int keywordLeft) This sets the left value of this Keyword.voidsetKeywordMeta(CustomMeta keywordMeta) voidsetKeywordNavigable(boolean keywordNavigable) This sets if the TaxonomyKeyword should be navigable.voidsetKeywordRight(int keywordRight) This sets the right value of this Keyword.voidsetKeywordTitle(String keywordTitle) Sets the key attribute of this Keyword.voidsetParentKeyword(TaxonomyKeywordEntity parentKeyword) This sets the parent of this TaxonomyKeyword, this methods also sets the primary Parent Keyword of this Keyword in which this keyword will be present in its children.voidsetParentKeyword(TaxonomyKeywordEntity parentKeyword, boolean thePrimaryParentKeyword) This sets the parent of this TaxonomyKeyword, this methods also puts it in the children list of the parentKeyword.voidsetReferencedContentCount(int referencedContentCount) This sets the number of referenced items for this taxonomyKeyword.voidsetUsedForIdentification(boolean usedForIdentification) This sets if the TaxonomyKeyword should be used for identification.
-
Method Details
-
getKeywordURI
String getKeywordURI()Returns the TCMURI of the keyword.- Returns:
- The TCMURI of the TaxonomyKeyword as String
-
getParentKeywords
List<TaxonomyKeywordEntity> getParentKeywords()Returns the full list of all the parent keywords of this Keyword.- Returns:
- The list of all the parent keywords
-
getParentKeyword
TaxonomyKeywordEntity getParentKeyword()Returns the parent TaxonomyKeyword.- Returns:
- The parent TaxonomyKeyword
-
setParentKeyword
This sets the parent of this TaxonomyKeyword, this methods also puts it in the children list of the parentKeyword.- Parameters:
parentKeyword- The parent of this taxonomyKeywordthePrimaryParentKeyword- True if the parent is the primary parent
-
setParentKeyword
This sets the parent of this TaxonomyKeyword, this methods also sets the primary Parent Keyword of this Keyword in which this keyword will be present in its children.- Parameters:
parentKeyword- The parent of this taxonomyKeyword
-
getKeywordChildren
List<TaxonomyKeywordEntity> getKeywordChildren()Returns a List of all the children of this TaxonomyKeyword.- Returns:
- The list of children for this taxonomyKeyword
-
getKeywordName
String getKeywordName()The name representing this TaxonomyKeyword.- Returns:
- The name of this TaxonomyKeyword
-
getTaxonomyURI
String getTaxonomyURI()This returns the URI of the taxonomy for this taxonomyKeyword.- Returns:
- the TaxonomyURI this TaxonomyKeyword is part of
-
hasKeywordChildren
boolean hasKeywordChildren()This returns if this TaxonomyKeyword has children.- Returns:
- this returns true if this Keyword has children, false if not
-
setHasKeywordChildren
void setHasKeywordChildren(boolean hasKeywordChildren) This sets if this TaxonomyKeyword should act if it has children or not.- Parameters:
hasKeywordChildren- true if this Keyword has children, false if not
-
isKeywordAbstract
boolean isKeywordAbstract()This returns if this TaxonomyKeyword is abstract.- Returns:
- True if this TaxonomyKeyword is abstract, false if not
-
setKeywordAbstract
void setKeywordAbstract(boolean keywordAbstract) This sets if the TaxonomyKeyword should behave like an abstract.- Parameters:
keywordAbstract- true if it should behave like an abstract, false if not
-
isUsedForIdentification
boolean isUsedForIdentification()This returns if this TaxonomyKeyword is used for identification.- Returns:
- True if this TaxonomyKeyword is used for identification, false if not
-
setUsedForIdentification
void setUsedForIdentification(boolean usedForIdentification) This sets if the TaxonomyKeyword should be used for identification.- Parameters:
usedForIdentification- true if it should be used for identification, false if not
-
getReferencedContentCount
int getReferencedContentCount()This returns the reference count for a specific taxonomyKeyword.- Returns:
- The number of referenced items for this taxonomyKeyword
-
setReferencedContentCount
void setReferencedContentCount(int referencedContentCount) This sets the number of referenced items for this taxonomyKeyword.- Parameters:
referencedContentCount- The number of referenced items for this taxonomyKeyword
-
getKeywordKey
String getKeywordKey()This returns a key if one is set or an empty string if none.- Returns:
- the key if set or an empty string if not set.
-
setKeywordKey
Sets the key attribute of this Keyword. -
getKeywordTitle
String getKeywordTitle()This returns a title if one is set or an empty string if none.- Returns:
- the title if set or an empty string if not set.
-
setKeywordTitle
Sets the key attribute of this Keyword. -
getKeywordMeta
CustomMeta getKeywordMeta()Returns the custom metadata for this taxonomyKeyword.- Returns:
- the custom metadata for this taxonomyKeyword
-
setKeywordMeta
-
addRelatedKeywordURI
Add a related KeywordURI to the list of related KeywordURIS.- Parameters:
relatedKeywordURI- the related KeywordsURI to add to the related Keywords
-
getRelatedKeywordURIS
String[] getRelatedKeywordURIS()Returns an array of KeywordURIS related to the current Keyword.- Returns:
- An array of related KeywordURIS
-
getKeywordLeft
int getKeywordLeft()This gets the left value of this Keyword in the hierarchy.- Returns:
- The left Value of this Keyword in the hierarchy
-
setKeywordLeft
void setKeywordLeft(int keywordLeft) This sets the left value of this Keyword.- Parameters:
keywordLeft- This sets the left value of this Keyword in the hierarchy
-
getKeywordRight
int getKeywordRight()This gets the right value of this Keyword in the hierarchy.- Returns:
- The right Value of this Keyword in the hierarchy
-
setKeywordRight
void setKeywordRight(int keywordRight) This sets the right value of this Keyword.- Parameters:
keywordRight- This sets the right value of this Keyword in the hierarchy
-
getKeywordDepth
int getKeywordDepth()This returns the depth of this keyword in the whole taxonomy it belongs to.- Returns:
- The depth of the keyword in the taxonomy
-
setKeywordDepth
void setKeywordDepth(int keywordDepth) This sets the depth of the keyword in the whole taxonomy it is belongs to.- Parameters:
keywordDepth- The depth of the keyword in the taxonomy
-
getKeywordDescription
String getKeywordDescription()This returns the description field of the Keyword.- Returns:
- The description field of the Keyword
-
setKeywordDescription
This sets the description field of the Keyword.- Parameters:
keywordDescription- The description field of the keyword
-
compareTo
When this object is used in a collection it will make sure that the keyword is sorted by using it's natural order which is based on the tree pre-ordering mechanism.- Specified by:
compareToin interfaceComparable<TaxonomyKeywordEntity>
-
clone
This clones this keyword and all of its children keywords in memory. It will clone them starting at the given left and the given depth.- Parameters:
left- The left start of the keyword to cloneparentKeyword- The parent keyword of the keyword- Returns:
- The flat list of cloned keywords and cloned children.
-