Interface InstancePermissionAdvisor<T>
-
- Type Parameters:
T- desired type object to handle. Implementations of InstancePermissionAdvisor#isApplicableTo(java.lang.Object) should return true only if type T is assignable from the instance's type.
- All Known Implementing Classes:
LanguageInstancePermissionAdvisor,LockedItemPermissionAdvisor,ViewResultItemPermissionAdvisor
public interface InstancePermissionAdvisor<T>Interface for providing custom strategies for instance permissions. Used by DefaultPlatformPermissionFacadeStrategy and possible to use by any other implementation of PermissionFacadeStrategy. Should be used carefully while too many implementations may be harmful to performance.- See Also:
DefaultPlatformPermissionFacadeStrategy,PermissionFacadeStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanDelete(T instance)booleancanModify(T instance)booleanisApplicableTo(java.lang.Object instance)
-
-
-
Method Detail
-
canModify
boolean canModify(T instance)
- Parameters:
instance- instance to be checked- Returns:
- true if the instance can be modified
-
canDelete
boolean canDelete(T instance)
- Parameters:
instance- instance to be checked- Returns:
- true if the instance can be deleted
-
isApplicableTo
boolean isApplicableTo(java.lang.Object instance)
- Parameters:
instance- instance to be checked- Returns:
- true if the instance can be checked by the strategy
-
-