public interface PageFlow extends UIInfo
Modifier and Type | Method and Description |
---|---|
boolean |
addActivity(java.lang.String activityId, java.lang.String type, Activity metadata)
Adds an activity definition to this page flow.
|
boolean |
addControlFlowRule(ControlFlowRule rule)
Adds a new control flow rule to this page flow.
|
boolean |
addManagedBean(ManagedBean bean)
Adds a new managed bean definition to the task flow.
|
java.util.Map<ActivityId,Activity> |
getActivities()
Returns a
Map of page flow activities keyed by activity ID. |
ControlFlowRule |
getControlFlowRule(java.lang.String fromActivityId)
Returns a control flow rule corresonding to the from activity in this page flow.
|
java.util.Map<ActivityId,ControlFlowRule> |
getControlFlowRules()
Get the control flow rules for the flow.
|
ActivityId |
getExceptionHandlerId()
Get the activity ID of a exception handler activity, if one is specified in this PageFlow.
|
java.util.Map<java.lang.String,ManagedBean> |
getManagedBeans()
Get the managed bean definitions for the flow.
|
Security |
getSecurity()
Returns the security settings for this task flow.
|
boolean |
removeActivity(java.lang.String activityId, Activity metadata)
Removes an activity definition matching activity id from this resource.
|
boolean |
removeControlFlowRule(ControlFlowRule rule)
Removes control flow rule from this page flow.
|
boolean |
removeManagedBean(ManagedBean bean)
Removes specified managed bean from the task flow.
|
boolean |
setExceptionHandlerId(java.lang.String id)
Adds or removes exception handler activity id from this page flow.
|
getDescription, getDisplayName, getLargeIcon, getSmallIcon, getUIInfo, setDescription, setDisplayName, setLargeIcon, setSmallIcon
getParsingContext, validate
getIdAttribute, setIdAttribute
getNode
java.util.Map<ActivityId,ControlFlowRule> getControlFlowRules()
Map
of control flow rules is keyed by the fully qualified ID of the rule's from activity.java.util.Map<ActivityId,Activity> getActivities()
Map
of page flow activities keyed by activity ID.java.util.Map<java.lang.String,ManagedBean> getManagedBeans()
Map
of managed beans is keyed by managed bean name.ActivityId getExceptionHandlerId()
Security getSecurity()
Security
boolean addActivity(java.lang.String activityId, java.lang.String type, Activity metadata)
activityId
- activity id for a new activity, for example, "view1"type
- activity type, for example, ActivityType.VIEWmetadata
- the metadata for this activity. Activities can be created by: AdfcElementFactory
.ActivityType
boolean removeActivity(java.lang.String activityId, Activity metadata)
activityId
- activity id, for example, "view1".metadata
- the metadata for the activity to remove.ControlFlowRule getControlFlowRule(java.lang.String fromActivityId)
fromActivityId
- the matching "from-activity-id". For the wildcard control flow rule, use "*".boolean addControlFlowRule(ControlFlowRule rule)
AdfcElementFactory.createControlFlowRule(java.util.List<oracle.adf.controller.metadata.model.ControlFlowCase>)
.
If the metadata resource was obtained with integral validation skipped, the rule will be added to the pageflow regardless of whether the source activity exists in the page flow.
rule
- the metadata representation of the control flow ruleboolean removeControlFlowRule(ControlFlowRule rule)
rule
- mutable control flow rule to removeboolean addManagedBean(ManagedBean bean)
bean
- the new bean to be addedboolean removeManagedBean(ManagedBean bean)
bean
- the bean to be removedboolean setExceptionHandlerId(java.lang.String id)
id
- the id of the exception handler activity, or null, if exception handler should be removed