Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

oracle.apps.fnd.applcore.oaext.as
Class ApplcoreBusinessActivity

java.lang.Object
  extended by oracle.apps.fnd.applcore.oaext.as.BusinessActivity
      extended by oracle.apps.fnd.applcore.oaext.as.ApplcoreBusinessActivity
Direct Known Subclasses:
CustomizationPageActivity, FlexSandboxActivity, SandboxDataSecurityActivity

public abstract class ApplcoreBusinessActivity
extends BusinessActivity

This class encapsulates the details needed for publishing an Activity for model changes whose activity could occur within the context of a sandbox.


Field Summary
protected  boolean _isSandboxable
          whether the activity can occur within a sandbox.
protected  java.lang.String _sandboxName
          the name of the sandbox to use for the activity.
protected static java.lang.String SANDBOX_SUFFIX
          The suffix for the activity type name if there is a sandbox active.
 
Fields inherited from class oracle.apps.fnd.applcore.oaext.as.BusinessActivity
CUST_ATTR_DISP_NAME, CUST_ATTR_OBJECT_ID, CUST_ATTR_SERVICE_REF_ID, OBJECT_NAME_LIST_DELIMITER, WC_ACTIVITY_ACTOR_GUID_1, WC_ACTIVITY_ACTOR_GUID_2, WC_ACTIVITY_SERVICE_ID, WC_ADDITIONAL_ACTIVITY_SERVICEID1, WC_ADDITIONAL_ACTIVITY_SERVICEID2, WC_OBJECT_TYPE_NAMES
 
Constructor Summary
ApplcoreBusinessActivity(java.lang.String name)
          Constructor for a non-sandboxable business activity.
ApplcoreBusinessActivity(java.lang.String name, boolean isSandboxable)
          Constructor for a business activity.
 
Method Summary
protected  void appendSandboxPayload(java.util.Map payload)
          Appends the sandbox name to the payload if sandboxing is enabled and there is a sandbox.
 java.lang.String[] getActors()
          Array of GUIDs for Actors of the Activity.
 java.lang.String[] getAdditionalServiceIds()
          This api will return additional service ids
 java.lang.String getName()
          Name of the ActivityType defined in service-definition that corresponds to serviceId returned by getServiceId().
static java.lang.String getSessionSandboxName()
          Retrieves the name of the sandbox that the activity is for.
protected  boolean isSandboxActive()
          Determines whether the activity supports sandboxing and whether a sandbox exists.
 
Methods inherited from class oracle.apps.fnd.applcore.oaext.as.BusinessActivity
getObjectTypeNames, getPayload, getServiceId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SANDBOX_SUFFIX

protected static final java.lang.String SANDBOX_SUFFIX
The suffix for the activity type name if there is a sandbox active.

See Also:
Constant Field Values

_isSandboxable

protected boolean _isSandboxable
whether the activity can occur within a sandbox.


_sandboxName

protected java.lang.String _sandboxName
the name of the sandbox to use for the activity.

Constructor Detail

ApplcoreBusinessActivity

public ApplcoreBusinessActivity(java.lang.String name)
Constructor for a non-sandboxable business activity.

Parameters:
name - of the ActivityType.

ApplcoreBusinessActivity

public ApplcoreBusinessActivity(java.lang.String name,
                                boolean isSandboxable)
Constructor for a business activity.

Parameters:
name - of the ActivityType
isSandboxable - whether the activity can live within a sandbox.
Method Detail

getName

public java.lang.String getName()
Name of the ActivityType defined in service-definition that corresponds to serviceId returned by getServiceId(). If the activity is sandboxable and a sandox is active (getSessionSandboxName() != null) then the activity type name will be suffixed with "Sandbox"

Overrides:
getName in class BusinessActivity
Returns:
Name of the ActivityType

getActors

public java.lang.String[] getActors()
Array of GUIDs for Actors of the Activity. This method will return the actor that is logged into the ADF Context.

Specified by:
getActors in class BusinessActivity
Returns:
array of guids for the Actors.

getAdditionalServiceIds

public java.lang.String[] getAdditionalServiceIds()
This api will return additional service ids

Overrides:
getAdditionalServiceIds in class BusinessActivity
Returns:
Array of ServiceIds

isSandboxActive

protected boolean isSandboxActive()
Determines whether the activity supports sandboxing and whether a sandbox exists.

Returns:
true if the sandbox is active.

appendSandboxPayload

protected void appendSandboxPayload(java.util.Map payload)
Appends the sandbox name to the payload if sandboxing is enabled and there is a sandbox.

Parameters:
payload - the payload parameters for the activity.

getSessionSandboxName

public static java.lang.String getSessionSandboxName()
Retrieves the name of the sandbox that the activity is for.

Returns:
sandbox name

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.