public class AbstractService extends Object
Modifier and Type | Field and Description |
---|---|
protected WebServiceContext |
context |
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
AbstractService() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAdministrator(String sid)
Checks if the current user is an administrator (group admin).
|
protected void |
checkDownloadEnable(User user,
long folderId) |
protected void |
checkGroup(String sid,
String group)
Checks if the current user belongs to a group
|
protected void |
checkPermission(Permission permission,
User user,
long folderId) |
protected void |
checkPublished(User user,
Document doc) |
protected void |
checkReadEnable(User user,
long folderId) |
protected void |
checkWriteEnable(User user,
long folderId) |
static String |
convertDateToString(Date date) |
static Date |
convertStringToDate(String date) |
protected ContextProperties |
getSettings() |
protected boolean |
isWebserviceEnabled() |
void |
setValidateSession(boolean validateSession) |
protected User |
validateSession(String sid)
Utility method that validates the session and retrieve the associated
user
|
protected static org.slf4j.Logger log
protected WebServiceContext context
public void setValidateSession(boolean validateSession)
protected User validateSession(String sid) throws Exception
sid
- The session identifierException
protected void checkGroup(String sid, String group) throws Exception
Exception
protected void checkAdministrator(String sid) throws Exception
Exception
protected void checkPermission(Permission permission, User user, long folderId) throws Exception
Exception
protected void checkWriteEnable(User user, long folderId) throws Exception
Exception
protected void checkReadEnable(User user, long folderId) throws Exception
Exception
protected void checkDownloadEnable(User user, long folderId) throws Exception
Exception
protected void checkPublished(User user, Document doc) throws Exception
Exception
protected ContextProperties getSettings()
protected boolean isWebserviceEnabled()
Copyright © 2008-2014 Logical Objects. All Rights Reserved.