public class FilterService
extends java.lang.Object
| Constructor and Description |
|---|
FilterService(FilterStorage filterStorage)
Constructor for FilterService.
|
| Modifier and Type | Method and Description |
|---|---|
FilterModel |
createFilter(FilterModel filter,
java.lang.String userName)
Create new Filter that will be available for all users.
|
void |
deleteFilter(java.lang.Long filterId)
Delete Filter identified by its id and check if username has permission to
delete it.
|
org.json.JSONObject |
getFields(long filterId)
getFields.
|
org.json.JSONArray |
getFiltersList(java.lang.String userName)
Retrieves the list of Activities with offset, limit and a keyword that can be
empty
|
public FilterService(FilterStorage filterStorage)
Constructor for FilterService.
filterStorage - a FilterStorage object.public FilterModel createFilter(FilterModel filter, java.lang.String userName) throws java.lang.Exception
EntityExistsException will be thrown.filter - Filter to createuserName - a String object.Filter in datasourcejava.lang.Exception - when Filter already exists or an error occurs while
creating Filter or its attached imagepublic void deleteFilter(java.lang.Long filterId)
throws javax.persistence.EntityNotFoundException,
java.lang.IllegalAccessException
filterId - technical identifier of Filterjavax.persistence.EntityNotFoundException - if Filter wasn't foundjava.lang.IllegalAccessException - if user is not allowed to delete Filterpublic org.json.JSONArray getFiltersList(java.lang.String userName)
userName - a String object.FilterModel that contains the list of Activitiespublic org.json.JSONObject getFields(long filterId)
getFields.
filterId - a long.JSONObject object.Copyright © 2003–2021 eXo Platform SAS. All rights reserved.