public class CheckReadAccessAction extends ServiceableAction
AccessDeniedException
is thrown.AuthorizationRequiredException
is thrown.Modifier and Type | Field and Description |
---|---|
protected CurrentUserProvider |
_currentUserProvider
The current user provider
|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver.
|
protected RightManager |
_rightManager
The right manager
|
manager
EMPTY_MAP
Constructor and Description |
---|
CheckReadAccessAction() |
Modifier and Type | Method and Description |
---|---|
private String |
_decodePath(String path) |
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
protected AmetysObject |
getAmetysObject(Parameters parameters,
Request request)
Get the Ametys object from either the parameters or the request attributes.
|
void |
service(ServiceManager serviceManager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected AmetysObjectResolver _resolver
protected CurrentUserProvider _currentUserProvider
protected RightManager _rightManager
public CheckReadAccessAction()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
protected AmetysObject getAmetysObject(Parameters parameters, Request request) throws UnsupportedEncodingException
parameters
- the action parameters.request
- the request.UnsupportedEncodingException
- if failed to decode object pathprivate String _decodePath(String path) throws UnsupportedEncodingException
UnsupportedEncodingException