Package com.soffid.iam.service
Interface AuthorizationService
-
public interface AuthorizationService
Service AuthorizationService
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthorizationRole
create(AuthorizationRole autoritzacio)
Operation createvoid
delete(AuthorizationRole autoritzacio)
Operation deleteCollection
findAuthorizations(String ambit, String descripcio, String codi)
Operation findAuthorizationsCollection<Object>
getAuthorizationInfo(String autoritzacio)
Operation getAuthorizationInfoCollection<AuthorizationRole>
getAuthorizationRoles(String autoritzacio)
Operation getAuthorizationRolesSoffidPrincipal
getCurrentPrincipal()
Operation getCurrentPrincipal Returns current security principalCollection<AuthorizationRole>
getDescriptionUserAuthorizations()
Operation getDescriptionUserAuthorizationsCollection<AuthorizationRole>
getDescriptionUserAuthorizations(String codiUsuari)
Operation getDescriptionUserAuthorizationsList
getScopeList()
Operation getScopeListCollection<AuthorizationRole>
getUserAuthorization(String codiAutoritzacio)
Operation getUserAuthorizationCollection<AuthorizationRole>
getUserAuthorization(String codiAutoritzacio, String codiUsuari)
Operation getUserAuthorizationCollection<AuthorizationRole>
getUserAuthorizations()
Operation getUserAuthorizationsCollection
getUserAuthorizations(String codiUsuari)
Operation getUserAuthorizationsString[]
getUserAuthorizationsString()
Operation getUserAuthorizationsStringString[]
getUserAuthorizationsString(String codiUsuari)
Operation getUserAuthorizationsStringString[]
getUserAuthorizationsString(String user, Map<String,String> loginProperties)
Operation getUserAuthorizationsString Gets the autohrization given some login process propertiesString[]
getUserAuthorizationString(String codiAutoritzacio)
Operation getUserAuthorizationStringString[]
getUserAuthorizationString(String codiAutoritzacio, String codiUsuari)
Operation getUserAuthorizationStringString[]
getUserGroupAuthorizationString(String user, String holderGroup)
Operation getUserGroupAuthorizationStringboolean
hasPermission(String action, Object object)
Operation hasPermission Returns true if the user has the selected permission on the selected objects
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasPermission
boolean hasPermission(String action, Object object) throws InternalErrorException
Operation hasPermission Returns true if the user has the selected permission on the selected objects- Parameters:
action
-object
-- Returns:
- Throws:
InternalErrorException
-
getCurrentPrincipal
SoffidPrincipal getCurrentPrincipal() throws InternalErrorException
Operation getCurrentPrincipal Returns current security principal- Returns:
- Throws:
InternalErrorException
-
create
AuthorizationRole create(AuthorizationRole autoritzacio) throws InternalErrorException, InternalErrorException
Operation create- Parameters:
autoritzacio
-- Returns:
- Throws:
InternalErrorException
-
getUserAuthorizationString
String[] getUserAuthorizationString(String codiAutoritzacio) throws InternalErrorException, InternalErrorException
Operation getUserAuthorizationString- Parameters:
codiAutoritzacio
-- Returns:
- Throws:
InternalErrorException
-
getUserAuthorizationString
String[] getUserAuthorizationString(String codiAutoritzacio, String codiUsuari) throws InternalErrorException, InternalErrorException
Operation getUserAuthorizationString- Parameters:
codiAutoritzacio
-codiUsuari
-- Returns:
- Throws:
InternalErrorException
-
getUserAuthorizationsString
String[] getUserAuthorizationsString() throws InternalErrorException, InternalErrorException
Operation getUserAuthorizationsString- Returns:
- Throws:
InternalErrorException
-
getUserAuthorizationsString
String[] getUserAuthorizationsString(String codiUsuari) throws InternalErrorException, InternalErrorException
Operation getUserAuthorizationsString- Parameters:
codiUsuari
-- Returns:
- Throws:
InternalErrorException
-
getUserAuthorizationsString
String[] getUserAuthorizationsString(String user, Map<String,String> loginProperties) throws InternalErrorException, InternalErrorException
Operation getUserAuthorizationsString Gets the autohrization given some login process properties- Parameters:
user
-loginProperties
-- Returns:
- Throws:
InternalErrorException
-
getUserGroupAuthorizationString
String[] getUserGroupAuthorizationString(String user, String holderGroup) throws InternalErrorException, InternalErrorException
Operation getUserGroupAuthorizationString- Parameters:
user
-holderGroup
-- Returns:
- Throws:
InternalErrorException
-
findAuthorizations
Collection findAuthorizations(String ambit, String descripcio, String codi) throws InternalErrorException, InternalErrorException
Operation findAuthorizations- Parameters:
ambit
-descripcio
-codi
-- Returns:
- Throws:
InternalErrorException
-
getDescriptionUserAuthorizations
Collection<AuthorizationRole> getDescriptionUserAuthorizations() throws InternalErrorException, InternalErrorException
Operation getDescriptionUserAuthorizations- Returns:
- Throws:
InternalErrorException
-
getDescriptionUserAuthorizations
Collection<AuthorizationRole> getDescriptionUserAuthorizations(String codiUsuari) throws InternalErrorException, InternalErrorException
Operation getDescriptionUserAuthorizations- Parameters:
codiUsuari
-- Returns:
- Throws:
InternalErrorException
-
getAuthorizationInfo
Collection<Object> getAuthorizationInfo(String autoritzacio) throws InternalErrorException, InternalErrorException
Operation getAuthorizationInfo- Parameters:
autoritzacio
-- Returns:
- Throws:
InternalErrorException
-
getAuthorizationRoles
Collection<AuthorizationRole> getAuthorizationRoles(String autoritzacio) throws InternalErrorException, InternalErrorException
Operation getAuthorizationRoles- Parameters:
autoritzacio
-- Returns:
- Throws:
InternalErrorException
-
getUserAuthorization
Collection<AuthorizationRole> getUserAuthorization(String codiAutoritzacio) throws InternalErrorException, InternalErrorException
Operation getUserAuthorization- Parameters:
codiAutoritzacio
-- Returns:
- Throws:
InternalErrorException
-
getUserAuthorization
Collection<AuthorizationRole> getUserAuthorization(String codiAutoritzacio, String codiUsuari) throws InternalErrorException, InternalErrorException
Operation getUserAuthorization- Parameters:
codiAutoritzacio
-codiUsuari
-- Returns:
- Throws:
InternalErrorException
-
getUserAuthorizations
Collection<AuthorizationRole> getUserAuthorizations() throws InternalErrorException, InternalErrorException
Operation getUserAuthorizations- Returns:
- Throws:
InternalErrorException
-
getUserAuthorizations
Collection getUserAuthorizations(String codiUsuari) throws InternalErrorException, InternalErrorException
Operation getUserAuthorizations- Parameters:
codiUsuari
-- Returns:
- Throws:
InternalErrorException
-
getScopeList
List getScopeList() throws InternalErrorException, InternalErrorException
Operation getScopeList- Returns:
- Throws:
InternalErrorException
-
delete
void delete(AuthorizationRole autoritzacio) throws InternalErrorException, InternalErrorException
Operation delete- Parameters:
autoritzacio
-- Throws:
InternalErrorException
-
-