public class CloudSettingsUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MIXIN_CLOUDSETTINGS_CONFIG_TYPE
JCR Mixin Type used to collect CloudsettingsConfigType candidates via search
|
static java.lang.String |
PROP_ALLOWED_CHILD_TYPES
Property on a CloudSettingConfigType Resource to define to define the
resourceTypes that can be used as child for a CloudSettingsConfig
with this resourceType (subTypes are allowed as well)
|
static java.lang.String |
PROP_ALLOWED_PARENT_TYPES
Property on a CloudSettingConfigType Resource to define to define the
resourceTypes that a parent must have (subTypes are allowed as well)
to create a CloudSettingsConfig with this resourceType
|
static java.lang.String |
PROP_UNIQUE_NAME
Property on a CloudSettingConfigType Resource to define a unique name
for the CloudSettingConfig Resource so that no sibling with the same name can be created
|
Constructor and Description |
---|
CloudSettingsUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.Iterator<Resource> |
getAllCloudSettingsConfigTypes(ResourceResolver resolver)
Performs a search for all available CloudSettingConfigTypes by mixin Type in
the system.
|
static java.util.Iterator<Resource> |
getCloudSettingsConfigTypes(ResourceResolver resolver,
Resource parentResource)
Performs a search for available CloudSettingConfigTypes by mixin Type in
the system and filters the resulting iterator them with
CloudSettingsConfigTypeFilter |
static java.lang.String |
getPersonDisplayName(ResourceResolver resolver,
java.lang.String userId)
Extract the output for display.
|
public static final java.lang.String MIXIN_CLOUDSETTINGS_CONFIG_TYPE
public static final java.lang.String PROP_ALLOWED_CHILD_TYPES
public static final java.lang.String PROP_ALLOWED_PARENT_TYPES
public static final java.lang.String PROP_UNIQUE_NAME
Implementing ui has to take care of creating the CloudSettingConfig Resource with this name
public static java.lang.String getPersonDisplayName(ResourceResolver resolver, java.lang.String userId)
resolver
- the resourceResolver for the lookup of profilesuserId
- the userId candidate to be processed for displayName detectionpublic static java.util.Iterator<Resource> getAllCloudSettingsConfigTypes(ResourceResolver resolver)
resolver
- the resolver to be used for CloudSettingConfigType searchpublic static java.util.Iterator<Resource> getCloudSettingsConfigTypes(ResourceResolver resolver, Resource parentResource)
CloudSettingsConfigTypeFilter
resolver
- the resolver to be used for CloudSettingConfigType searchparentResource
- the resource under which the returned CloudSettingConfigType are creatable"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"