public final class ExternalizableMetadataHelper extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
__TEMP_SUFFIX |
static String |
ALTERNATIVE_SUFFIX
Suffix used for the alternative value
|
static String |
STATUS_SUFFIX
Suffix used for the status value
|
Modifier | Constructor and Description |
---|---|
private |
ExternalizableMetadataHelper() |
Modifier and Type | Method and Description |
---|---|
private static void |
_copyBinaryMetadata(ModifiableBinaryMetadata srcBinaryMetadata,
ModifiableBinaryMetadata destBinaryMetadata) |
private static void |
_copyBinaryMetadata(ModifiableCompositeMetadata metadataHolder,
String srcMetadataName,
String destMetadataName) |
private static void |
_copyCompositeMetadata(ModifiableCompositeMetadata metadataHolder,
String srcMetadataName,
String destMetadataName) |
private static boolean |
_copyMetadata(ModifiableCompositeMetadata srcMetadataHolder,
String srcMetadataName,
ModifiableCompositeMetadata destMetadataHolder,
String destMetadatName) |
private static boolean |
_copyMetadata(ModifiableCompositeMetadata metadataHolder,
String srcMetadataName,
String destMetadatName) |
private static void |
_copyRichText(ModifiableRichText srcRichText,
ModifiableRichText destRichText) |
private static void |
_copyRichTextMetadata(ModifiableCompositeMetadata metadataHolder,
String srcMetadataName,
String destMetadataName) |
private static boolean |
_removeAltAndStatusMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName) |
private static boolean |
_removeMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName) |
private static boolean |
_setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
Boolean value) |
private static boolean |
_setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
Boolean[] values) |
private static boolean |
_setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
Content content) |
private static boolean |
_setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
Content[] contents) |
private static boolean |
_setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
Date value) |
private static boolean |
_setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
Date[] values) |
private static boolean |
_setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
Double value) |
private static boolean |
_setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
Double[] values) |
private static boolean |
_setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
Long value) |
private static boolean |
_setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
Long[] values) |
private static boolean |
_setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
MultilingualString value) |
private static boolean |
_setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
Object value) |
private static boolean |
_setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
String value) |
private static boolean |
_setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
String[] values) |
private static boolean |
_setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
UserIdentity value) |
private static boolean |
_setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
UserIdentity[] values) |
private static boolean |
_setNonSimpleMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
Object value) |
static void |
copyExternalizableMetadata(ModifiableCompositeMetadata srCompositeMetadata,
ModifiableCompositeMetadata destCompositeMetadata,
String metadataName)
Copy a externalizable metadata.
|
static BinaryMetadata |
getBinaryMetadata(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Returns the named metadata's value, local or external, as
BinaryMetadata . |
static ModifiableBinaryMetadata |
getBinaryMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName)
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)
Returns the named metadata's value, local or external, as
BinaryMetadata . |
static boolean |
getBoolean(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Returns the named metadata's value, local or external, as boolean.
|
static boolean[] |
getBooleanArray(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Returns the named metadata's value, local or external, as boolean array.
|
static CompositeMetadata |
getCompositeMetadata(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Returns the named metadata's value, local or external, as a
TraversableAmetysObject . |
static ModifiableCompositeMetadata |
getCompositeMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName)
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)
Returns the named metadata's value, local or external, as a
CompositeMetadata . |
static Date |
getDate(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Returns the named metadata's value, local or external, as Date.
|
static Date[] |
getDateArray(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Returns the named metadata's value, local or external, as Date array.
|
static double |
getDouble(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Returns the named metadata's value, local or external, as double.
|
static double[] |
getDoubleArray(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Returns the named metadata's value, local or external, as double array.
|
static long |
getLong(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Returns the named metadata's value, local or external, as long.
|
static long[] |
getLongArray(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Returns the named metadata's value, local or external, as long array.
|
static String |
getMetadataName(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Get the metadata name holding the value with the given status
|
static MultilingualString |
getMultilingualString(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
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, an UnknownMetadataException is thrown. |
static TraversableAmetysObject |
getObjectCollection(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Returns the named metadata's value, local or external, as a
TraversableAmetysObject . |
static ModifiableTraversableAmetysObject |
getObjectCollection(ModifiableCompositeMetadata metadataHolder,
String metadataName)
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)
Returns the named metadata's value, local or external, as
RichText . |
static ModifiableRichText |
getRichText(ModifiableCompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status,
boolean createNew)
Returns the named metadata's value, local or external, as
RichText . |
static ModifiableRichText |
getRichTextMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName)
Get and create if necessary a RichText metadata, removing the alternative value and status if exists.
|
static ExternalizableMetadataProvider.ExternalizableMetadataStatus |
getStatus(CompositeMetadata metadataHolder,
String metadataName)
Get the current status of a externalizable metadata
|
static String |
getString(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
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, an UnknownMetadataException is thrown. |
static String[] |
getStringArray(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Returns the named metadata's value, local or external, as String array.
|
static CompositeMetadata.MetadataType |
getType(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Returns the type of metadata holding the value with the given status
|
static UserIdentity |
getUser(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Returns the named metadata's value, local or external, as
UserIdentity . |
static UserIdentity[] |
getUserArray(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Returns the named metadata's value, local or external, as array of
UserIdentity . |
static boolean |
hasMetadata(CompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Determine if the externalizable metadata exists.
|
static boolean |
removeExternalMetadataIfExists(ModifiableCompositeMetadata metadataHolder,
String metadataName)
Remove the metadata holding the external value if exists
|
static boolean |
removeLocalMetadataIfExists(ModifiableCompositeMetadata metadataHolder,
String metadataName)
Remove the metadata holding the local value if exists
|
static boolean |
removeMetadataIfExists(ModifiableCompositeMetadata metadataHolder,
String metadataName)
Remove the metadata, alternative value and status if exist
|
static boolean |
setExternalMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
Object extValue,
boolean forceExternalStatus)
Set the external value of a metadata
|
static ModifiableBinaryMetadata |
setLocalBinaryMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Set a binary metadata as local value and the status of an externalizable metadata
|
static ModifiableCompositeMetadata |
setLocalCompositeMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Set a composite metadata as local value and the status of an externalizable metadata
|
static void |
setLocalMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
Object localValue,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Set the local value and the status of an externalizable metadata
|
static ModifiableRichText |
setLocalRichTextMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Set a richtext metadata as local value and the status of an externalizable metadata
|
static boolean |
setMetadata(ModifiableCompositeMetadata metadataHolder,
String metadataName,
Object value)
Set the value of a metadata, removing the alternative value and status if exists.
|
static void |
setStatus(ModifiableCompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Set the status of an externalizable metadata
|
static void |
updateBinaryMetadataStatus(ModifiableCompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Set the status of a binary metadata.
|
static void |
updateCompositeMetadataStatus(ModifiableCompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Set the status of a composite metadata.
|
static void |
updateRichTextMetadataStatus(ModifiableCompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Set the status of a
RichText metadata. |
static boolean |
updateStatus(ModifiableCompositeMetadata metadataHolder,
String metadataName,
ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Set the status of an externalizable metadata
|
public static final String ALTERNATIVE_SUFFIX
public static final String STATUS_SUFFIX
private static final String __TEMP_SUFFIX
private ExternalizableMetadataHelper()
public static boolean setExternalMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Object extValue, boolean forceExternalStatus)
metadataHolder
- The parent composite metadatametadataName
- The metadata nameextValue
- The external valueforceExternalStatus
- Set to true to force new status to external. Set the false to not update the current status.public static boolean removeExternalMetadataIfExists(ModifiableCompositeMetadata metadataHolder, String metadataName)
metadataHolder
- The parent composite metadatametadataName
- The metadata name to deletepublic static void setStatus(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- The metadata namestatus
- The new statuspublic static boolean updateStatus(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- The metadata namestatus
- The new statuspublic static boolean removeLocalMetadataIfExists(ModifiableCompositeMetadata metadataHolder, String metadataName)
metadataHolder
- The parent composite metadatametadataName
- The metadata name to deletepublic static void setLocalMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Object localValue, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- The metadata namelocalValue
- The local value of metadatastatus
- The status of metadatapublic static ModifiableCompositeMetadata setLocalCompositeMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- The metadata namestatus
- The status of metadatapublic static ModifiableBinaryMetadata setLocalBinaryMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- The metadata namestatus
- The status of metadatapublic static void updateBinaryMetadataStatus(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- The metadata namestatus
- The new status of metadatapublic static void updateCompositeMetadataStatus(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- The metadata namestatus
- The new status of metadatapublic static ModifiableRichText setLocalRichTextMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- The metadata namestatus
- The status of metadatapublic static void updateRichTextMetadataStatus(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
RichText
metadata.
If status has changed, the local and external values will be inverted.metadataHolder
- The parent composite metadatametadataName
- The metadata namestatus
- The new status of metadatapublic static void copyExternalizableMetadata(ModifiableCompositeMetadata srCompositeMetadata, ModifiableCompositeMetadata destCompositeMetadata, String metadataName)
srCompositeMetadata
- The source metadata holderdestCompositeMetadata
- The metadata holder of destinationmetadataName
- The metadata namepublic static boolean removeMetadataIfExists(ModifiableCompositeMetadata metadataHolder, String metadataName)
metadataHolder
- The parent composite metadatametadataName
- The metadata name to deletepublic static boolean setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Object value)
metadataHolder
- The parent composite metadatametadataName
- The metadata namevalue
- The valuepublic static ModifiableRichText getRichTextMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName)
metadataHolder
- The parent metadata holdermetadataName
- The metadata namepublic static ModifiableBinaryMetadata getBinaryMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName)
metadataHolder
- The parent metadata holdermetadataName
- The metadata namepublic static ModifiableCompositeMetadata getCompositeMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName)
metadataHolder
- The parent metadata holdermetadataName
- The metadata namepublic static ModifiableTraversableAmetysObject getObjectCollection(ModifiableCompositeMetadata metadataHolder, String metadataName)
metadataHolder
- The parent metadata holdermetadataName
- The metadata nameprivate static boolean _removeAltAndStatusMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName)
private static boolean _removeMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName)
private static boolean _setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Object value)
private static boolean _setNonSimpleMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Object value)
private static boolean _setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, String value)
private static boolean _setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, String[] values)
private static boolean _setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Date value)
private static boolean _setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Date[] values)
private static boolean _setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Boolean value)
private static boolean _setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Boolean[] values)
private static boolean _setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Long value)
private static boolean _setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Long[] values)
private static boolean _setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Double value)
private static boolean _setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Double[] values)
private static boolean _setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, UserIdentity value)
private static boolean _setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, UserIdentity[] values)
private static boolean _setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, MultilingualString value)
private static boolean _setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Content content)
private static boolean _setMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, Content[] contents)
private static void _copyCompositeMetadata(ModifiableCompositeMetadata metadataHolder, String srcMetadataName, String destMetadataName)
private static void _copyBinaryMetadata(ModifiableCompositeMetadata metadataHolder, String srcMetadataName, String destMetadataName)
private static void _copyRichTextMetadata(ModifiableCompositeMetadata metadataHolder, String srcMetadataName, String destMetadataName)
private static boolean _copyMetadata(ModifiableCompositeMetadata metadataHolder, String srcMetadataName, String destMetadatName)
private static boolean _copyMetadata(ModifiableCompositeMetadata srcMetadataHolder, String srcMetadataName, ModifiableCompositeMetadata destMetadataHolder, String destMetadatName)
private static void _copyBinaryMetadata(ModifiableBinaryMetadata srcBinaryMetadata, ModifiableBinaryMetadata destBinaryMetadata)
private static void _copyRichText(ModifiableRichText srcRichText, ModifiableRichText destRichText)
public static ExternalizableMetadataProvider.ExternalizableMetadataStatus getStatus(CompositeMetadata metadataHolder, String metadataName)
metadataHolder
- The parent composite metadatametadataName
- The metadata namepublic static boolean hasMetadata(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- the metadataName to test.status
- The status of the metadata to testtrue
if the given metadata exists, false
otherwise.AmetysRepositoryException
- if an error occurs.public static CompositeMetadata.MetadataType getType(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- metadata name.status
- The status of the metadata to testUnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static String getMetadataName(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- metadata name.status
- The status of the metadata to testpublic static String getString(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
UnknownMetadataException
is thrown.metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveUnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static String[] getStringArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveUnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static MultilingualString getMultilingualString(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
UnknownMetadataException
is thrown.metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveUnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static Date getDate(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveUnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static Date[] getDateArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveUnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static long getLong(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveUnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static long[] getLongArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveUnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static double getDouble(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveUnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static double[] getDoubleArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveUnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static boolean getBoolean(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveUnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static boolean[] getBooleanArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveUnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static UserIdentity getUser(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
UserIdentity
.metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveUnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static UserIdentity[] getUserArray(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
UserIdentity
.metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveUnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static BinaryMetadata getBinaryMetadata(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
BinaryMetadata
.metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveBinaryMetadata
.UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static ModifiableBinaryMetadata getBinaryMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status, boolean createNew)
BinaryMetadata
.metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrievecreateNew
- true
to create automatically the BinaryMetadata
when missing.BinaryMetadata
.UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static RichText getRichText(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
RichText
.metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveRichText
.UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static ModifiableRichText getRichText(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status, boolean createNew)
RichText
.metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrievecreateNew
- true
to create automatically the RichText
when missing.RichText
.UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static TraversableAmetysObject getObjectCollection(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
TraversableAmetysObject
.metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveTraversableAmetysObject
.UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static CompositeMetadata getCompositeMetadata(CompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
TraversableAmetysObject
.metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrieveTraversableAmetysObject
.UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.public static ModifiableCompositeMetadata getCompositeMetadata(ModifiableCompositeMetadata metadataHolder, String metadataName, ExternalizableMetadataProvider.ExternalizableMetadataStatus status, boolean createNew)
CompositeMetadata
.metadataHolder
- The parent composite metadatametadataName
- the metadata name.status
- The status of the metadata to retrievecreateNew
- true
to create automatically the CompositeMetadata
when missing.CompositeMetadata
.UnknownMetadataException
- if the named metadata does not exist.AmetysRepositoryException
- if an error occurs.