com.sapportals.wcm.service.propertyconfig

Interface IMetaName


public interface IMetaName

Name part of name - value pairs. Meta name value pairs can be configured to use them i.e. in UI to select property name and values.


Field Summary
static String DEFAULT_NAMESPACE_ALIAS
           
static String NS_SEPARATOR
           
static String PROPERTY_TYPE_BOOLEAN
           
static String PROPERTY_TYPE_DATE
           
static String PROPERTY_TYPE_HTML
           
static String PROPERTY_TYPE_INTEGER
           
static String PROPERTY_TYPE_RID
           
static String PROPERTY_TYPE_STRING
           
static String PROPERTY_TYPE_TEXT
           
static String PROPERTY_TYPE_TIME
           
static String PROPERTY_TYPE_TIMESTAMP
           
static String PROPERTY_TYPE_URL
           
static String PROPERTY_TYPE_USER
           
static String PROPERTY_TYPE_XML
           
static int SORTMODE_ASCENDING
           
static int SORTMODE_DESCENDING
           
 
Method Summary
 IMetaValueListIterator allowedValueIterator()
          Returns a iterator to get a ordered value list.
 IMetaValueListIterator allowedValueIterator(IMetaContext metaContext)
          Returns a iterator to get a ordered value list.
 String[] getAdditionalMetaTags()
           
 IMetaNameList getComposedOfMetaNames()
           
 int getDefaultSortmode()
          returns the default sort mode (ascending/descending)
 IMetaValue getDefaultValue()
          Delivers the default value
 String getDescription(Locale locale)
          Get description (internationalized)
 String[] getDocumentPatterns()
           
 String[] getFolderPatterns()
           
 String getFullId()
          Complete ID ({namespace}name)
 IMetaGroup getGroup()
          Each meta property name belongs to a group like system, custom, default, etc.
 String getId()
          shortest complete ID (name, alias:name or namespace:name, depending on alias availability or alias being "default"
 String getLabel(Locale locale)
          Get label (internationalized)
 IUriReference getLabelIcon()
          Get the label icon alternative (mainly used for column headers)
 String[] getMimeTypes()
           
 String getName()
          property name without namespace or alias
 String getNamespace()
          namespace
 IMetaPropertyRenderer getPropertyRenderer(PropertyDisplayMode displayMode)
          Returns the property renderer for this meta name.
 IResourcePropertyComparator getResourcePropertyComparator()
          Returns the comparator class for this meta name.
 String[] getResourceTypes()
           
 String getSelectionCommandAlias()
          Alias of the command that is used to navigate to the property selector
 String getType()
          Returns the PropertyType attribute of the MetaName object.
 boolean hasAdditionalMetaTag(String metaTag)
          Returns true if the requested meta tag exists for this meta name.
 boolean hasAllowedValues()
          Ask for if the list of values is not empty.
 boolean hasAllowedValues(IMetaContext metaContext)
          Ask for if the list of values is not empty.
 boolean hasDependencies()
          Flag that indicates that the property value affects the value or state of other properties or other objects in the current context.
 boolean isHidden()
           
 boolean isIndexable()
          Delivers a flag which is used by TREX and Indexmanagement.
 boolean isMaintainable()
           
 boolean isMandatory()
          Delivers a flag which marks this property as being mandatory
 boolean isModelled()
          Delivers a flag which marks this property as being explicitly modelled (not on-the-fly)
 boolean isMultiValued()
          get multi-value attribute
 boolean isReadonly()
           
 boolean isVirtual()
           
 IMetaValue searchByProperty(IProperty property)
          Search for the meta value that was used to create the passed property.
 IMetaValue searchMetaValue(String value)
          Returns a meta value by its id.
 

Field Detail

SORTMODE_ASCENDING

public static final int SORTMODE_ASCENDING
See Also:
Constant Field Values

SORTMODE_DESCENDING

public static final int SORTMODE_DESCENDING
See Also:
Constant Field Values

PROPERTY_TYPE_BOOLEAN

public static final String PROPERTY_TYPE_BOOLEAN
See Also:
Constant Field Values

PROPERTY_TYPE_DATE

public static final String PROPERTY_TYPE_DATE
See Also:
Constant Field Values

PROPERTY_TYPE_INTEGER

public static final String PROPERTY_TYPE_INTEGER
See Also:
Constant Field Values

PROPERTY_TYPE_RID

public static final String PROPERTY_TYPE_RID
See Also:
Constant Field Values

PROPERTY_TYPE_STRING

public static final String PROPERTY_TYPE_STRING
See Also:
Constant Field Values

PROPERTY_TYPE_TEXT

public static final String PROPERTY_TYPE_TEXT
See Also:
Constant Field Values

PROPERTY_TYPE_TIMESTAMP

public static final String PROPERTY_TYPE_TIMESTAMP
See Also:
Constant Field Values

PROPERTY_TYPE_TIME

public static final String PROPERTY_TYPE_TIME
See Also:
Constant Field Values

PROPERTY_TYPE_USER

public static final String PROPERTY_TYPE_USER
See Also:
Constant Field Values

PROPERTY_TYPE_URL

public static final String PROPERTY_TYPE_URL
See Also:
Constant Field Values

PROPERTY_TYPE_XML

public static final String PROPERTY_TYPE_XML
See Also:
Constant Field Values

PROPERTY_TYPE_HTML

public static final String PROPERTY_TYPE_HTML
See Also:
Constant Field Values

NS_SEPARATOR

public static final String NS_SEPARATOR
See Also:
Constant Field Values

DEFAULT_NAMESPACE_ALIAS

public static final String DEFAULT_NAMESPACE_ALIAS
See Also:
Constant Field Values
Method Detail

getId

public String getId()
shortest complete ID (name, alias:name or namespace:name, depending on alias availability or alias being "default"

Returns:
The Id value

getFullId

public String getFullId()
Complete ID ({namespace}name)

Returns:
The Id value

getName

public String getName()
property name without namespace or alias

Returns:
The Name value

getNamespace

public String getNamespace()
namespace

Returns:
Property namespace

getGroup

public IMetaGroup getGroup()
Each meta property name belongs to a group like system, custom, default, etc. NOTE: Can be null if no group info is available!

Returns:
Meta group info

getDescription

public String getDescription(Locale locale)
Get description (internationalized)

Parameters:
locale - Description of the param
Returns:
The description value or null, if not available

getLabel

public String getLabel(Locale locale)
Get label (internationalized)

Parameters:
locale - Description of the param
Returns:
The label value or the result of getName(), if not available

getLabelIcon

public IUriReference getLabelIcon()
Get the label icon alternative (mainly used for column headers)

Returns:
The label icon URI

searchByProperty

public IMetaValue searchByProperty(IProperty property)
                            throws PropertyConfigurationServiceException
Search for the meta value that was used to create the passed property.

Parameters:
property - Search argument.
Returns:
IMetaValue
Throws:
PropertyConfigurationServiceException

allowedValueIterator

public IMetaValueListIterator allowedValueIterator()
                                            throws PropertyConfigurationServiceException
Returns a iterator to get a ordered value list.

Returns:
<{Iterator}>
Throws:
PropertyConfigurationServiceException - Exception raised in failure situation
<{PropertyConfigurationServiceException}>

allowedValueIterator

public IMetaValueListIterator allowedValueIterator(IMetaContext metaContext)
                                            throws PropertyConfigurationServiceException
Returns a iterator to get a ordered value list.

Parameters:
metaContext - context information for determining the returned values
Returns:
<{Iterator}>
Throws:
PropertyConfigurationServiceException - Exception raised in failure situation
<{PropertyConfigurationServiceException}>

searchMetaValue

public IMetaValue searchMetaValue(String value)
                           throws PropertyConfigurationServiceException
Returns a meta value by its id.

Parameters:
value - Description of the param
Returns:
<{IMetaValue}> (0, 1)
Throws:
PropertyConfigurationServiceException - Exception raised in failure situation
<{PropertyConfigurationServiceException}>

hasAllowedValues

public boolean hasAllowedValues()
Ask for if the list of values is not empty.

Returns:
Returns true, if list of values is not empty.

hasAllowedValues

public boolean hasAllowedValues(IMetaContext metaContext)
Ask for if the list of values is not empty.

Parameters:
metaContext - context information for determining the returned values
Returns:
Returns true, if list of values is not empty.

getType

public String getType()
Returns the PropertyType attribute of the MetaName object.

Returns:
propertyType

isMandatory

public boolean isMandatory()
Delivers a flag which marks this property as being mandatory

Returns:
mandatory flag

isIndexable

public boolean isIndexable()
Delivers a flag which is used by TREX and Indexmanagement.

Returns:
indexable Flag

isHidden

public boolean isHidden()
Returns:
true if property should be hidden, false else

isMaintainable

public boolean isMaintainable()
Returns:
true if property can be maintained, false else

isVirtual

public boolean isVirtual()
Returns:
true if property is a virtual property (maintainable only when the resource has this property), false else

isReadonly

public boolean isReadonly()
Returns:
true if property is read-only, false else

getResourceTypes

public String[] getResourceTypes()
Returns:
the allowed resource types

getMimeTypes

public String[] getMimeTypes()
Returns:
the allowed mime types

getFolderPatterns

public String[] getFolderPatterns()
Returns:
the validity patterns for folders

getDocumentPatterns

public String[] getDocumentPatterns()
Returns:
the validity patterns for documents

getAdditionalMetaTags

public String[] getAdditionalMetaTags()
Returns:
an array of additional meta tags

hasAdditionalMetaTag

public boolean hasAdditionalMetaTag(String metaTag)
Returns true if the requested meta tag exists for this meta name. The method loops over all meta tags that are returned by getAdditionalMetaTags and checks if the string equals the input string. If it matches, true is returned.

Returns:
boolean true if the requested meta tag exists for this meta name

getDefaultValue

public IMetaValue getDefaultValue()
Delivers the default value

Returns:
value or null, if unset

isMultiValued

public boolean isMultiValued()
get multi-value attribute

Returns:
boolean flag

isModelled

public boolean isModelled()
Delivers a flag which marks this property as being explicitly modelled (not on-the-fly)

Returns:
modelled flag

getDefaultSortmode

public int getDefaultSortmode()
returns the default sort mode (ascending/descending)

Returns:
IMetaName.SORTMODE_ASCENDING/IMetaName.SORTMODE_DESCENDING

getComposedOfMetaNames

public IMetaNameList getComposedOfMetaNames()
Returns:
all meta names which composed this meta name

hasDependencies

public boolean hasDependencies()
Flag that indicates that the property value affects the value or state of other properties or other objects in the current context.

Returns:
true if the property has dependencies

getSelectionCommandAlias

public String getSelectionCommandAlias()
Alias of the command that is used to navigate to the property selector

Returns:
alias of the command

getPropertyRenderer

public IMetaPropertyRenderer getPropertyRenderer(PropertyDisplayMode displayMode)
Returns the property renderer for this meta name.

Parameters:
displayMode - display mode that must be supported by the property renderer. If displayMode is PropertyDisplayMode.UNDEFINED the renderer don't has to support any display mode to be returned.
Returns:
property renderer meta information or null if no renderer information is configured/renderer doesn't support the display mode

getResourcePropertyComparator

public IResourcePropertyComparator getResourcePropertyComparator()
                                                          throws PropertyConfigurationServiceException
Returns the comparator class for this meta name. If no special comparator is configured for this property the default resource property comparator is returned.

Returns:
comparator for comparing two resources on the basis of this property
Throws:
PropertyConfigurationServiceException


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.