public class GroupPredicate extends Object implements GraphPolicyRulePredicate
group=system
and similar to be used in graph policy rule matches.Constructor and Description |
---|
GroupPredicate(Roles securityRoles)
Construct a new group predicate.
|
Modifier and Type | Method and Description |
---|---|
String |
getName() |
boolean |
isMatch(GraphPolicy.Details object,
String parameter)
If this predicate is satisfied by the given object.
|
void |
noteDetails(org.hibernate.Session session,
IObject object,
String realClass,
long id)
Once this instance is submitted to
GraphPolicy.registerPredicate(GraphPolicyRulePredicate) then this method is called by
GraphPolicy.noteDetails(org.hibernate.Session, IObject, String, long) . |
public GroupPredicate(Roles securityRoles)
securityRoles
- the security rolespublic String getName()
getName
in interface GraphPolicyRulePredicate
public void noteDetails(org.hibernate.Session session, IObject object, String realClass, long id)
GraphPolicyRulePredicate
GraphPolicy.registerPredicate(GraphPolicyRulePredicate)
then this method is called by
GraphPolicy.noteDetails(org.hibernate.Session, IObject, String, long)
.noteDetails
in interface GraphPolicyRulePredicate
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 objectpublic boolean isMatch(GraphPolicy.Details object, String parameter) throws GraphException
GraphPolicyRulePredicate
isMatch
in interface GraphPolicyRulePredicate
object
- a model objectparameter
- the parameter that the object must matchGraphException
- if the predicate could not be tested
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.