com.sapportals.wcm.service.propertyconfig.metadataextension

Interface IDynamicValues

All Known Implementing Classes:
ContentTypeValueProvider, DefaultMetadataExtension, ItemTypeValueProvider

public interface IDynamicValues

Providing values for properties.


Method Summary
 IMetaValueList getAllowedValues(IMetaName metaName)
          Returns values depending on the meta name.
 IMetaValueList getAllowedValues(IMetaName metaName, IMetaContext metaContext)
          Returns values depending on the meta name and the resource.
 IMetaValue getDefaultValue(IMetaName metaName)
          Returns a default value depending on the meta name.
 String getPropertyDescription(IMetaName metaName, Locale locale)
          Gets a description for a property depending on the input locale.
 String getPropertyLabel(IMetaName metaName, Locale locale)
          Gets a label for the property name depending on the input locale.
 String getValueLabel(IMetaValue metaValue, Locale locale)
          Gets a label for a property value depending on the input locale.
 IMetaValue searchMetaValue(String value)
          Returns a meta value by its ID (property value ID).
 

Method Detail

getValueLabel

String getValueLabel(IMetaValue metaValue,
                     Locale locale)
                     throws PropertyConfigurationServiceException
Gets a label for a property value depending on the input locale.

Parameters:
metaValue - metaValue for that a label is requested
locale - locale to determine the lable language
Returns:
label for a property value, returns null if no label can be found for the value
Throws:
PropertyConfigurationServiceException

getAllowedValues

IMetaValueList getAllowedValues(IMetaName metaName)
                                throws PropertyConfigurationServiceException
Returns values depending on the meta name.

Parameters:
metaName - meta model information of a property
Returns:
list of relevant values (incl. empty list) or null if there is no value domain
Throws:
PropertyConfigurationServiceException

getAllowedValues

IMetaValueList getAllowedValues(IMetaName metaName,
                                IMetaContext metaContext)
                                throws PropertyConfigurationServiceException
Returns values depending on the meta name and the resource.

Parameters:
metaName - meta model information of a property
metaContext - context information. Can be null if no context information is provided by the calling UI.
Returns:
list of relevant values (incl. empty list) or null if there is no value domain
Throws:
PropertyConfigurationServiceException

getDefaultValue

IMetaValue getDefaultValue(IMetaName metaName)
Returns a default value depending on the meta name.

Parameters:
metaName - meta model information of a property
Returns:
default value or null

getPropertyLabel

String getPropertyLabel(IMetaName metaName,
                        Locale locale)
                        throws PropertyConfigurationServiceException
Gets a label for the property name depending on the input locale.

Parameters:
metaName - meta name for that the label is requested
locale - locale to determine the lable language
Returns:
label for a property name, returns null if no label can be found for the name
Throws:
PropertyConfigurationServiceException

getPropertyDescription

String getPropertyDescription(IMetaName metaName,
                              Locale locale)
                              throws PropertyConfigurationServiceException
Gets a description for a property depending on the input locale.

Parameters:
metaName - meta name for that the description is requested
locale - locale to determine the description language
Returns:
description for a property, returns null if no description can be found for the property
Throws:
PropertyConfigurationServiceException

searchMetaValue

IMetaValue searchMetaValue(String value)
                           throws PropertyConfigurationServiceException
Returns a meta value by its ID (property value ID). Returns null if the value provider doesn't know the property value.

Parameters:
value - property value
Returns:
<{IMetaValue}> (0, 1)
Throws:
PropertyConfigurationServiceException
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM


Copyright 2011 SAP AG Complete Copyright Notice