public interface RestrictionActionCreateContext
CmsRestrictionActionDefinition.
Note: DefaultRestrictionActionCreateContext.| Modifier and Type | Method and Description |
|---|---|
TypedObject |
getAltComponent()
Returns current component reference that is attached with this context.
|
Object |
getAttribute(String attribute)
This method allows us to retrieve some additional (custom) attributes.
|
Map<String,Object> |
getAttributes()
Gets all additional attributes.
|
TypedObject |
getComponentReference()
Returns alternative component reference that is attached with this context.
|
TypedObject |
getCurrentSegment()
Returns current segment that is attached with this context.
|
TypedObject |
getPageReference()
Returns current page reference that is attached with this context.
|
boolean |
isAddSegmentRestrToPage()
Checks whether segment restriction should be assigned to existing page.
|
boolean |
isAttachedToComponent()
Determines whether following informations are valid for component.
|
boolean |
isInverted()
Checks whether we should invert a restriction.
|
boolean |
isShowAltComponent() |
boolean |
isUseExistingRestrictions()
Checks whether we can use existing restrictions for personalized page.
|
boolean |
isVisibleForFulfilled()
Checks whether attached page or component should be visible for user that fulfilled current segment.
|
void |
removeAttribute(String attribute)
Remove specified attribute.
|
void |
removeAttributes()
Removes all stored attributes.
|
void |
setAttribute(String attribute,
Object value)
Sets specified additional value.
|
boolean isAttachedToComponent()
Object getAttribute(String attribute)
attribute - additional attribute qualifiervoid removeAttributes()
void removeAttribute(String attribute)
attribute - given attribute qualifiervoid setAttribute(String attribute, Object value)
attribute - additional attribute qualifiervalue - additional valueTypedObject getCurrentSegment()
boolean isUseExistingRestrictions()
boolean isAddSegmentRestrToPage()
TypedObject getPageReference()
TypedObject getAltComponent()
boolean isInverted()
boolean isVisibleForFulfilled()
TypedObject getComponentReference()
boolean isShowAltComponent()
Copyright © 2017 SAP SE. All Rights Reserved.