public class AmetysPredicateUtils extends PredicateUtils
| Modifier and Type | Class and Description |
|---|---|
private static class |
AmetysPredicateUtils.AllowedForLivePredicate |
private static class |
AmetysPredicateUtils.IgnoreProtectedPredicate |
private static class |
AmetysPredicateUtils.NonVersionnedPredicate |
| Modifier and Type | Field and Description |
|---|---|
private static AmetysPredicateUtils.AllowedForLivePredicate |
_allowedLivePredicate |
| Constructor and Description |
|---|
AmetysPredicateUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Predicate |
ametysAttributePredicate()
Tests if the node or property is a Ametys attribute, ie.
|
static Predicate |
ignoreProtectedProperties(Predicate predicate)
Tests if the property is not a protected one (e.g.
|
static Predicate |
isAllowedForLiveContent()
Tests if the node or property is allowed in the live workspace
|
static Predicate |
isNonVersionned(Node node)
Tests if the node or property is allowed in the live workspace
|
static Predicate |
nodeNamePredicate(String nodeName)
Tests if the node has the following name.
|
static Predicate |
nodeTypePredicate(String nodeTypeName)
Tests if the node is of the given node type.
|
static Predicate |
propertyNamePredicate(String propertyName)
Tests if the property has the following name.
|
static Predicate |
propertyNamesPredicate(String... propertyNames)
Tests if the property has a given name in a list.
|
allPredicate, allPredicate, andPredicate, anyPredicate, anyPredicate, asPredicate, eitherPredicate, equalPredicate, exceptionPredicate, falsePredicate, identityPredicate, instanceofPredicate, invokerPredicate, invokerPredicate, neitherPredicate, nonePredicate, nonePredicate, notNullPredicate, notPredicate, nullIsExceptionPredicate, nullIsFalsePredicate, nullIsTruePredicate, nullPredicate, onePredicate, onePredicate, orPredicate, transformedPredicate, truePredicate, uniquePredicateprivate static AmetysPredicateUtils.AllowedForLivePredicate _allowedLivePredicate
public AmetysPredicateUtils()
public static Predicate propertyNamePredicate(String propertyName)
propertyName - the property name.true if the property has the given name,
false otherwise.public static Predicate propertyNamesPredicate(String... propertyNames)
propertyNames - one or several property names.true if the property has on of the given names,
false otherwise.public static Predicate ignoreProtectedProperties(Predicate predicate)
predicate - the additional predicate to evaluate.true if the property has the given name,
false otherwise.public static Predicate nodeNamePredicate(String nodeName)
nodeName - the node name.true if the node has the given name,
false otherwise.public static Predicate ametysAttributePredicate()
true if the name starts with 'ametys:'
false otherwise.public static Predicate nodeTypePredicate(String nodeTypeName)
nodeTypeName - the node type name.true if the node has the given node type,
false otherwise.public static Predicate isAllowedForLiveContent()
true if the property or node is allowed,
false otherwise.public static Predicate isNonVersionned(Node node)
node - The parent node.true if the property or node is allowed,
false otherwise.