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, anUnknownMetadataException
is thrown.getBinaryMetadata
(String metadataName, boolean createNew) Deprecated.Returns the named metadata's value asBinaryMetadata
.
If the metadata does not exist and createNew isfalse
, anUnknownMetadataException
is 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 anUnknownMetadataException
is 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
, anUnknownMetadataException
is 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, anUnknownMetadataException
is thrown.getRichText
(String metadataName, boolean createNew) Deprecated.Returns the named metadata's value asRichText
.
If the metadata does not exist and createNew isfalse
, anUnknownMetadataException
is thrown.void
removeMetadata
(String metadataName) Deprecated.Removes the given metadata.void
Deprecated.Rename the current metadatavoid
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, 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, 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, Date value) Deprecated.Set a date metadata.void
setMetadata
(String metadataName, Date[] values) Deprecated.Set a multi-valued date metadata.void
setMetadata
(String metadataName, UserIdentity value) Deprecated.Set aUserIdentity
metadata.void
setMetadata
(String metadataName, UserIdentity[] values) Deprecated.Set a multi-valuedUserIdentity
metadata.void
setMetadata
(String metadataName, MultilingualString value) Deprecated.Set aMultilingualString
metadata.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
, anUnknownMetadataException
is thrown. Otherwise, the metadata is automatically created.- Parameters:
metadataName
- the metadata name.createNew
-true
to create automatically theBinaryMetadata
when 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:CompositeMetadata
Returns the named metadata's value asBinaryMetadata
.
If the metadata does not exist, anUnknownMetadataException
is thrown.- Specified by:
getBinaryMetadata
in 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
, anUnknownMetadataException
is thrown. Otherwise, the metadata is automatically created.- Parameters:
metadataName
- the metadata name.createNew
-true
to create automatically theBinaryMetadata
when 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:CompositeMetadata
Returns the named metadata's value asRichText
.
If the metadata does not exist, anUnknownMetadataException
is thrown.- Specified by:
getRichText
in 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:CompositeMetadata
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 anUnknownMetadataException
is thrown.- Specified by:
getCompositeMetadata
in 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
, anUnknownMetadataException
is thrown. Otherwise, the metadata is automatically created.- Parameters:
metadataName
- the metadata name.createNew
-true
to create automatically theCompositeMetadata
when 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:CompositeMetadata
Returns an object collection metadata as aTraversableAmetysObject
.- Specified by:
getObjectCollection
in 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
, anUnknownMetadataException
is thrown. Otherwise, the metadata is automatically created.- Parameters:
metadataName
- the metadata name.createNew
-true
to create automatically theCompositeMetadata
when 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 aUserIdentity
metadata.- Parameters:
metadataName
- the metadata name.value
- theUserIdentity
value 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-valuedUserIdentity
metadata.- Parameters:
metadataName
- the metadata name.values
- theUserIdentity
array containing values of this metadata.- Throws:
AmetysRepositoryException
- if the metadata cannot be set.
-
setMetadata
Deprecated.Set aMultilingualString
metadata.- Parameters:
metadataName
- the metadata name.value
- theMultilingualString
value- Throws:
AmetysRepositoryException
- if the metadata cannot be set.
-
ModifiableRepositoryData
instead