Class EntityPath<E extends EntityReference>
java.lang.Object
ch.tocco.nice2.persist.security.api.provider.EntityPath<E>
Represents a certain field or relation of a specific entity
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends EntityReference>
EntityPath<T> static <T extends EntityReference>
EntityPath<T> If checkPathOnly is set to true, it is assumed that the access to the entity is granted and only the rules regarding the field itself are evaluated.boolean
getPath()
int
hashCode()
boolean
toString()
-
Method Details
-
create
-
create
public static <T extends EntityReference> EntityPath<T> create(T entity, String path, boolean checkPathOnly) If checkPathOnly is set to true, it is assumed that the access to the entity is granted and only the rules regarding the field itself are evaluated. This can be useful for performance reasons when entity permission is already checked to avoid entity rules being evaluated multiple times. -
getEntity
-
getPath
-
isCheckPathOnly
public boolean isCheckPathOnly() -
hashCode
public int hashCode() -
equals
-
toString
-