Package ome.services.graphs
Class PermissionsPredicate
- java.lang.Object
-
- ome.services.graphs.PermissionsPredicate
-
- All Implemented Interfaces:
GraphPolicyRulePredicate
public class PermissionsPredicate extends java.lang.Object implements GraphPolicyRulePredicate
A predicate that allowsperms=rwr---
and similar to be used in graph policy rule matches.- Since:
- 5.1.3
-
-
Constructor Summary
Constructors Constructor Description PermissionsPredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
boolean
isMatch(GraphPolicy.Details object, java.lang.String parameter)
If this predicate is satisfied by the given object.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)
.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in 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:GraphPolicyRulePredicate
Once this instance is submitted toGraphPolicy.registerPredicate(GraphPolicyRulePredicate)
then this method is called byGraphPolicy.noteDetails(org.hibernate.Session, IObject, String, long)
.- Specified by:
noteDetails
in 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:GraphPolicyRulePredicate
If this predicate is satisfied by the given object.- Specified by:
isMatch
in 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
-
-