com.sapportals.wcm.control.edit

Class PropertiesControlUtil

java.lang.Object
  extended by com.sapportals.wcm.control.edit.PropertiesControlUtil

public class PropertiesControlUtil
extends Object

Composite control which is responsible to render Copyright (c) SAP Portals Europe GmbH 2001


Constructor Summary
PropertiesControlUtil()
           
 
Method Summary
 boolean allowSetProprties(IResource resource, boolean newResourceFlag, StructureDisplayMode structureDisplayMode)
           
static boolean allowsSetProperties(IResource resource, boolean checkRoot)
          Check if the resource repository manager allowed to have properties
static boolean allowsSetProperties(IResource resource, boolean checkRoot, boolean checkLinkTarget)
          Check if the resource repository manager allowed to have properties
static String[] convertCollection2Array(int typeOfList, HashMap nonUniqueIDs)
           
static IPropertyDef convertToPropertyDef(String propertyDefString)
           
 IPropertyMap decodeProperties(String tokens, Locale locale)
          Creates a property map from a parsed string.
 ArrayList decodeValues(ArrayList list)
           
static String encodeProperties(ArrayList properties, Locale locale, IMetaModel model, boolean newResourceFlag)
          Creates a parseable String from a property array.
static String encodeProperties(Map<Integer,PropertiesArrayList> pMap, Locale locale, IMetaModel model, boolean newResourceFlag)
          Creates a parsable String from a property map.
static IPropertyMap getDefaultProperties(IPropertyStructure propertyStructure, IMetaContext context, IPropertyConfigurationService service)
          Returns the default properties for a given IPropertyStructure
static IPropertyMap getDefaultProperties(IStructuredGroup group, IMetaContext context, IPropertyConfigurationService service)
           
static IProperty getDefaultProperty(IMetaName metaName, IMetaContext context)
           
static String getInvalidMandatoryProperties(List metaNameList, IResourceContext context)
           
static String getNotSetProperties(List propertyNameList, Locale locale, IMetaModel model)
           
static boolean isDisplayMode(IResource resource)
           
static boolean isRM(IResource resource)
           
static boolean isUpdatable(boolean forProperties, IResource resource, boolean newResourceFlag, StructureDisplayMode structureDisplayMode)
           
static void logProperties(List pp, String title)
           
static StructureDisplayMode retrieveStructureDisplayMode(String str)
           
static boolean searchByIMetaName(IPropertyStructure propertyStructure, IMetaContext metaContext, String metaNameID)
           
static boolean setProprtiesSupported(IResource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesControlUtil

public PropertiesControlUtil()
Method Detail

decodeValues

public ArrayList decodeValues(ArrayList list)
                       throws WcmException
Throws:
WcmException

retrieveStructureDisplayMode

public static StructureDisplayMode retrieveStructureDisplayMode(String str)

convertCollection2Array

public static String[] convertCollection2Array(int typeOfList,
                                               HashMap nonUniqueIDs)
                                        throws WcmException
Throws:
WcmException

encodeProperties

public static String encodeProperties(ArrayList properties,
                                      Locale locale,
                                      IMetaModel model,
                                      boolean newResourceFlag)
Creates a parseable String from a property array. Note that a property within the array can be null! (New property case.)

Parameters:
properties - An array containing properties
Returns:
A parseable property string.

encodeProperties

public static String encodeProperties(Map<Integer,PropertiesArrayList> pMap,
                                      Locale locale,
                                      IMetaModel model,
                                      boolean newResourceFlag)
Creates a parsable String from a property map. Note that a property within the array can be null! (New property case.)

Parameters:
pMap -
locale -
model -
newResourceFlag -
Returns:
A parsable property string.

decodeProperties

public IPropertyMap decodeProperties(String tokens,
                                     Locale locale)
                              throws ResourceException
Creates a property map from a parsed string.

Parameters:
tokens - String to parse
Returns:
A property map.
Throws:
ResourceException - Exception raised in failure situation

convertToPropertyDef

public static IPropertyDef convertToPropertyDef(String propertyDefString)

getNotSetProperties

public static String getNotSetProperties(List propertyNameList,
                                         Locale locale,
                                         IMetaModel model)

getInvalidMandatoryProperties

public static String getInvalidMandatoryProperties(List metaNameList,
                                                   IResourceContext context)

setProprtiesSupported

public static boolean setProprtiesSupported(IResource resource)

allowSetProprties

public boolean allowSetProprties(IResource resource,
                                 boolean newResourceFlag,
                                 StructureDisplayMode structureDisplayMode)

isUpdatable

public static boolean isUpdatable(boolean forProperties,
                                  IResource resource,
                                  boolean newResourceFlag,
                                  StructureDisplayMode structureDisplayMode)

isDisplayMode

public static boolean isDisplayMode(IResource resource)
                             throws WcmException
Throws:
WcmException

isRM

public static boolean isRM(IResource resource)

allowsSetProperties

public static boolean allowsSetProperties(IResource resource,
                                          boolean checkRoot)
Check if the resource repository manager allowed to have properties

Parameters:
checkRoot - The new propertiesUnderstood value
Returns:
boolean - true when the repository manager allowed description as property and false contrary

allowsSetProperties

public static boolean allowsSetProperties(IResource resource,
                                          boolean checkRoot,
                                          boolean checkLinkTarget)
Check if the resource repository manager allowed to have properties

Parameters:
checkRoot - The new propertiesUnderstood value
Returns:
boolean - true when the repository manager allowed description as property and false contrary

getDefaultProperty

public static IProperty getDefaultProperty(IMetaName metaName,
                                           IMetaContext context)
                                    throws ResourceException
Throws:
ResourceException

logProperties

public static void logProperties(List pp,
                                 String title)

searchByIMetaName

public static boolean searchByIMetaName(IPropertyStructure propertyStructure,
                                        IMetaContext metaContext,
                                        String metaNameID)
                                 throws PropertyStructureServiceException
Throws:
PropertyStructureServiceException

getDefaultProperties

public static IPropertyMap getDefaultProperties(IStructuredGroup group,
                                                IMetaContext context,
                                                IPropertyConfigurationService service)

getDefaultProperties

public static IPropertyMap getDefaultProperties(IPropertyStructure propertyStructure,
                                                IMetaContext context,
                                                IPropertyConfigurationService service)
Returns the default properties for a given IPropertyStructure

Parameters:
propertyStructure -
context -
service -
Returns:
the default properties for a given IPropertyStructure
Access Rights

This class can be accessed from:


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


Copyright 2014 SAP AG Complete Copyright Notice