public class GeSearchRepository extends SearchRepository
| Modifier and Type | Field and Description |
|---|---|
static BcVisibility |
VISIBILITY |
static String |
VISIBILITY_STRING |
| Constructor and Description |
|---|
GeSearchRepository(Graph graph,
GraphRepository graphRepository,
UserRepository userRepository,
Configuration configuration,
GraphAuthorizationRepository graphAuthorizationRepository,
AuthorizationRepository authorizationRepository,
PrivilegeRepository privilegeRepository,
WorkspaceRepository workspaceRepository) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSearch(String id,
User user) |
ClientApiSearch |
getSavedSearch(String id,
User user) |
ClientApiSearchListResponse |
getSavedSearches(User user) |
ClientApiSearch |
getSavedSearchOnWorkspace(String id,
User user,
String workspaceId) |
String |
saveGlobalSearch(String id,
String name,
String url,
org.json.JSONObject searchParameters,
User user,
boolean update) |
String |
saveSearch(String id,
String name,
String url,
org.json.JSONObject searchParameters,
User user,
boolean update) |
static ClientApiSearch |
toClientApiSearch(Vertex searchVertex,
ClientApiSearch.Scope scope) |
findSearchRunnerByUripublic static final String VISIBILITY_STRING
public static final BcVisibility VISIBILITY
@Inject public GeSearchRepository(Graph graph, GraphRepository graphRepository, UserRepository userRepository, Configuration configuration, GraphAuthorizationRepository graphAuthorizationRepository, AuthorizationRepository authorizationRepository, PrivilegeRepository privilegeRepository, WorkspaceRepository workspaceRepository)
public String saveSearch(String id, String name, String url, org.json.JSONObject searchParameters, User user, boolean update)
saveSearch in class SearchRepositorypublic String saveGlobalSearch(String id, String name, String url, org.json.JSONObject searchParameters, User user, boolean update)
saveGlobalSearch in class SearchRepositorypublic ClientApiSearchListResponse getSavedSearches(User user)
getSavedSearches in class SearchRepositorypublic static ClientApiSearch toClientApiSearch(Vertex searchVertex, ClientApiSearch.Scope scope)
public ClientApiSearch getSavedSearch(String id, User user)
getSavedSearch in class SearchRepositorypublic ClientApiSearch getSavedSearchOnWorkspace(String id, User user, String workspaceId)
getSavedSearchOnWorkspace in class SearchRepositorypublic void deleteSearch(String id, User user)
deleteSearch in class SearchRepositoryCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.