ModifiableRepositoryData
instead@Deprecated public interface ModifiableCompositeMetadata extends CompositeMetadata
CompositeMetadata
.CompositeMetadata.MetadataType
Modifier and Type | Method and Description |
---|---|
ModifiableBinaryMetadata |
getBinaryMetadata(String metadataName)
Deprecated.
Returns the named metadata's value as
BinaryMetadata .If the metadata does not exist, an UnknownMetadataException is thrown. |
ModifiableBinaryMetadata |
getBinaryMetadata(String metadataName,
boolean createNew)
Deprecated.
Returns the named metadata's value as
BinaryMetadata .If the metadata does not exist and createNew is false , an UnknownMetadataException is thrown. |
ModifiableCompositeMetadata |
getCompositeMetadata(String metadataName)
Deprecated.
Returns the named metadata's value as
CompositeMetadata .If the metadata is multi-valued, one of the value is returned. If the metadata does not exist an UnknownMetadataException is thrown. |
ModifiableCompositeMetadata |
getCompositeMetadata(String metadataName,
boolean createNew)
Deprecated.
Returns the named metadata's value as
CompositeMetadata .If the metadata is multi-valued, one of the value is returned. If the metadata does not exist and createNew is false , an UnknownMetadataException is thrown. |
ModifiableTraversableAmetysObject |
getObjectCollection(String metadataName)
Deprecated.
Returns an object collection metadata as a
TraversableAmetysObject . |
ModifiableTraversableAmetysObject |
getObjectCollection(String metadataName,
boolean createNew)
Deprecated.
Returns an object collection metadata as a
TraversableAmetysObject . |
ModifiableRichText |
getRichText(String metadataName)
Deprecated.
Returns the named metadata's value as
RichText .If the metadata does not exist, an UnknownMetadataException is thrown. |
ModifiableRichText |
getRichText(String metadataName,
boolean createNew)
Deprecated.
Returns the named metadata's value as
RichText .If the metadata does not exist and createNew is false , an UnknownMetadataException is thrown. |
void |
removeMetadata(String metadataName)
Deprecated.
Removes the given metadata.
|
void |
rename(String newName)
Deprecated.
Rename the current metadata
|
void |
setMetadata(String metadataName,
boolean value)
Deprecated.
Set a boolean metadata.
|
void |
setMetadata(String metadataName,
boolean[] values)
Deprecated.
Set a multi-valued boolean metadata.
|
void |
setMetadata(String metadataName,
Date value)
Deprecated.
Set a date metadata.
|
void |
setMetadata(String metadataName,
Date[] values)
Deprecated.
Set a multi-valued date metadata.
|
void |
setMetadata(String metadataName,
double value)
Deprecated.
Set a double metadata.
|
void |
setMetadata(String metadataName,
double[] values)
Deprecated.
Set a multi-valued double metadata.
|
void |
setMetadata(String metadataName,
long value)
Deprecated.
Set a long metadata.
|
void |
setMetadata(String metadataName,
long[] values)
Deprecated.
Set a multi-valued long metadata.
|
void |
setMetadata(String metadataName,
MultilingualString value)
Deprecated.
Set a
MultilingualString metadata. |
void |
setMetadata(String metadataName,
String value)
Deprecated.
Set a string metadata.
|
void |
setMetadata(String metadataName,
String[] values)
Deprecated.
Set a multi-valued string metadata.
|
void |
setMetadata(String metadataName,
String value,
Locale locale)
Deprecated.
Set a multilingual string metadata.
|
void |
setMetadata(String metadataName,
UserIdentity value)
Deprecated.
Set a
UserIdentity metadata. |
void |
setMetadata(String metadataName,
UserIdentity[] values)
Deprecated.
Set a multi-valued
UserIdentity metadata. |
copyTo, getBoolean, getBoolean, getBooleanArray, getBooleanArray, getDate, getDate, getDateArray, getDateArray, getDouble, getDouble, getDoubleArray, getDoubleArray, getLocalizedString, getLocalizedString, getLong, getLong, getLongArray, getLongArray, getMetadataNames, getMultilingualString, getString, getString, getStringArray, getStringArray, getType, getUser, getUser, getUserArray, getUserArray, hasMetadata, isMultiple
void rename(String newName) throws AmetysRepositoryException
newName
- the new nameAmetysRepositoryException
- if an error occurs.void removeMetadata(String metadataName) throws UnknownMetadataException, AmetysRepositoryException
metadataName
- metadata name.UnknownMetadataException
- if the metadata does not exist.AmetysRepositoryException
- if an error occurs.ModifiableBinaryMetadata getBinaryMetadata(String metadataName, boolean createNew) throws UnknownMetadataException, AmetysRepositoryException
BinaryMetadata
.false
, an UnknownMetadataException
is thrown.
Otherwise, the metadata is automatically created.metadataName
- the metadata name.createNew
- true
to create automatically the BinaryMetadata
when missing.UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.ModifiableBinaryMetadata getBinaryMetadata(String metadataName) throws UnknownMetadataException, AmetysRepositoryException
CompositeMetadata
BinaryMetadata
.UnknownMetadataException
is thrown.getBinaryMetadata
in interface CompositeMetadata
metadataName
- the metadata name.UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.ModifiableRichText getRichText(String metadataName, boolean createNew) throws UnknownMetadataException, AmetysRepositoryException
RichText
.false
, an UnknownMetadataException
is thrown.
Otherwise, the metadata is automatically created.metadataName
- the metadata name.createNew
- true
to create automatically the BinaryMetadata
when missing.UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.ModifiableRichText getRichText(String metadataName) throws UnknownMetadataException, AmetysRepositoryException
CompositeMetadata
RichText
.UnknownMetadataException
is thrown.getRichText
in interface CompositeMetadata
metadataName
- the metadata name.UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.ModifiableCompositeMetadata getCompositeMetadata(String metadataName) throws UnknownMetadataException, AmetysRepositoryException
CompositeMetadata
CompositeMetadata
.UnknownMetadataException
is thrown.getCompositeMetadata
in interface CompositeMetadata
metadataName
- the metadata name.CompositeMetadata
.UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.ModifiableCompositeMetadata getCompositeMetadata(String metadataName, boolean createNew) throws UnknownMetadataException, AmetysRepositoryException
CompositeMetadata
.false
, an UnknownMetadataException
is thrown. Otherwise, the metadata is automatically created.metadataName
- the metadata name.createNew
- true
to create automatically the CompositeMetadata
when missing.CompositeMetadata
.UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.ModifiableTraversableAmetysObject getObjectCollection(String metadataName) throws AmetysRepositoryException
CompositeMetadata
TraversableAmetysObject
getObjectCollection
in interface CompositeMetadata
metadataName
- the metadata name.TraversableAmetysObject
.UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.ModifiableTraversableAmetysObject getObjectCollection(String metadataName, boolean createNew) throws AmetysRepositoryException
TraversableAmetysObject
false
, an UnknownMetadataException
is thrown. Otherwise, the metadata is automatically created.metadataName
- the metadata name.createNew
- true
to create automatically the CompositeMetadata
when missing.TraversableAmetysObject
.UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.void setMetadata(String metadataName, String value) throws AmetysRepositoryException
metadataName
- the metadata name.value
- the String value of this metadata.AmetysRepositoryException
- if the metadata cannot be set.void setMetadata(String metadataName, String value, Locale locale) throws AmetysRepositoryException
metadataName
- the metadata name.value
- the String value of this metadata in the given locale.locale
- The value of localeAmetysRepositoryException
- if the metadata cannot be set.void setMetadata(String metadataName, Date value) throws AmetysRepositoryException
metadataName
- the metadata name.value
- the Date value of this metadata.AmetysRepositoryException
- if the metadata cannot be set.void setMetadata(String metadataName, long value) throws AmetysRepositoryException
metadataName
- the metadata name.value
- the integer value of this metadata.AmetysRepositoryException
- if the metadata cannot be set.void setMetadata(String metadataName, double value) throws AmetysRepositoryException
metadataName
- the metadata name.value
- the integer value of this metadata.AmetysRepositoryException
- if the metadata cannot be set.void setMetadata(String metadataName, boolean value) throws AmetysRepositoryException
metadataName
- the metadata name.value
- the boolean value of this metadata.AmetysRepositoryException
- if the metadata cannot be set.void setMetadata(String metadataName, UserIdentity value) throws AmetysRepositoryException
UserIdentity
metadata.metadataName
- the metadata name.value
- the UserIdentity
value of this metadata.AmetysRepositoryException
- if the metadata cannot be set.void setMetadata(String metadataName, String[] values) throws AmetysRepositoryException
metadataName
- the metadata name.values
- the String array containing values of this metadata.AmetysRepositoryException
- if the metadata cannot be set.void setMetadata(String metadataName, Date[] values) throws AmetysRepositoryException
metadataName
- the metadata name.values
- the Date array containing values of this metadata.AmetysRepositoryException
- if the metadata cannot be set.void setMetadata(String metadataName, long[] values) throws AmetysRepositoryException
metadataName
- the metadata name.values
- the integer array containing values of this metadata.AmetysRepositoryException
- if the metadata cannot be set.void setMetadata(String metadataName, double[] values) throws AmetysRepositoryException
metadataName
- the metadata name.values
- the integer array containing values of this metadata.AmetysRepositoryException
- if the metadata cannot be set.void setMetadata(String metadataName, boolean[] values) throws AmetysRepositoryException
metadataName
- the metadata name.values
- the boolean array containing values of this metadata.AmetysRepositoryException
- if the metadata cannot be set.void setMetadata(String metadataName, UserIdentity[] values) throws AmetysRepositoryException
UserIdentity
metadata.metadataName
- the metadata name.values
- the UserIdentity
array containing values of this metadata.AmetysRepositoryException
- if the metadata cannot be set.void setMetadata(String metadataName, MultilingualString value) throws AmetysRepositoryException
MultilingualString
metadata.metadataName
- the metadata name.value
- the MultilingualString
valueAmetysRepositoryException
- if the metadata cannot be set.