public class PropertiesControlUtil extends Object
| Constructor and Description |
|---|
PropertiesControlUtil() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public ArrayList decodeValues(ArrayList list) throws WcmException
WcmExceptionpublic static StructureDisplayMode retrieveStructureDisplayMode(String str)
public static String[] convertCollection2Array(int typeOfList, HashMap nonUniqueIDs) throws WcmException
WcmExceptionpublic static String encodeProperties(ArrayList properties, Locale locale, IMetaModel model, boolean newResourceFlag)
properties - An array containing propertieslocale - localemodel - meta modelnewResourceFlag - booleanpublic static String encodeProperties(Map<Integer,PropertiesArrayList> pMap, Locale locale, IMetaModel model, boolean newResourceFlag)
pMap - pMaplocale - localemodel - modelnewResourceFlag - newResourceFlagpublic IPropertyMap decodeProperties(String tokens, Locale locale) throws ResourceException
tokens - String to parselocale - localeResourceException - Exception raised in failure situationpublic static IPropertyDef convertToPropertyDef(String propertyDefString)
public static String getNotSetProperties(List propertyNameList, Locale locale, IMetaModel model)
public static String getInvalidMandatoryProperties(List metaNameList, IResourceContext context)
public static boolean setProprtiesSupported(IResource resource)
public boolean allowSetProprties(IResource resource, boolean newResourceFlag, StructureDisplayMode structureDisplayMode)
public static boolean isUpdatable(boolean forProperties,
IResource resource,
boolean newResourceFlag,
StructureDisplayMode structureDisplayMode)
public static boolean isDisplayMode(IResource resource) throws WcmException
WcmExceptionpublic static boolean isRM(IResource resource)
public static boolean allowsSetProperties(IResource resource, boolean checkRoot)
checkRoot - The new propertiesUnderstood valueresource - resourcepublic static boolean allowsSetProperties(IResource resource, boolean checkRoot, boolean checkLinkTarget)
checkRoot - The new propertiesUnderstood valueresource - resourcecheckLinkTarget - checkLinkTargetpublic static IProperty getDefaultProperty(IMetaName metaName, IMetaContext context) throws ResourceException
ResourceExceptionpublic static boolean searchByIMetaName(IPropertyStructure propertyStructure, IMetaContext metaContext, String metaNameID) throws PropertyStructureServiceException
public static IPropertyMap getDefaultProperties(IStructuredGroup group, IMetaContext context, IPropertyConfigurationService service)
public static IPropertyMap getDefaultProperties(IPropertyStructure propertyStructure, IMetaContext context, IPropertyConfigurationService service)
IPropertyStructurepropertyStructure - propertyStructurecontext - contextservice - serviceIPropertyStructure| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com]
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice