public class ChartRepository extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.mware.core.security.BcVisibility |
VISIBILITY |
static String |
VISIBILITY_STRING |
| Constructor and Description |
|---|
ChartRepository(com.mware.ge.Graph graph,
com.mware.core.model.graph.GraphRepository graphRepository,
com.mware.core.model.user.UserRepository userRepository,
com.mware.core.model.user.GraphAuthorizationRepository graphAuthorizationRepository,
com.mware.core.model.role.AuthorizationRepository authorizationRepository) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteChart(com.mware.core.user.User user,
String id) |
ClientApiChart |
getChartById(com.mware.core.user.User user,
String id) |
Iterable<ClientApiChart> |
getUserSavedCharts(com.mware.core.user.User user) |
ClientApiChart |
saveChart(String name,
String datasetId,
org.json.JSONObject chartData,
com.mware.core.user.User user) |
static ClientApiChart |
toClientApiChart(com.mware.ge.Vertex chartVertex) |
ClientApiChart |
updateChart(String chartId,
String chartName,
String datasetId,
org.json.JSONObject chartData,
com.mware.core.user.User user) |
public static final String VISIBILITY_STRING
public static final com.mware.core.security.BcVisibility VISIBILITY
@Inject
public ChartRepository(com.mware.ge.Graph graph,
com.mware.core.model.graph.GraphRepository graphRepository,
com.mware.core.model.user.UserRepository userRepository,
com.mware.core.model.user.GraphAuthorizationRepository graphAuthorizationRepository,
com.mware.core.model.role.AuthorizationRepository authorizationRepository)
public ClientApiChart updateChart(String chartId, String chartName, String datasetId, org.json.JSONObject chartData, com.mware.core.user.User user)
public ClientApiChart saveChart(String name, String datasetId, org.json.JSONObject chartData, com.mware.core.user.User user)
public ClientApiChart getChartById(com.mware.core.user.User user, String id)
public void deleteChart(com.mware.core.user.User user,
String id)
public Iterable<ClientApiChart> getUserSavedCharts(com.mware.core.user.User user)
public static ClientApiChart toClientApiChart(com.mware.ge.Vertex chartVertex)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.