Package com.soffid.iam.base.service
Interface AuthorizationService
public interface AuthorizationService
Service AuthorizationService
Manages find-grained, low-level authorization to Soffid objects
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreate(AuthorizationRole autoritzacio) Operation create Grants a low-level authorizations to rolevoiddelete(AuthorizationRole authorization) Operation delete Revokes a low-level authorization to a rolefindAuthorizations(String ambit, String descripcio, String codi) Operation findAuthorizations Get the complete list of low-level authorizations.getAuthorizationInfo(String autoritzacio) Operation getAuthorizationInfo Get the detail about a low-level authorization.getAuthorizationRoles(String authorization) Operation getAuthorizationRoles Get the roles granted with an specific low-level authorizationOperation getCurrentPrincipal Returns current security principalOperation getDescriptionUserAuthorizations Gets the description of low-level authorizations to current usergetDescriptionUserAuthorizations(String userName) Operation getDescriptionUserAuthorizations Get the description of low-level authorizations granted to a userOperation getScopeList Get the list of scopes that can be applied to a low-level authorizationgetUserAuthorization(String codiAutoritzacio) Operation getUserAuthorization Get the roles granted with a low-level authorization.getUserAuthorization(String codiAutoritzacio, String codiUsuari) Operation getUserAuthorization Get the low-level authorizations of a specific type granted to a userOperation getUserAuthorizations Get low level authorizations for current usergetUserAuthorizations(String userName) Operation getUserAuthorizations Get the low-level authorizations granted to a userString[]Operation getUserAuthorizationsString Get the low-level authorizations granted to current userString[]getUserAuthorizationsString(String codiUsuari) Operation getUserAuthorizationsString Get the low-level authorizations granted to a userString[]getUserAuthorizationsString(String userName, Map<String, String> loginProperties) Operation getUserAuthorizationsString Gets the autohrization given some login process propertiesString[]getUserAuthorizationString(String codiAutoritzacio) Operation getUserAuthorizationString Gets the low-level authorizations granted to a userString[]getUserAuthorizationString(String athorizationName, String userName) Operation getUserAuthorizationString Gets the low-level authorizations granted to a user of an specific typeString[]getUserGroupAuthorizationString(String userName, String holderGroup) Operation getUserGroupAuthorizationString Gets the low-level authorizations granted to a user as a member of a business groupbooleanhasPermission(String action, Object object) Operation hasPermission Returns true if the user has the selected low-level permission on the selected objects
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
hasPermission
Operation hasPermission Returns true if the user has the selected low-level permission on the selected objects- Parameters:
action-object-- Returns:
- Throws:
InternalErrorException
-
create
AuthorizationRole create(AuthorizationRole autoritzacio) throws InternalErrorException, InternalErrorException Operation create Grants a low-level authorizations to role- Parameters:
autoritzacio-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getCurrentPrincipal
Operation getCurrentPrincipal Returns current security principal- Returns:
- Throws:
InternalErrorException
-
getUserAuthorizationString
String[] getUserAuthorizationString(String codiAutoritzacio) throws InternalErrorException, InternalErrorException Operation getUserAuthorizationString Gets the low-level authorizations granted to a user- Parameters:
codiAutoritzacio-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getUserAuthorizationString
String[] getUserAuthorizationString(String athorizationName, String userName) throws InternalErrorException, InternalErrorException Operation getUserAuthorizationString Gets the low-level authorizations granted to a user of an specific type- Parameters:
athorizationName-userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getUserAuthorizationsString
Operation getUserAuthorizationsString Get the low-level authorizations granted to current user- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getUserAuthorizationsString
String[] getUserAuthorizationsString(String codiUsuari) throws InternalErrorException, InternalErrorException Operation getUserAuthorizationsString Get the low-level authorizations granted to a user- Parameters:
codiUsuari-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getUserAuthorizationsString
String[] getUserAuthorizationsString(String userName, Map<String, String> loginProperties) throws InternalErrorException, InternalErrorExceptionOperation getUserAuthorizationsString Gets the autohrization given some login process properties- Parameters:
userName-loginProperties-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getUserGroupAuthorizationString
String[] getUserGroupAuthorizationString(String userName, String holderGroup) throws InternalErrorException, InternalErrorException Operation getUserGroupAuthorizationString Gets the low-level authorizations granted to a user as a member of a business group- Parameters:
userName-holderGroup-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findAuthorizations
Collection findAuthorizations(String ambit, String descripcio, String codi) throws InternalErrorException, InternalErrorException Operation findAuthorizations Get the complete list of low-level authorizations.- Parameters:
ambit-descripcio-codi-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getDescriptionUserAuthorizations
Collection<AuthorizationRole> getDescriptionUserAuthorizations() throws InternalErrorException, InternalErrorExceptionOperation getDescriptionUserAuthorizations Gets the description of low-level authorizations to current user- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getDescriptionUserAuthorizations
Collection<AuthorizationRole> getDescriptionUserAuthorizations(String userName) throws InternalErrorException, InternalErrorException Operation getDescriptionUserAuthorizations Get the description of low-level authorizations granted to a user- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getAuthorizationInfo
Collection<Object> getAuthorizationInfo(String autoritzacio) throws InternalErrorException, InternalErrorException Operation getAuthorizationInfo Get the detail about a low-level authorization.- Parameters:
autoritzacio-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getAuthorizationRoles
Collection<AuthorizationRole> getAuthorizationRoles(String authorization) throws InternalErrorException, InternalErrorException Operation getAuthorizationRoles Get the roles granted with an specific low-level authorization- Parameters:
authorization-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getUserAuthorization
Collection<AuthorizationRole> getUserAuthorization(String codiAutoritzacio) throws InternalErrorException, InternalErrorException Operation getUserAuthorization Get the roles granted with a low-level authorization.- Parameters:
codiAutoritzacio-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getUserAuthorization
Collection<AuthorizationRole> getUserAuthorization(String codiAutoritzacio, String codiUsuari) throws InternalErrorException, InternalErrorException Operation getUserAuthorization Get the low-level authorizations of a specific type granted to a user- Parameters:
codiAutoritzacio-codiUsuari-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getUserAuthorizations
Collection<AuthorizationRole> getUserAuthorizations() throws InternalErrorException, InternalErrorExceptionOperation getUserAuthorizations Get low level authorizations for current user- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getUserAuthorizations
Collection getUserAuthorizations(String userName) throws InternalErrorException, InternalErrorException Operation getUserAuthorizations Get the low-level authorizations granted to a user- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getScopeList
Operation getScopeList Get the list of scopes that can be applied to a low-level authorization- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
delete
Operation delete Revokes a low-level authorization to a role- Parameters:
authorization-- Throws:
InternalErrorExceptionInternalErrorException
-