public class DefaultRestrictionActionCreateContext extends Object implements RestrictionActionCreateContext
RestrictionActionCreateContext.| Constructor and Description |
|---|
DefaultRestrictionActionCreateContext() |
DefaultRestrictionActionCreateContext(boolean attachedToComponent) |
| Modifier and Type | Method and Description |
|---|---|
TypedObject |
getAltComponent()
Returns current component reference that is attached with this context.
|
Object |
getAttribute(String code)
This method allows us to retrieve some additional (custom) attributes.
|
Map<String,Object> |
getAttributeMap() |
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 key)
Remove specified attribute.
|
void |
removeAttributes()
Removes all stored attributes.
|
void |
setAddSegmentRestrToPage(boolean addSegmentRestrToPage) |
void |
setAltComponent(TypedObject altComponent) |
void |
setAttachedToComponent(boolean attachedToComponent) |
void |
setAttribute(String code,
Object value)
Sets specified additional value.
|
void |
setComponentReference(TypedObject componentReference) |
void |
setCurrentSegment(TypedObject currentSegment) |
void |
setInverted(boolean inverted) |
void |
setPageReference(TypedObject pageReference) |
void |
setShowAltComponent(boolean showAltComponent) |
void |
setUseExistingRestrictions(boolean useExistingRestrictions) |
void |
setVisibleForFulfilled(boolean visibleForFulfilled) |
public DefaultRestrictionActionCreateContext(boolean attachedToComponent)
public DefaultRestrictionActionCreateContext()
public void setAttachedToComponent(boolean attachedToComponent)
public void setComponentReference(TypedObject componentReference)
public void setPageReference(TypedObject pageReference)
public void setVisibleForFulfilled(boolean visibleForFulfilled)
public void setInverted(boolean inverted)
public void setAltComponent(TypedObject altComponent)
public void setAddSegmentRestrToPage(boolean addSegmentRestrToPage)
public void setUseExistingRestrictions(boolean useExistingRestrictions)
public void setCurrentSegment(TypedObject currentSegment)
public Object getAttribute(String code)
RestrictionActionCreateContextgetAttribute in interface RestrictionActionCreateContextcode - additional attribute qualifierpublic Map<String,Object> getAttributes()
RestrictionActionCreateContextgetAttributes in interface RestrictionActionCreateContextpublic boolean isAttachedToComponent()
RestrictionActionCreateContextisAttachedToComponent in interface RestrictionActionCreateContextpublic void removeAttribute(String key)
RestrictionActionCreateContextremoveAttribute in interface RestrictionActionCreateContextkey - given attribute qualifierpublic void removeAttributes()
RestrictionActionCreateContextremoveAttributes in interface RestrictionActionCreateContextpublic void setAttribute(String code, Object value)
RestrictionActionCreateContextsetAttribute in interface RestrictionActionCreateContextcode - additional attribute qualifiervalue - additional valuepublic TypedObject getComponentReference()
RestrictionActionCreateContextgetComponentReference in interface RestrictionActionCreateContextpublic boolean isVisibleForFulfilled()
RestrictionActionCreateContextisVisibleForFulfilled in interface RestrictionActionCreateContextpublic boolean isInverted()
RestrictionActionCreateContextisInverted in interface RestrictionActionCreateContextpublic TypedObject getAltComponent()
RestrictionActionCreateContextgetAltComponent in interface RestrictionActionCreateContextpublic TypedObject getPageReference()
RestrictionActionCreateContextgetPageReference in interface RestrictionActionCreateContextpublic boolean isAddSegmentRestrToPage()
RestrictionActionCreateContextisAddSegmentRestrToPage in interface RestrictionActionCreateContextpublic boolean isUseExistingRestrictions()
RestrictionActionCreateContextisUseExistingRestrictions in interface RestrictionActionCreateContextpublic TypedObject getCurrentSegment()
RestrictionActionCreateContextgetCurrentSegment in interface RestrictionActionCreateContextpublic void setShowAltComponent(boolean showAltComponent)
public boolean isShowAltComponent()
isShowAltComponent in interface RestrictionActionCreateContextCopyright © 2017 SAP SE. All Rights Reserved.