public interface ApplicationTenancyEvaluator
handles(Class)| Modifier and Type | Method and Description |
|---|---|
String |
disables(Object domainObject,
ApplicationUser applicationUser) |
boolean |
handles(Class<?> cls)
Whether this evaluator can determine the tenancy of the specified domain entity (such as ToDoItem)
being interacted with (the "what").
|
String |
hides(Object domainObject,
ApplicationUser applicationUser) |
boolean handles(Class<?> cls)
This method is also called to determine if the evaluator is also able to determine the tenancy of the
security module's own ApplicationUser, ie the "who" is
doing the interacting. If the evaluator does not handle the class, then the fallback behaviour is
to invoke HasAtPath.getAtPath()} on the ApplicationUser and use the
path from that.
String hides(Object domainObject, ApplicationUser applicationUser)
String disables(Object domainObject, ApplicationUser applicationUser)
Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.