pt.digitalis.dif.controller.security.objects
Interface IUserAuthorization

All Known Subinterfaces:
IDIFClonableUser, IDIFInternalUser, IDIFUser
All Known Implementing Classes:
DIFUserImpl, DIFUserInSession

public interface IUserAuthorization

Defines the behavior a user must provide regarding authorization.

Author:
Pedro Viegas pviegas@digitalis.pt
, Rodrigo Gonçalves rgoncalves@digitalis.pt
Created on:
2007/12/04

Method Summary
 boolean canAccess(Entity resourceType, String resourceId)
          Checks if the user can access a given resource.
 boolean canAccess(IStage stage)
          Checks if the user can access a given stage.
 

Method Detail

canAccess

boolean canAccess(Entity resourceType,
                  String resourceId)
Checks if the user can access a given resource.

Parameters:
resourceType - the resource (entity) type.
resourceId - the id of the resource to check access
Returns:
T if the user can access the resource, F otherwise

canAccess

boolean canAccess(IStage stage)
Checks if the user can access a given stage. Will parse the DEM for inherited grants

Parameters:
stage - the stage to check
Returns:
T if the user can access the stage, F otherwise


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.