Interface ModifiableCompositeMetadata
- All Superinterfaces:
CompositeMetadata
- All Known Implementing Classes:
JCRCompositeMetadata
Deprecated.
Modifiable
CompositeMetadata.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.metadata.CompositeMetadata
CompositeMetadata.MetadataType -
Method Summary
Modifier and TypeMethodDescriptiongetBinaryMetadata(String metadataName) Deprecated.Returns the named metadata's value asBinaryMetadata.
If the metadata does not exist, anUnknownMetadataExceptionis thrown.getBinaryMetadata(String metadataName, boolean createNew) Deprecated.Returns the named metadata's value asBinaryMetadata.
If the metadata does not exist and createNew isfalse, anUnknownMetadataExceptionis thrown.getCompositeMetadata(String metadataName) Deprecated.Returns the named metadata's value asCompositeMetadata.
If the metadata is multi-valued, one of the value is returned.
If the metadata does not exist anUnknownMetadataExceptionis thrown.getCompositeMetadata(String metadataName, boolean createNew) Deprecated.Returns the named metadata's value asCompositeMetadata.
If the metadata is multi-valued, one of the value is returned.
If the metadata does not exist and createNew isfalse, anUnknownMetadataExceptionis thrown.getObjectCollection(String metadataName) Deprecated.Returns an object collection metadata as aTraversableAmetysObject
.getObjectCollection(String metadataName, boolean createNew) Deprecated.Returns an object collection metadata as aTraversableAmetysObject
.getRichText(String metadataName) Deprecated.Returns the named metadata's value asRichText.
If the metadata does not exist, anUnknownMetadataExceptionis thrown.getRichText(String metadataName, boolean createNew) Deprecated.Returns the named metadata's value asRichText.
If the metadata does not exist and createNew isfalse, anUnknownMetadataExceptionis thrown.voidremoveMetadata(String metadataName) Deprecated.Removes the given metadata.voidDeprecated.Rename the current metadatavoidsetMetadata(String metadataName, boolean value) Deprecated.Set a boolean metadata.voidsetMetadata(String metadataName, boolean[] values) Deprecated.Set a multi-valued boolean metadata.voidsetMetadata(String metadataName, double value) Deprecated.Set a double metadata.voidsetMetadata(String metadataName, double[] values) Deprecated.Set a multi-valued double metadata.voidsetMetadata(String metadataName, long value) Deprecated.Set a long metadata.voidsetMetadata(String metadataName, long[] values) Deprecated.Set a multi-valued long metadata.voidsetMetadata(String metadataName, String value) Deprecated.Set a string metadata.voidsetMetadata(String metadataName, String[] values) Deprecated.Set a multi-valued string metadata.voidsetMetadata(String metadataName, String value, Locale locale) Deprecated.Set a multilingual string metadata.voidsetMetadata(String metadataName, Date value) Deprecated.Set a date metadata.voidsetMetadata(String metadataName, Date[] values) Deprecated.Set a multi-valued date metadata.voidsetMetadata(String metadataName, UserIdentity value) Deprecated.Set aUserIdentitymetadata.voidsetMetadata(String metadataName, UserIdentity[] values) Deprecated.Set a multi-valuedUserIdentitymetadata.voidsetMetadata(String metadataName, MultilingualString value) Deprecated.Set aMultilingualStringmetadata.Methods inherited from interface org.ametys.plugins.repository.metadata.CompositeMetadata
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
-
Method Details
-
rename
Deprecated.Rename the current metadata- Parameters:
newName- the new name- Throws:
AmetysRepositoryException- if an error occurs.
-
removeMetadata
Deprecated.Removes the given metadata.- Parameters:
metadataName- metadata name.- Throws:
UnknownMetadataException- if the metadata does not exist.AmetysRepositoryException- if an error occurs.
-
getBinaryMetadata
ModifiableBinaryMetadata getBinaryMetadata(String metadataName, boolean createNew) throws UnknownMetadataException, AmetysRepositoryException Deprecated.Returns the named metadata's value asBinaryMetadata.
If the metadata does not exist and createNew isfalse, anUnknownMetadataExceptionis thrown. Otherwise, the metadata is automatically created.- Parameters:
metadataName- the metadata name.createNew-trueto create automatically theBinaryMetadatawhen missing.- Returns:
- the metadata value as BinaryMetadata.
- Throws:
UnknownMetadataException- if the named metadata does not exist.AmetysRepositoryException- if an error occurs.
-
getBinaryMetadata
ModifiableBinaryMetadata getBinaryMetadata(String metadataName) throws UnknownMetadataException, AmetysRepositoryException Deprecated.Description copied from interface:CompositeMetadataReturns the named metadata's value asBinaryMetadata.
If the metadata does not exist, anUnknownMetadataExceptionis thrown.- Specified by:
getBinaryMetadatain interfaceCompositeMetadata- Parameters:
metadataName- the metadata name.- Returns:
- the metadata value as BinaryMetadata.
- Throws:
UnknownMetadataException- if the named metadata does not exist.AmetysRepositoryException- if an error occurs.
-
getRichText
ModifiableRichText getRichText(String metadataName, boolean createNew) throws UnknownMetadataException, AmetysRepositoryException Deprecated.Returns the named metadata's value asRichText.
If the metadata does not exist and createNew isfalse, anUnknownMetadataExceptionis thrown. Otherwise, the metadata is automatically created.- Parameters:
metadataName- the metadata name.createNew-trueto create automatically theBinaryMetadatawhen missing.- Returns:
- the metadata value as RichText.
- Throws:
UnknownMetadataException- if the named metadata does not exist.AmetysRepositoryException- if an error occurs.
-
getRichText
ModifiableRichText getRichText(String metadataName) throws UnknownMetadataException, AmetysRepositoryException Deprecated.Description copied from interface:CompositeMetadataReturns the named metadata's value asRichText.
If the metadata does not exist, anUnknownMetadataExceptionis thrown.- Specified by:
getRichTextin interfaceCompositeMetadata- Parameters:
metadataName- the metadata name.- Returns:
- the metadata value as RichText.
- Throws:
UnknownMetadataException- if the named metadata does not exist.AmetysRepositoryException- if an error occurs.
-
getCompositeMetadata
ModifiableCompositeMetadata getCompositeMetadata(String metadataName) throws UnknownMetadataException, AmetysRepositoryException Deprecated.Description copied from interface:CompositeMetadataReturns the named metadata's value asCompositeMetadata.
If the metadata is multi-valued, one of the value is returned.
If the metadata does not exist anUnknownMetadataExceptionis thrown.- Specified by:
getCompositeMetadatain interfaceCompositeMetadata- Parameters:
metadataName- the metadata name.- Returns:
- the metadata value as
CompositeMetadata. - Throws:
UnknownMetadataException- if the named metadata does not exist.AmetysRepositoryException- if an error occurs.
-
getCompositeMetadata
ModifiableCompositeMetadata getCompositeMetadata(String metadataName, boolean createNew) throws UnknownMetadataException, AmetysRepositoryException Deprecated.Returns the named metadata's value asCompositeMetadata.
If the metadata is multi-valued, one of the value is returned.
If the metadata does not exist and createNew isfalse, anUnknownMetadataExceptionis thrown. Otherwise, the metadata is automatically created.- Parameters:
metadataName- the metadata name.createNew-trueto create automatically theCompositeMetadatawhen missing.- Returns:
- the metadata value as
CompositeMetadata. - Throws:
UnknownMetadataException- if the named metadata does not exist.AmetysRepositoryException- if an error occurs.
-
getObjectCollection
ModifiableTraversableAmetysObject getObjectCollection(String metadataName) throws AmetysRepositoryException Deprecated.Description copied from interface:CompositeMetadataReturns an object collection metadata as aTraversableAmetysObject
.- Specified by:
getObjectCollectionin interfaceCompositeMetadata- Parameters:
metadataName- the metadata name.- Returns:
- the metadata as a
TraversableAmetysObject. - Throws:
UnknownMetadataException- if the named metadata does not exist.AmetysRepositoryException- if an error occurs.
-
getObjectCollection
ModifiableTraversableAmetysObject getObjectCollection(String metadataName, boolean createNew) throws AmetysRepositoryException Deprecated.Returns an object collection metadata as aTraversableAmetysObject
. If the metadata does not exist and createNew isfalse, anUnknownMetadataExceptionis thrown. Otherwise, the metadata is automatically created.- Parameters:
metadataName- the metadata name.createNew-trueto create automatically theCompositeMetadatawhen missing.- Returns:
- the metadata as a
TraversableAmetysObject. - Throws:
UnknownMetadataException- if the named metadata does not exist.AmetysRepositoryException- if an error occurs.
-
setMetadata
Deprecated.Set a string metadata.- Parameters:
metadataName- the metadata name.value- the String value of this metadata.- Throws:
AmetysRepositoryException- if the metadata cannot be set.
-
setMetadata
Deprecated.Set a multilingual string metadata.- Parameters:
metadataName- the metadata name.value- the String value of this metadata in the given locale.locale- The value of locale- Throws:
AmetysRepositoryException- if the metadata cannot be set.
-
setMetadata
Deprecated.Set a date metadata.- Parameters:
metadataName- the metadata name.value- the Date value of this metadata.- Throws:
AmetysRepositoryException- if the metadata cannot be set.
-
setMetadata
Deprecated.Set a long metadata.- Parameters:
metadataName- the metadata name.value- the integer value of this metadata.- Throws:
AmetysRepositoryException- if the metadata cannot be set.
-
setMetadata
Deprecated.Set a double metadata.- Parameters:
metadataName- the metadata name.value- the integer value of this metadata.- Throws:
AmetysRepositoryException- if the metadata cannot be set.
-
setMetadata
Deprecated.Set a boolean metadata.- Parameters:
metadataName- the metadata name.value- the boolean value of this metadata.- Throws:
AmetysRepositoryException- if the metadata cannot be set.
-
setMetadata
Deprecated.Set aUserIdentitymetadata.- Parameters:
metadataName- the metadata name.value- theUserIdentityvalue of this metadata.- Throws:
AmetysRepositoryException- if the metadata cannot be set.
-
setMetadata
Deprecated.Set a multi-valued string metadata.- Parameters:
metadataName- the metadata name.values- the String array containing values of this metadata.- Throws:
AmetysRepositoryException- if the metadata cannot be set.
-
setMetadata
Deprecated.Set a multi-valued date metadata.- Parameters:
metadataName- the metadata name.values- the Date array containing values of this metadata.- Throws:
AmetysRepositoryException- if the metadata cannot be set.
-
setMetadata
Deprecated.Set a multi-valued long metadata.- Parameters:
metadataName- the metadata name.values- the integer array containing values of this metadata.- Throws:
AmetysRepositoryException- if the metadata cannot be set.
-
setMetadata
Deprecated.Set a multi-valued double metadata.- Parameters:
metadataName- the metadata name.values- the integer array containing values of this metadata.- Throws:
AmetysRepositoryException- if the metadata cannot be set.
-
setMetadata
Deprecated.Set a multi-valued boolean metadata.- Parameters:
metadataName- the metadata name.values- the boolean array containing values of this metadata.- Throws:
AmetysRepositoryException- if the metadata cannot be set.
-
setMetadata
Deprecated.Set a multi-valuedUserIdentitymetadata.- Parameters:
metadataName- the metadata name.values- theUserIdentityarray containing values of this metadata.- Throws:
AmetysRepositoryException- if the metadata cannot be set.
-
setMetadata
Deprecated.Set aMultilingualStringmetadata.- Parameters:
metadataName- the metadata name.value- theMultilingualStringvalue- Throws:
AmetysRepositoryException- if the metadata cannot be set.
-
ModifiableRepositoryDatainstead