public class Action extends Object
LegacyOperation on an ObjectType with certain properties, stored in a Map.
The operation and object should be an allowable combination, based on the ObjectType.isSupported(LegacyOperation)
method of the object, which is exposed as the isSupported() method here. The internal #propertiesMatch(Map)
and #valueMatches(String, String) methods are used to determine wildcarded matching of properties, with
the empty string or "*" matching all values, and "*" at the end of a rule value indicating prefix matching.
The matches(Action) method is intended to be used when determining precedence of rules, and
equals(Object) and hashCode() are intended for use in maps. This is due to the wildcard matching
described above.
| Constructor and Description |
|---|
Action(LegacyOperation operation) |
Action(LegacyOperation operation,
ObjectType object) |
Action(LegacyOperation operation,
ObjectType object,
ObjectProperties properties) |
Action(LegacyOperation operation,
ObjectType object,
String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ObjectType |
getObjectType() |
LegacyOperation |
getOperation() |
ObjectProperties |
getProperties() |
int |
hashCode() |
boolean |
matches(Action a) |
String |
toString() |
public Action(LegacyOperation operation)
public Action(LegacyOperation operation, ObjectType object, String name)
public Action(LegacyOperation operation, ObjectType object)
public Action(LegacyOperation operation, ObjectType object, ObjectProperties properties)
public LegacyOperation getOperation()
public ObjectType getObjectType()
public ObjectProperties getProperties()
public boolean matches(Action a)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.