public interface BTGCockpitService
| Modifier and Type | Method and Description |
|---|---|
TypedObject |
createBtgSegment(String segmentName,
TypedObject catalogVersion)
Creates a btgSegment with the given name in the given catalogVersion.
|
TypedObject |
createCmsRestrictionAction(TypedObject segment,
TypedObject restrictedCMSItem,
boolean inverted)
Creates a CMS Restriction Action with a according CMS Restriction and connects it with the segment and the CMS
Item.
|
TypedObject |
createShowItemOutputAction(RestrictionActionCreateContext context)
Creates show item output action accordingly to given context.
|
TypedObject |
getCatalogVersion(TypedObject segment)
Get the catalog version for the specific BTGSegment
|
TypedObject |
getDefaultBtgCatalogVersion()
Gets the default catalog version for btg segments or null, if none configured.
|
List<TypedObject> |
getOutputActions(TypedObject segment)
Get the output actions for a specific BTGSegment
|
List<TypedObject> |
getRules(TypedObject segment)
Get the rules for a specific BTGSegment
|
void |
removeBTGOutputAction(TypedObject btgoutputAction)
Removes the specific BTGOutputAction
|
void |
removeBTGRule(TypedObject btgrule)
Removes the specific BTGRule
|
void |
removeBTGSegment(TypedObject btgsegment)
Removes the specific BTGSegment
|
void |
setOutputActions(TypedObject segment,
List<TypedObject> outputActions)
Set the output actions for a specific BTGSegment
|
void |
setRules(TypedObject segment,
List<TypedObject> rules)
Set the rules for a specific BTGSegment
|
void |
setSegmentNameAccordingToFirstRule(TypedObject btgSegment)
Sets the name of the segment according to the first rule.
|
void removeBTGSegment(TypedObject btgsegment) throws ValueHandlerPermissionException
btgsegment - the BTGSegment to be removedValueHandlerPermissionExceptionvoid removeBTGRule(TypedObject btgrule) throws ValueHandlerPermissionException
btgrule - the BTGRule to be removedValueHandlerPermissionExceptionvoid removeBTGOutputAction(TypedObject btgoutputAction) throws ValueHandlerPermissionException
btgoutputAction - the BTGOutputAction to be removedValueHandlerPermissionExceptionList<TypedObject> getRules(TypedObject segment)
segment - the BTGSegmentvoid setRules(TypedObject segment, List<TypedObject> rules)
segment - the BTGSegmentrules - the rules, wrapped into TypedObjectsList<TypedObject> getOutputActions(TypedObject segment)
segment - the BTGSegmentvoid setOutputActions(TypedObject segment, List<TypedObject> outputActions)
segment - the BTGSegmentoutputActions - the output actions, wrapped into TypedObjectsTypedObject getCatalogVersion(TypedObject segment)
segment - the BTGSegmentTypedObject createShowItemOutputAction(RestrictionActionCreateContext context)
CmsRestrictionActionDefinition for a given segment
RestrictionActionCreateContext.getCurrentSegment(), also creates a proper restriction base on context
information.context - given context informationCmsRestrictionActionDefinitionTypedObject createBtgSegment(String segmentName, TypedObject catalogVersion)
TypedObject createCmsRestrictionAction(TypedObject segment, TypedObject restrictedCMSItem, boolean inverted)
segment - the segment to which the Restriction Action will be added.restrictedCMSItem - the CMS Item (Page or Component) to which the restriction will be added.inverted - if set to true, users from the segment will not see the CMS Item. Otherwise only users from the segment
can see it.CmsRestrictionActionDefinitionModel, wrapped into a TypedObjectTypedObject getDefaultBtgCatalogVersion()
void setSegmentNameAccordingToFirstRule(TypedObject btgSegment)
Copyright © 2017 SAP SE. All Rights Reserved.