Interface ModifiableCompositeMetadata
-
- All Superinterfaces:
CompositeMetadata
- All Known Implementing Classes:
JCRCompositeMetadata
@Deprecated public interface ModifiableCompositeMetadata extends CompositeMetadata
Deprecated.UseModifiableRepositoryDatainsteadModifiableCompositeMetadata.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.metadata.CompositeMetadata
CompositeMetadata.MetadataType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ModifiableBinaryMetadatagetBinaryMetadata(String metadataName)Deprecated.Returns the named metadata's value asBinaryMetadata.
If the metadata does not exist, anUnknownMetadataExceptionis thrown.ModifiableBinaryMetadatagetBinaryMetadata(String metadataName, boolean createNew)Deprecated.Returns the named metadata's value asBinaryMetadata.
If the metadata does not exist and createNew isfalse, anUnknownMetadataExceptionis thrown.ModifiableCompositeMetadatagetCompositeMetadata(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.ModifiableCompositeMetadatagetCompositeMetadata(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.ModifiableTraversableAmetysObjectgetObjectCollection(String metadataName)Deprecated.Returns an object collection metadata as aTraversableAmetysObject
.ModifiableTraversableAmetysObjectgetObjectCollection(String metadataName, boolean createNew)Deprecated.Returns an object collection metadata as aTraversableAmetysObject
.ModifiableRichTextgetRichText(String metadataName)Deprecated.Returns the named metadata's value asRichText.
If the metadata does not exist, anUnknownMetadataExceptionis thrown.ModifiableRichTextgetRichText(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.voidrename(String newName)Deprecated.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 Detail
-
rename
void rename(String newName) throws AmetysRepositoryException
Deprecated.Rename the current metadata- Parameters:
newName- the new name- Throws:
AmetysRepositoryException- if an error occurs.
-
removeMetadata
void removeMetadata(String metadataName) throws UnknownMetadataException, AmetysRepositoryException
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
void setMetadata(String metadataName, String value) throws AmetysRepositoryException
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
void setMetadata(String metadataName, String value, Locale locale) throws AmetysRepositoryException
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
void setMetadata(String metadataName, Date value) throws AmetysRepositoryException
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
void setMetadata(String metadataName, long value) throws AmetysRepositoryException
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
void setMetadata(String metadataName, double value) throws AmetysRepositoryException
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
void setMetadata(String metadataName, boolean value) throws AmetysRepositoryException
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
void setMetadata(String metadataName, UserIdentity value) throws AmetysRepositoryException
Deprecated.Set aUserIdentitymetadata.- Parameters:
metadataName- the metadata name.value- theUserIdentityvalue of this metadata.- Throws:
AmetysRepositoryException- if the metadata cannot be set.
-
setMetadata
void setMetadata(String metadataName, String[] values) throws AmetysRepositoryException
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
void setMetadata(String metadataName, Date[] values) throws AmetysRepositoryException
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
void setMetadata(String metadataName, long[] values) throws AmetysRepositoryException
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
void setMetadata(String metadataName, double[] values) throws AmetysRepositoryException
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
void setMetadata(String metadataName, boolean[] values) throws AmetysRepositoryException
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
void setMetadata(String metadataName, UserIdentity[] values) throws AmetysRepositoryException
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
void setMetadata(String metadataName, MultilingualString value) throws AmetysRepositoryException
Deprecated.Set aMultilingualStringmetadata.- Parameters:
metadataName- the metadata name.value- theMultilingualStringvalue- Throws:
AmetysRepositoryException- if the metadata cannot be set.
-
-