Package org.ametys.cms.content.external
Class ExternalizableMetadataHelper
- java.lang.Object
-
- org.ametys.cms.content.external.ExternalizableMetadataHelper
-
@Deprecated public final class ExternalizableMetadataHelper extends Object
Deprecated.useModelAwareDataHolder
API insteadHelper to get and set externalizable metadata of a content. An externalizable metadata is a tri-state metadata with:
- the real value
- the alternative value
- the status, which represents the nature of real value : local or external
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALTERNATIVE_SUFFIX
Deprecated.Suffix used for the alternative valuestatic String
STATUS_SUFFIX
Deprecated.Suffix used for the status value
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
copyExternalizableMetadata(ModifiableCompositeMetadata srCompositeMetadata, ModifiableCompositeMetadata destCompositeMetadata, String metadataName)
Deprecated.Copy a externalizable metadata.static BinaryMetadata
getBinaryMetadata(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, asBinaryMetadata
.static ModifiableBinaryMetadata
getBinaryMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName)
Deprecated.Get and create if necessary a binary metadata, removing the alternative value and status if exists.static ModifiableBinaryMetadata
getBinaryMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status, boolean createNew)
Deprecated.Returns the named metadata's value, local or external, asBinaryMetadata
.static boolean
getBoolean(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as boolean.static boolean[]
getBooleanArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as boolean array.static CompositeMetadata
getCompositeMetadata(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as aTraversableAmetysObject
.static ModifiableCompositeMetadata
getCompositeMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName)
Deprecated.Get and create if necessary a composite metadata, removing the alternative value and status if exists.static ModifiableCompositeMetadata
getCompositeMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status, boolean createNew)
Deprecated.Returns the named metadata's value, local or external, as aCompositeMetadata
.static Date
getDate(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as Date.static Date[]
getDateArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as Date array.static double
getDouble(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as double.static double[]
getDoubleArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as double array.static long
getLong(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as long.static long[]
getLongArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as long array.static String
getMetadataName(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Get the metadata name holding the value with the given statusstatic MultilingualString
getMultilingualString(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the metadata value, local or external, as MultilingualString.
If the metadata is multi-valued, one of the value is returned.
If the metadata does not exist, anUnknownMetadataException
is thrown.static TraversableAmetysObject
getObjectCollection(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as aTraversableAmetysObject
.static ModifiableTraversableAmetysObject
getObjectCollection(ModifiableCompositeMetadata metadataHolder, String metadataName)
Deprecated.Get and create if necessary a object collection metadata, removing the alternative value and status if exists.static RichText
getRichText(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, asRichText
.static ModifiableRichText
getRichText(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status, boolean createNew)
Deprecated.Returns the named metadata's value, local or external, asRichText
.static ModifiableRichText
getRichTextMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName)
Deprecated.Get and create if necessary a RichText metadata, removing the alternative value and status if exists.static ExternalizableMetadataProvider.ExternalizableMetadataStatus
getStatus(CompositeMetadata metadataHolder, String metadataName)
Deprecated.Get the current status of a externalizable metadatastatic String
getString(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the metadata value, local or external, as String.
If the metadata is multi-valued, one of the value is returned.
If the metadata does not exist, anUnknownMetadataException
is thrown.static String[]
getStringArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as String array.static CompositeMetadata.MetadataType
getType(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the type of metadata holding the value with the given statusstatic UserIdentity
getUser(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, asUserIdentity
.static UserIdentity[]
getUserArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as array ofUserIdentity
.static boolean
hasMetadata(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Determine if the externalizable metadata exists.static boolean
removeExternalMetadataIfExists(ModifiableCompositeMetadata metadataHolder, String metadataName)
Deprecated.Remove the metadata holding the external value if existsstatic boolean
removeLocalMetadataIfExists(ModifiableCompositeMetadata metadataHolder, String metadataName)
Deprecated.Remove the metadata holding the local value if existsstatic boolean
removeMetadataIfExists(ModifiableCompositeMetadata metadataHolder, String metadataName)
Deprecated.Remove the metadata, alternative value and status if existstatic boolean
setExternalMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Object extValue, boolean forceExternalStatus)
Deprecated.Set the external value of a metadatastatic ModifiableBinaryMetadata
setLocalBinaryMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set a binary metadata as local value and the status of an externalizable metadatastatic ModifiableCompositeMetadata
setLocalCompositeMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set a composite metadata as local value and the status of an externalizable metadatastatic void
setLocalMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Object localValue, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set the local value and the status of an externalizable metadatastatic ModifiableRichText
setLocalRichTextMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set a richtext metadata as local value and the status of an externalizable metadatastatic boolean
setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Object value)
Deprecated.Set the value of a metadata, removing the alternative value and status if exists.static void
setStatus(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set the status of an externalizable metadatastatic void
updateBinaryMetadataStatus(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set the status of a binary metadata.static void
updateCompositeMetadataStatus(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set the status of a composite metadata.static void
updateRichTextMetadataStatus(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set the status of aRichText
metadata.static boolean
updateStatus(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set the status of an externalizable metadata, if not status defined, the metadata is considered as local.
-
-
-
Field Detail
-
ALTERNATIVE_SUFFIX
public static final String ALTERNATIVE_SUFFIX
Deprecated.Suffix used for the alternative value- See Also:
- Constant Field Values
-
STATUS_SUFFIX
public static final String STATUS_SUFFIX
Deprecated.Suffix used for the status value- See Also:
- Constant Field Values
-
-
Method Detail
-
setExternalMetadata
public static boolean setExternalMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Object extValue, boolean forceExternalStatus)
Deprecated.Set the external value of a metadata- Parameters:
metadataHolder
- The parent composite metadatametadataName
- The metadata nameextValue
- The external valueforceExternalStatus
- Set to true to force new status to external. Set to false to not update the current status.- Returns:
- true if changes were made
-
removeExternalMetadataIfExists
public static boolean removeExternalMetadataIfExists(ModifiableCompositeMetadata metadataHolder, String metadataName)
Deprecated.Remove the metadata holding the external value if exists- Parameters:
metadataHolder
- The parent composite metadatametadataName
- The metadata name to delete- Returns:
- true if a remove was done
-
setStatus
public static void setStatus(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set the status of an externalizable metadata- Parameters:
metadataHolder
- The parent composite metadatametadataName
- The metadata namestatus
- The new status
-
updateStatus
public static boolean updateStatus(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set the status of an externalizable metadata, if not status defined, the metadata is considered as local.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- The metadata namestatus
- The new status- Returns:
- true if changes were made
-
removeLocalMetadataIfExists
public static boolean removeLocalMetadataIfExists(ModifiableCompositeMetadata metadataHolder, String metadataName)
Deprecated.Remove the metadata holding the local value if exists- Parameters:
metadataHolder
- The parent composite metadatametadataName
- The metadata name to delete- Returns:
- true if a remove was done
-
setLocalMetadata
public static void setLocalMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Object localValue, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set the local value and the status of an externalizable metadata- Parameters:
metadataHolder
- The parent composite metadatametadataName
- The metadata namelocalValue
- The local value of metadatastatus
- The status of metadata
-
setLocalCompositeMetadata
public static ModifiableCompositeMetadata setLocalCompositeMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set a composite metadata as local value and the status of an externalizable metadata- Parameters:
metadataHolder
- The parent composite metadatametadataName
- The metadata namestatus
- The status of metadata- Returns:
- The local composite metadata
-
setLocalBinaryMetadata
public static ModifiableBinaryMetadata setLocalBinaryMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set a binary metadata as local value and the status of an externalizable metadata- Parameters:
metadataHolder
- The parent composite metadatametadataName
- The metadata namestatus
- The status of metadata- Returns:
- The local binary metadata
-
updateBinaryMetadataStatus
public static void updateBinaryMetadataStatus(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set the status of a binary metadata. If status has changed, the local and external values will be inverted.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- The metadata namestatus
- The new status of metadata
-
updateCompositeMetadataStatus
public static void updateCompositeMetadataStatus(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set the status of a composite metadata. If status has changed, the local and external values will be inverted.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- The metadata namestatus
- The new status of metadata
-
setLocalRichTextMetadata
public static ModifiableRichText setLocalRichTextMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set a richtext metadata as local value and the status of an externalizable metadata- Parameters:
metadataHolder
- The parent composite metadatametadataName
- The metadata namestatus
- The status of metadata- Returns:
- The local richtext metadata
-
updateRichTextMetadataStatus
public static void updateRichTextMetadataStatus(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Set the status of aRichText
metadata. If status has changed, the local and external values will be inverted.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- The metadata namestatus
- The new status of metadata
-
copyExternalizableMetadata
public static void copyExternalizableMetadata(ModifiableCompositeMetadata srCompositeMetadata, ModifiableCompositeMetadata destCompositeMetadata, String metadataName)
Deprecated.Copy a externalizable metadata. The status, the in-use and alternative values will be copied.- Parameters:
srCompositeMetadata
- The source metadata holderdestCompositeMetadata
- The metadata holder of destinationmetadataName
- The metadata name
-
removeMetadataIfExists
public static boolean removeMetadataIfExists(ModifiableCompositeMetadata metadataHolder, String metadataName)
Deprecated.Remove the metadata, alternative value and status if exist- Parameters:
metadataHolder
- The parent composite metadatametadataName
- The metadata name to delete- Returns:
- true if a remove was done
-
setMetadata
public static boolean setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Object value)
Deprecated.Set the value of a metadata, removing the alternative value and status if exists.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- The metadata namevalue
- The value- Returns:
- true if changes were made
-
getRichTextMetadata
public static ModifiableRichText getRichTextMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName)
Deprecated.Get and create if necessary a RichText metadata, removing the alternative value and status if exists.- Parameters:
metadataHolder
- The parent metadata holdermetadataName
- The metadata name- Returns:
- the rich text metadata
-
getBinaryMetadata
public static ModifiableBinaryMetadata getBinaryMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName)
Deprecated.Get and create if necessary a binary metadata, removing the alternative value and status if exists.- Parameters:
metadataHolder
- The parent metadata holdermetadataName
- The metadata name- Returns:
- the binary metadata
-
getCompositeMetadata
public static ModifiableCompositeMetadata getCompositeMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName)
Deprecated.Get and create if necessary a composite metadata, removing the alternative value and status if exists.- Parameters:
metadataHolder
- The parent metadata holdermetadataName
- The metadata name- Returns:
- the composite metadata
-
getObjectCollection
public static ModifiableTraversableAmetysObject getObjectCollection(ModifiableCompositeMetadata metadataHolder, String metadataName)
Deprecated.Get and create if necessary a object collection metadata, removing the alternative value and status if exists.- Parameters:
metadataHolder
- The parent metadata holdermetadataName
- The metadata name- Returns:
- the object collection metadata
-
getStatus
public static ExternalizableMetadataProvider.ExternalizableMetadataStatus getStatus(CompositeMetadata metadataHolder, String metadataName)
Deprecated.Get the current status of a externalizable metadata- Parameters:
metadataHolder
- The parent composite metadatametadataName
- The metadata name- Returns:
- The current status, local if it is not defined
-
hasMetadata
public static boolean hasMetadata(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Determine if the externalizable metadata exists.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadataName to test.status
- The status of the metadata to test- Returns:
true
if the given metadata exists,false
otherwise.- Throws:
AmetysRepositoryException
- if an error occurs.
-
getType
public static CompositeMetadata.MetadataType getType(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the type of metadata holding the value with the given status- Parameters:
metadataHolder
- The parent composite metadatametadataName
- metadata name.status
- The status of the metadata to test- Returns:
- the type of the given metadata.
- Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getMetadataName
public static String getMetadataName(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Get the metadata name holding the value with the given status- Parameters:
metadataHolder
- The parent composite metadatametadataName
- metadata name.status
- The status of the metadata to test- Returns:
- The metadata name
-
getString
public static String getString(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the metadata value, local or external, as String.
If the metadata is multi-valued, one of the value is returned.
If the metadata does not exist, anUnknownMetadataException
is thrown.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- the metadata value as String.
- Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getStringArray
public static String[] getStringArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as String array.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- metadata value as String array.
- Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getMultilingualString
public static MultilingualString getMultilingualString(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the metadata value, local or external, as MultilingualString.
If the metadata is multi-valued, one of the value is returned.
If the metadata does not exist, anUnknownMetadataException
is thrown.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- the metadata value as MultilingualString.
- Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getDate
public static Date getDate(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as Date.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- metadata value as Date.
- Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getDateArray
public static Date[] getDateArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as Date array.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- metadata value as Date array.
- Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getLong
public static long getLong(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as long.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- metadata value as long.
- Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getLongArray
public static long[] getLongArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as long array.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- metadata value as long array.
- Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getDouble
public static double getDouble(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as double.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- metadata value as double.
- Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getDoubleArray
public static double[] getDoubleArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as double array.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- metadata value as double array.
- Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getBoolean
public static boolean getBoolean(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as boolean.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- metadata value as boolean.
- Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getBooleanArray
public static boolean[] getBooleanArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as boolean array.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- metadata value as boolean array.
- Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getUser
public static UserIdentity getUser(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, asUserIdentity
.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- metadata value as UserIdentity.
- Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getUserArray
public static UserIdentity[] getUserArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as array ofUserIdentity
.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- metadata value as UserIdentity.
- Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getBinaryMetadata
public static BinaryMetadata getBinaryMetadata(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, asBinaryMetadata
.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- metadata value as
BinaryMetadata
. - Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getBinaryMetadata
public static ModifiableBinaryMetadata getBinaryMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status, boolean createNew)
Deprecated.Returns the named metadata's value, local or external, asBinaryMetadata
.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrievecreateNew
-true
to create automatically theBinaryMetadata
when missing.- Returns:
- metadata value as
BinaryMetadata
. - Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getRichText
public static RichText getRichText(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, asRichText
.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- metadata value as
RichText
. - Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getRichText
public static ModifiableRichText getRichText(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status, boolean createNew)
Deprecated.Returns the named metadata's value, local or external, asRichText
.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrievecreateNew
-true
to create automatically theRichText
when missing.- Returns:
- metadata value as
RichText
. - Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getObjectCollection
public static TraversableAmetysObject getObjectCollection(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as aTraversableAmetysObject
.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- metadata value as a
TraversableAmetysObject
. - Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getCompositeMetadata
public static CompositeMetadata getCompositeMetadata(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Deprecated.Returns the named metadata's value, local or external, as aTraversableAmetysObject
.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieve- Returns:
- metadata value as a
TraversableAmetysObject
. - Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
getCompositeMetadata
public static ModifiableCompositeMetadata getCompositeMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status, boolean createNew)
Deprecated.Returns the named metadata's value, local or external, as aCompositeMetadata
.- Parameters:
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrievecreateNew
-true
to create automatically theCompositeMetadata
when missing.- Returns:
- metadata value as a
CompositeMetadata
. - Throws:
UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.
-
-