public interface ArtifactExecutionFacade
For information about artifacts as they are being executed.
Type Params | Return Type | Name and description |
---|---|---|
|
public boolean |
disableAuthz() Disable authorization checks for the current ExecutionContext only. |
|
public boolean |
disableEntityEca() Disable Entity Facade ECA rules (for this thread/ExecutionContext only, does not affect other things happening in the system). |
|
public boolean |
disableTarpit() |
|
public void |
enableAuthz() Enable authorization after a disableAuthz() call. |
|
public void |
enableEntityEca() Disable Entity Facade ECA rules (for this thread/ExecutionContext only, does not affect other things happening in the system). |
|
public void |
enableTarpit() |
|
public java.util.List<ArtifactExecutionInfo> |
getHistory() |
|
public java.util.Deque<ArtifactExecutionInfo> |
getStack() Gets a stack/deque/list of objects representing artifacts that have been executed to get to the current artifact. |
|
public java.util.ArrayList<ArtifactExecutionInfo> |
getStackArray() Like getStack() but as an ArrayList for more frequent use, less memory overhead, and faster to iterate by index; NOTE that this is cached and updated on push() and pop(), do not modify or other references to it will have incorrect data |
|
public ArtifactExecutionInfo |
peek() Gets information about the current artifact being executed, and about authentication and authorization for that artifact. |
|
public ArtifactExecutionInfo |
pop(ArtifactExecutionInfo aei) Pop from the artifact stack and verify it is the same artifact name and type. |
|
public java.lang.String |
printHistory() |
|
public void |
push(ArtifactExecutionInfo aei, boolean requiresAuthz) Push onto the artifact stack. |
|
public ArtifactExecutionInfo |
push(java.lang.String name, ArtifactType typeEnum, AuthzAction actionEnum, boolean requiresAuthz) |
|
public void |
setAnonymousAuthorizedAll() |
|
public void |
setAnonymousAuthorizedView() |
Disable authorization checks for the current ExecutionContext only. This should be used when the system automatically does something (possible based on a user action) that the user would not generally have permission to do themselves.
Disable Entity Facade ECA rules (for this thread/ExecutionContext only, does not affect other things happening in the system).
Enable authorization after a disableAuthz() call. Not that this should be done in a finally block with the code following the disableAuthz() in the corresponding try block. If this is not in a finally block an exception may result in authorizations being disabled for the rest of the scope of the ExecutionContext (a potential security whole).
Disable Entity Facade ECA rules (for this thread/ExecutionContext only, does not affect other things happening in the system).
Gets a stack/deque/list of objects representing artifacts that have been executed to get to the current artifact. The bottom artifact in the stack will generally be a screen or a service. If a service is run locally this will trace back to the screen or service that called it, and if a service was called remotely it will be the bottom of the stack.
Like getStack() but as an ArrayList for more frequent use, less memory overhead, and faster to iterate by index; NOTE that this is cached and updated on push() and pop(), do not modify or other references to it will have incorrect data
Gets information about the current artifact being executed, and about authentication and authorization for that artifact.
Pop from the artifact stack and verify it is the same artifact name and type. This is generally called internally by the framework and does not need to be used in application code.
Push onto the artifact stack. This is generally called internally by the framework and does not need to be used in application code.