Interface BasePermission<DomainObjectType>
-
- Type Parameters:
DomainObjectType- The class to be evaluated by this permission
- All Known Implementing Classes:
ManageLocalProjectSettingsPermission,ModifyProjectPermission,ProjectOwnerPermission,ReadAnalysisPermission,ReadAnalysisSubmissionPermission,ReadExportSubmissionPermission,ReadMetadataEntryPermission,ReadMetadataTemplatePermission,ReadProjectMetadataResponsePermission,ReadProjectPermission,ReadReferenceFilePermission,ReadSamplePermission,ReadSequencingObjectPermission,ReadSequencingRunPermission,RepositoryBackedPermission,UpdateAnalysisSubmissionPermission,UpdateMetadataTemplatePermission,UpdateReferenceFilePermission,UpdateSamplePermission,UpdateSamplesFromAnalysisSubmissionPermission,UpdateSequencingRunPermission,UpdateUserGroupPermission,UpdateUserPermission
public interface BasePermission<DomainObjectType>Root interface for any permissions being built within IRIDA. This interface defines the methods required for evaluating a permission inIridaPermissionEvaluator.- See Also:
IridaPermissionEvaluator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetPermissionProvided()Get the implementation-specific permission provided.booleanisAllowed(org.springframework.security.core.Authentication authentication, java.lang.Object targetDomainObject)Is the authenticated user allowed to perform some action on the target domain object?
-
-
-
Method Detail
-
getPermissionProvided
java.lang.String getPermissionProvided()
Get the implementation-specific permission provided.- Returns:
- the permission provided by the permission class.
-
isAllowed
boolean isAllowed(org.springframework.security.core.Authentication authentication, java.lang.Object targetDomainObject)Is the authenticated user allowed to perform some action on the target domain object?- Parameters:
authentication- the authenticated user.targetDomainObject- the object the user is requesting to perform an action on.- Returns:
- true if the action is allowed, false otherwise.
-
-