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:
-
DefaultPlatformPermissionFacadeStrategyPermissionFacadeStrategy
-
Method Summary
-
Method Details
-
canModify
- Parameters:
instance- instance to be checked- Returns:
- true if the instance can be modified
-
canDelete
- Parameters:
instance- instance to be checked- Returns:
- true if the instance can be deleted
-
isApplicableTo
- Parameters:
instance- instance to be checked- Returns:
- true if the instance can be checked by the strategy
-