Package ome.services.graphs
Class GroupPredicate
- java.lang.Object
-
- ome.services.graphs.GroupPredicate
-
- All Implemented Interfaces:
GraphPolicyRulePredicate
public class GroupPredicate extends java.lang.Object implements GraphPolicyRulePredicate
A predicate that allowsgroup=systemand similar to be used in graph policy rule matches.- Since:
- 5.1.3
-
-
Constructor Summary
Constructors Constructor Description GroupPredicate(ome.system.Roles securityRoles)Construct a new group predicate.
-
Method Summary
All Methods Instance Methods Concrete 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
public java.lang.String getName()
- Specified by:
getNamein interfaceGraphPolicyRulePredicate- Returns:
- the name of this predicate
-
noteDetails
public void noteDetails(org.hibernate.Session session, ome.model.IObject object, java.lang.String realClass, long id)Description copied from interface:GraphPolicyRulePredicateOnce this instance is submitted toGraphPolicy.registerPredicate(GraphPolicyRulePredicate)then this method is called byGraphPolicy.noteDetails(org.hibernate.Session, IObject, String, long).- Specified by:
noteDetailsin interfaceGraphPolicyRulePredicate- 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
public boolean isMatch(GraphPolicy.Details object, java.lang.String parameter) throws GraphException
Description copied from interface:GraphPolicyRulePredicateIf this predicate is satisfied by the given object.- Specified by:
isMatchin interfaceGraphPolicyRulePredicate- 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
-
-