public interface ModifiableCompositeMetadata extends CompositeMetadata
CompositeMetadata.CompositeMetadata.MetadataType| Modifier and Type | Method and Description |
|---|---|
ModifiableBinaryMetadata |
getBinaryMetadata(String metadataName)
Returns the named metadata's value as
BinaryMetadata.If the metadata does not exist, an UnknownMetadataException is thrown. |
ModifiableBinaryMetadata |
getBinaryMetadata(String metadataName,
boolean createNew)
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)
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)
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)
Returns an object collection metadata as a
TraversableAmetysObject. |
ModifiableTraversableAmetysObject |
getObjectCollection(String metadataName,
boolean createNew)
Returns an object collection metadata as a
TraversableAmetysObject. |
ModifiableRichText |
getRichText(String metadataName)
Returns the named metadata's value as
RichText.If the metadata does not exist, an UnknownMetadataException is thrown. |
ModifiableRichText |
getRichText(String metadataName,
boolean createNew)
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)
Removes the given metadata.
|
void |
rename(String newName)
Rename the current metadata
|
void |
setMetadata(String metadataName,
boolean value)
Set a boolean metadata.
|
void |
setMetadata(String metadataName,
boolean[] values)
Set a multi-valued boolean metadata.
|
void |
setMetadata(String metadataName,
Date value)
Set a date metadata.
|
void |
setMetadata(String metadataName,
Date[] values)
Set a multi-valued date metadata.
|
void |
setMetadata(String metadataName,
double value)
Set a double metadata.
|
void |
setMetadata(String metadataName,
double[] values)
Set a multi-valued double metadata.
|
void |
setMetadata(String metadataName,
long value)
Set a long metadata.
|
void |
setMetadata(String metadataName,
long[] values)
Set a multi-valued long metadata.
|
void |
setMetadata(String metadataName,
MultilingualString value)
Set a
MultilingualString metadata. |
void |
setMetadata(String metadataName,
String value)
Set a string metadata.
|
void |
setMetadata(String metadataName,
String[] values)
Set a multi-valued string metadata.
|
void |
setMetadata(String metadataName,
String value,
Locale locale)
Set a multilingual string metadata.
|
void |
setMetadata(String metadataName,
UserIdentity value)
Set a
UserIdentity metadata. |
void |
setMetadata(String metadataName,
UserIdentity[] values)
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, isMultiplevoid 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
CompositeMetadataBinaryMetadata.UnknownMetadataException is thrown.getBinaryMetadata in interface CompositeMetadatametadataName - 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
CompositeMetadataRichText.UnknownMetadataException is thrown.getRichText in interface CompositeMetadatametadataName - the metadata name.UnknownMetadataException - if the named metadata does not exist.AmetysRepositoryException - if an error occurs.ModifiableCompositeMetadata getCompositeMetadata(String metadataName) throws UnknownMetadataException, AmetysRepositoryException
CompositeMetadataCompositeMetadata.UnknownMetadataException is thrown.getCompositeMetadata in interface CompositeMetadatametadataName - 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
CompositeMetadataTraversableAmetysObjectgetObjectCollection in interface CompositeMetadatametadataName - 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
TraversableAmetysObjectfalse, 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.