Package ome.services.graphs
Interface GraphPolicyRulePredicate
-
- All Known Implementing Classes:
GroupPredicate,PermissionsPredicate
public interface GraphPolicyRulePredicateA plug-in for graph policy rule matches whereby an object may be matched against named values.- Since:
- 5.1.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetName()booleanisMatch(GraphPolicy.Details object, java.lang.String parameter)If this predicate is satisfied by the given object.voidnoteDetails(org.hibernate.Session session, ome.model.IObject object, java.lang.String realClass, long id)Once this instance is submitted toGraphPolicy.registerPredicate(GraphPolicyRulePredicate)then this method is called byGraphPolicy.noteDetails(org.hibernate.Session, IObject, String, long).
-
-
-
Method Detail
-
getName
java.lang.String getName()
- Returns:
- the name of this predicate
-
noteDetails
void noteDetails(org.hibernate.Session session, ome.model.IObject object, java.lang.String realClass, long id)Once this instance is submitted toGraphPolicy.registerPredicate(GraphPolicyRulePredicate)then this method is called byGraphPolicy.noteDetails(org.hibernate.Session, IObject, String, long).- Parameters:
session- the Hibernate session, for obtaining more information about the objectobject- an unloaded model object that may satisfy this predicaterealClass- the real class name of the objectid- the ID of the object
-
isMatch
boolean isMatch(GraphPolicy.Details object, java.lang.String parameter) throws GraphException
If this predicate is satisfied by the given object.- Parameters:
object- a model objectparameter- the parameter that the object must match- Returns:
- if the object satisfies this predicate
- Throws:
GraphException- if the predicate could not be tested
-
-