@Metadata(virtual=true, description="Default implementation of a CI that provides ID, name and type information.") public class BaseConfigurationItem extends java.lang.Object implements ConfigurationItem, java.lang.Comparable<BaseConfigurationItem>
ConfigurationItem
that provides id, name and type information.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
id |
protected java.util.Map<java.lang.String,java.lang.Object> |
syntheticProperties |
protected Type |
type |
SYNTHETIC_PROPERTIES_FIELD, TYPE_FIELD
Constructor and Description |
---|
BaseConfigurationItem() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BaseConfigurationItem o) |
boolean |
equals(java.lang.Object thatObject) |
CiAttributes |
get$ciAttributes() |
java.lang.String |
get$token() |
java.lang.String |
getId() |
java.lang.String |
getName() |
<T> T |
getProperty(java.lang.String key) |
protected PropertyDescriptor |
getPropertyDescriptor(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.Object> |
getSyntheticProperties()
Deprecated.
|
<T> T |
getSyntheticProperty(java.lang.String key)
Deprecated.
|
Type |
getType() |
int |
hashCode() |
boolean |
hasProperty(java.lang.String key) |
boolean |
hasSyntheticProperty(java.lang.String key)
Deprecated.
|
void |
putSyntheticProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Deprecated.
|
<T> void |
putSyntheticProperty(java.lang.String key,
T value)
Deprecated.
|
void |
set$ciAttributes(CiAttributes $ciAttributes)
Sets attributes of ci modification.
|
void |
set$token(java.lang.String $token) |
void |
setId(java.lang.String id)
Sets The id of the CI.
|
<T> void |
setProperty(java.lang.String key,
T value)
Adds a custom property of a generic type to the CI.
|
void |
setSyntheticProperties(java.util.Map<java.lang.String,java.lang.Object> additionalProperties)
Deprecated.
|
void |
setType(Type type)
Sets the type metadata for this CI.
|
java.lang.String |
toString() |
protected java.lang.String id
protected Type type
protected java.util.Map<java.lang.String,java.lang.Object> syntheticProperties
public java.lang.String getId()
getId
in interface ConfigurationItem
public void setId(java.lang.String id)
ConfigurationItem
setId
in interface ConfigurationItem
public java.lang.String getName()
getName
in interface ConfigurationItem
public Type getType()
getType
in interface ConfigurationItem
public void setType(Type type)
@Deprecated public java.util.Map<java.lang.String,java.lang.Object> getSyntheticProperties()
getSyntheticProperties
in interface ConfigurationItem
@Deprecated public <T> T getSyntheticProperty(java.lang.String key)
getSyntheticProperty
in interface ConfigurationItem
@Deprecated public boolean hasSyntheticProperty(java.lang.String key)
@Deprecated public <T> void putSyntheticProperty(java.lang.String key, T value)
putSyntheticProperty
in interface ConfigurationItem
@Deprecated public void putSyntheticProperties(java.util.Map<java.lang.String,java.lang.String> properties)
@Deprecated public void setSyntheticProperties(java.util.Map<java.lang.String,java.lang.Object> additionalProperties)
public <T> T getProperty(java.lang.String key)
getProperty
in interface ConfigurationItem
T
- The type of the property.key
- The name of the property.public boolean hasProperty(java.lang.String key)
hasProperty
in interface ConfigurationItem
key
- The name of the property.public <T> void setProperty(java.lang.String key, T value)
ConfigurationItem
setProperty
in interface ConfigurationItem
T
- The type of the property.key
- The name of the property.value
- The value of type T of the property.public CiAttributes get$ciAttributes()
public void set$ciAttributes(CiAttributes $ciAttributes)
$ciAttributes
- attributes of ci modificationprotected PropertyDescriptor getPropertyDescriptor(java.lang.String name)
public java.lang.String get$token()
public void set$token(java.lang.String $token)
$token
- The JCR optimistic locking token.public boolean equals(java.lang.Object thatObject)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(BaseConfigurationItem o)
compareTo
in interface java.lang.Comparable<BaseConfigurationItem>
public java.lang.String toString()
toString
in class java.lang.Object