Interface ManagedPermissionSchemeEditingService
- All Known Implementing Classes:
ManagedPermissionSchemeEditingServiceImpl
public interface ManagedPermissionSchemeEditingService
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddNewSecurityTypes(Scheme schemeObject, PermissionsInputBean inputBean) Adds a set of security types values to a set of permissions.validateAddPermissions(ApplicationUser loggedInUser, PermissionsInputBean inputBean) Validates whether the security types can be added to the permissions.
-
Method Details
-
validateAddPermissions
ErrorCollection validateAddPermissions(ApplicationUser loggedInUser, PermissionsInputBean inputBean) Validates whether the security types can be added to the permissions.- Parameters:
loggedInUser- current logged-in userinputBean- the permission instructions under validation- Returns:
- an error collection filled with errors messages when validation fails else empty
-
addNewSecurityTypes
Adds a set of security types values to a set of permissions. This method does not perform any validation seevalidateAddPermissions(ApplicationUser, PermissionsInputBean)- Parameters:
schemeObject- the scheme to add toinputBean- the input bean of changes- Returns:
- true when new entry has been added else false
- Throws:
DataAccessException- unexpected error that occurred while adding entry to data store
-