Access to add and change pages is restricted. See: https://cwiki.apache.org/confluence/display/OFBIZ/Wiki+access

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Execution Context Implementation Details

As was mentioned in the main design document, the Execution Context has two roles: it is a container for frequently used objects, and it keeps track of the execution path.

The ExecutionContext interface:

public interface ExecutionContext {

    // ----- Object Container Methods ----- //

    public void clearUserData();

    public String getCurrencyUom();

    public Delegator getDelegator();

    public LocalDispatcher getDispatcher();

    public Locale getLocale();

    public Map<String, ? extends Object> getParameters();

    public Object getProperty(String key);

    public AuthorizationManager getSecurity();

    public TimeZone getTimeZone();

    public GenericValue getUserLogin();

    public void initializeContext(Map<String, ? extends Object> params);

    public void setCurrencyUom(String currencyUom);

    public void setDelegator(Delegator delegator);

    public void setDispatcher(LocalDispatcher dispatcher);

    public void setLocale(Locale locale);

    public Object setProperty(String key, Object value);

    public void setSecurity(AuthorizationManager security);

    public void setTimeZone(TimeZone timeZone);

    public void setUserLogin(GenericValue userLogin);

    // ----- Execution Path Methods ----- //

    public void endRunUnprotected();

    public AccessController getAccessController();

    public ArtifactPath getExecutionPath();

    public String getExecutionPathAsString();

    public String[] getExecutionPathAsArray();

    public void popExecutionArtifact();

    public void pushExecutionArtifact(ExecutionArtifact artifact);

    public void reset();

    public void runUnprotected();

}
  • No labels