|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.net.CompositeActionPolicy
public class CompositeActionPolicy
CompositeActionPolicy represents the "intersection" of two policies. More formally, a given action is allowed iff both component policies allow it.
| Field Summary | |
|---|---|
protected ActionPolicy |
f_policyPrimaryThe primary ActionPolicy. |
protected ActionPolicy |
f_policySecondaryThe secondary ActionPolicy. |
| Constructor Summary | |
|---|---|
CompositeActionPolicy(ActionPolicy policyPrimary, ActionPolicy policySecondary)Construct a CompositeActionPolicy representing the specified policies. |
|
| Method Summary | |
|---|---|
ActionPolicy |
getPrimaryPolicy()Return the primary policy. |
ActionPolicy |
getSecondaryPolicy()Return the secondary policy. |
void |
init(Service service)Called when the specified service loads and configures this policy. |
boolean |
isAllowed(Service service, Action action)Evaluate if the specified action is currently allowed by this policy. |
| Methods inherited from interface com.tangosol.net.ActionPolicy |
|---|
toString |
| Field Detail |
|---|
protected final ActionPolicy f_policyPrimary
protected final ActionPolicy f_policySecondary
| Constructor Detail |
|---|
public CompositeActionPolicy(ActionPolicy policyPrimary,
ActionPolicy policySecondary)
policyPrimary - the first policy to consultpolicySecondary - the second policy to consult| Method Detail |
|---|
public void init(Service service)
Note: A policy could be applied to multiple services.
init in interface ActionPolicyservice - the service that this policy applies to
public boolean isAllowed(Service service,
Action action)
Note: for forward compatibility, implementations should generally return true for actions that are not recognized.
isAllowed in interface ActionPolicyservice - the service that is performing the actionaction - the action that is being performedpublic ActionPolicy getPrimaryPolicy()
public ActionPolicy getSecondaryPolicy()
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||