Class BaseConfigurationItem
java.lang.Object
com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
- All Implemented Interfaces:
ConfigurationItem
,Serializable
,Comparable<BaseConfigurationItem>
- Direct Known Subclasses:
AbstractDictionary
,Application
,BaseConfigurationItemWithPolicies
,BaseContainer
,BaseDeployable
,BaseDeployed
,BaseEmbeddedDeployable
,BaseEmbeddedDeployed
,BaseProvisioner
,Configuration
,Environment
,Parameters
,SimpleLookupValueProvider
,Template
,Version
@Metadata(virtual=true,
description="Default implementation of a CI that provides ID, name and type information.")
public class BaseConfigurationItem
extends Object
implements ConfigurationItem, Comparable<BaseConfigurationItem>
Default implementation of a
ConfigurationItem
that provides id, name and type information.- See Also:
-
Field Summary
Fields inherited from interface com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
SYNTHETIC_PROPERTIES_FIELD, TYPE_FIELD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Gets the validation messages set on the ConfigurationItem.getId()
getName()
<T> T
getProperty
(String key) protected PropertyDescriptor
getPropertyDescriptor
(String name) getType()
int
hashCode()
boolean
hasProperty
(String key) void
set$ciAttributes
(CiAttributes $ciAttributes) Sets attributes of ci modification.void
set$directoryReference
(String $directoryReference) void
set$externalProperties
(Map<String, ExternalProperty> externalProperties) void
set$internalId
(Integer internalId) void
set$referenceId
(String $referenceId) void
set$securedCi
(Integer securedCi) void
set$securedDirectoryReference
(String $securedDirectoryReference) void
void
set$validationMessages
(List<ValidationMessage> $validationMessages) void
Sets The id of the CI.<T> void
setProperty
(String key, T value) Adds a custom property of a generic type to the CI.void
Sets the type metadata for this CI.toString()
-
Field Details
-
id
-
type
-
syntheticProperties
-
-
Constructor Details
-
BaseConfigurationItem
public BaseConfigurationItem()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceConfigurationItem
- Returns:
- The id of the CI.
-
setId
Description copied from interface:ConfigurationItem
Sets The id of the CI.- Specified by:
setId
in interfaceConfigurationItem
-
getName
- Specified by:
getName
in interfaceConfigurationItem
- Returns:
- The name of the CI.
-
getType
- Specified by:
getType
in interfaceConfigurationItem
- Returns:
- The type metadata for this CI.
-
setType
Sets the type metadata for this CI. -
getProperty
- Specified by:
getProperty
in interfaceConfigurationItem
- Type Parameters:
T
- The type of the property.- Parameters:
key
- The name of the property.- Returns:
- The value of type T of the property.
-
hasProperty
- Specified by:
hasProperty
in interfaceConfigurationItem
- Parameters:
key
- The name of the property.- Returns:
- True if the CI has a added property with the given name.
-
setProperty
Description copied from interface:ConfigurationItem
Adds a custom property of a generic type to the CI.- Specified by:
setProperty
in interfaceConfigurationItem
- Type Parameters:
T
- The type of the property.- Parameters:
key
- The name of the property.value
- The value of type T of the property.
-
get$ciAttributes
- Returns:
- attributes of ci modification.
-
set$ciAttributes
Sets attributes of ci modification.- Parameters:
$ciAttributes
- attributes of ci modification
-
getPropertyDescriptor
-
get$token
- Returns:
- The JCR optimistic locking token.
-
set$token
- Parameters:
$token
- The JCR optimistic locking token.
-
get$validationMessages
Description copied from interface:ConfigurationItem
Gets the validation messages set on the ConfigurationItem.- Specified by:
get$validationMessages
in interfaceConfigurationItem
- Returns:
- a List<ValidationMessage>
-
set$validationMessages
-
get$externalProperties
-
set$externalProperties
-
get$internalId
- Specified by:
get$internalId
in interfaceConfigurationItem
- Returns:
- The internal ID of ConfigurationItem.
-
set$internalId
-
get$securedCi
- Specified by:
get$securedCi
in interfaceConfigurationItem
- Returns:
- The ID of secured CI which determines ConfigurationItem's permissions.
-
set$securedCi
-
get$directoryReference
- Specified by:
get$directoryReference
in interfaceConfigurationItem
- Returns:
- The UUID of ConfigurationItem's directory.
-
set$directoryReference
-
get$securedDirectoryReference
- Specified by:
get$securedDirectoryReference
in interfaceConfigurationItem
- Returns:
- The UUID of ConfigurationItems secured directory which determines ConfigurationItems permissions.
-
set$securedDirectoryReference
-
get$referenceId
- Specified by:
get$referenceId
in interfaceConfigurationItem
- Returns:
- The reference UUID of ConfigurationItem.
-
set$referenceId
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<BaseConfigurationItem>
-
toString
-