Class ObjectProperty
java.lang.Object
com.gentics.contentnode.rest.model.ObjectProperty
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ObjectPropertyInPackage
REST Model of an object property definition
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCategory used by the object property (may be null, if not embedded in the response)Get the category ID (may be null)Construct used by the object property (may be null, if not embedded in the response)Internal construct IDDescription in the current languageGlobal IDgetId()
Internal ID of the object property definitionTrue if the object property is inheritable, false if notKeywordgetName()
Name in the current languageTrue if the object property is required, false if notTrue if the object property is synchronized for all channel variantsTrue if the object property is synchronized for all languages (only for pages)True if the object property is synchronized for all page variantsgetType()
Type of objects, this object property definition is forsetCategory
(ObjectPropertyCategory category) Set the categorysetCategoryId
(Integer categoryId) Set the category ID (may be null)setConstruct
(Construct construct) Set the construct if embedded or nullsetConstructId
(Integer constructId) Set the construct IDsetDescription
(String description) Set the descriptionsetDescription
(String name, String language) setDescriptionI18n
(Map<String, String> i18nDescription) setGlobalId
(String globalId) Set the global IDSet the IDsetInheritable
(Boolean inheritable) Set true for inheritablesetKeyword
(String keyword) Set the keywordSet the namesetNameI18n
(Map<String, String> i18nName) setRequired
(Boolean required) Set whether requiredsetSyncChannelset
(Boolean syncChannelset) Set true for synchronization for all channel variantssetSyncContentset
(Boolean syncContentset) Set true for synchronization for all languagessetSyncVariants
(Boolean syncVariants) Set true for synchronization for all page variantsObject type
-
Constructor Details
-
ObjectProperty
public ObjectProperty()Create empty instance
-
-
Method Details
-
getId
Internal ID of the object property definition- Returns:
- ID
-
setId
Set the ID- Parameters:
id
- ID- Returns:
- fluent API
-
getGlobalId
Global ID- Returns:
- global ID
-
setGlobalId
Set the global ID- Parameters:
globalId
- global ID- Returns:
- fluent API
-
getName
Name in the current language- Returns:
- name
-
setName
Set the name- Parameters:
name
- name- Returns:
- fluent API
-
getDescription
Description in the current language- Returns:
- description
-
setDescription
Set the description- Parameters:
description
- description- Returns:
- fluent API
-
getKeyword
Keyword- Returns:
- keyword
-
setKeyword
Set the keyword- Parameters:
keyword
- keyword- Returns:
- fluent API
-
getType
Type of objects, this object property definition is for- Returns:
- type
-
setType
Object type- Parameters:
type
- type- Returns:
- fluent API
-
getConstructId
Internal construct ID- Returns:
- construct ID
-
setConstructId
Set the construct ID- Parameters:
constructId
- construct ID- Returns:
- fluent API
-
getConstruct
Construct used by the object property (may be null, if not embedded in the response)- Returns:
- construct
-
setConstruct
Set the construct if embedded or null- Parameters:
construct
- construct or null- Returns:
- fluent API
-
getRequired
True if the object property is required, false if not- Returns:
- true for required
-
setRequired
Set whether required- Parameters:
required
- true for required- Returns:
- fluent API
-
getInheritable
True if the object property is inheritable, false if not- Returns:
- true for inheritable
-
setInheritable
Set true for inheritable- Parameters:
inheritable
- true for inheritable- Returns:
- fluent API
-
getSyncContentset
True if the object property is synchronized for all languages (only for pages)- Returns:
- true for synchronized
-
setSyncContentset
Set true for synchronization for all languages- Parameters:
syncContentset
- flag- Returns:
- fluent API
-
getSyncChannelset
True if the object property is synchronized for all channel variants- Returns:
- true for synchronized
-
setSyncChannelset
Set true for synchronization for all channel variants- Parameters:
syncChannelset
- flag- Returns:
- fluent API
-
getSyncVariants
True if the object property is synchronized for all page variants- Returns:
- true for synchronized
-
setSyncVariants
Set true for synchronization for all page variants- Parameters:
syncVariants
-- Returns:
- fluent API
-
getCategoryId
Get the category ID (may be null)- Returns:
- category ID
-
setCategoryId
Set the category ID (may be null)- Parameters:
categoryId
- category ID- Returns:
- fluent API
-
getCategory
Category used by the object property (may be null, if not embedded in the response)- Returns:
- construct
-
setCategory
Set the category- Parameters:
category
- category or null- Returns:
- fluent API
-
getNameI18n
-
setNameI18n
-
setName
-
getDescriptionI18n
-
setDescriptionI18n
-
setDescription
-