Package es.caib.seycon.ng.servei
Interface AutoritzacioService
-
public interface AutoritzacioService
Service AutoritzacioService
-
-
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 AutoritzacioRol
create(AutoritzacioRol autoritzacio)
Operation createvoid
delete(AutoritzacioRol autoritzacio)
Operation deleteCollection
findAuthorizations(String ambit, String descripcio, String codi)
Operation findAuthorizationsSoffidPrincipal
getCurrentPrincipal()
Operation getCurrentPrincipal Returns current security principalCollection<AutoritzacioRol>
getDescriptionUserAuthorizations()
Operation getDescriptionUserAuthorizationsCollection<AutoritzacioRol>
getDescriptionUserAuthorizations(String codiUsuari)
Operation getDescriptionUserAuthorizationsCollection<Object>
getInformacioAutoritzacio(String autoritzacio)
Operation getInformacioAutoritzacioCollection<AutoritzacioRol>
getRolsAutoritzacio(String autoritzacio)
Operation getRolsAutoritzacioList
getScopeList()
Operation getScopeListCollection<AutoritzacioRol>
getUserAuthorization(String codiAutoritzacio)
Operation getUserAuthorizationCollection<AutoritzacioRol>
getUserAuthorization(String codiAutoritzacio, String codiUsuari)
Operation getUserAuthorizationCollection<AutoritzacioRol>
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
AutoritzacioRol create(AutoritzacioRol 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<AutoritzacioRol> getDescriptionUserAuthorizations() throws InternalErrorException, InternalErrorException
Operation getDescriptionUserAuthorizations- Returns:
- Throws:
InternalErrorException
-
getDescriptionUserAuthorizations
Collection<AutoritzacioRol> getDescriptionUserAuthorizations(String codiUsuari) throws InternalErrorException, InternalErrorException
Operation getDescriptionUserAuthorizations- Parameters:
codiUsuari
-- Returns:
- Throws:
InternalErrorException
-
getInformacioAutoritzacio
Collection<Object> getInformacioAutoritzacio(String autoritzacio) throws InternalErrorException, InternalErrorException
Operation getInformacioAutoritzacio- Parameters:
autoritzacio
-- Returns:
- Throws:
InternalErrorException
-
getRolsAutoritzacio
Collection<AutoritzacioRol> getRolsAutoritzacio(String autoritzacio) throws InternalErrorException, InternalErrorException
Operation getRolsAutoritzacio- Parameters:
autoritzacio
-- Returns:
- Throws:
InternalErrorException
-
getUserAuthorization
Collection<AutoritzacioRol> getUserAuthorization(String codiAutoritzacio) throws InternalErrorException, InternalErrorException
Operation getUserAuthorization- Parameters:
codiAutoritzacio
-- Returns:
- Throws:
InternalErrorException
-
getUserAuthorization
Collection<AutoritzacioRol> getUserAuthorization(String codiAutoritzacio, String codiUsuari) throws InternalErrorException, InternalErrorException
Operation getUserAuthorization- Parameters:
codiAutoritzacio
-codiUsuari
-- Returns:
- Throws:
InternalErrorException
-
getUserAuthorizations
Collection<AutoritzacioRol> 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(AutoritzacioRol autoritzacio) throws InternalErrorException, InternalErrorException
Operation delete- Parameters:
autoritzacio
-- Throws:
InternalErrorException
-
-