Package fr.becpg.repo.olap.impl
Class OlapServiceImpl
java.lang.Object
fr.becpg.repo.olap.impl.OlapServiceImpl
- All Implemented Interfaces:
OlapService
OlapServiceImpl class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BeCPGTicketServiceprivate org.alfresco.service.cmr.repository.ContentServiceprivate Booleanprivate org.alfresco.service.cmr.model.FileFolderServiceprivate static final org.apache.commons.logging.Logprivate Stringprivate Stringprivate RepoServiceprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringbuildCreateQueryUrl(String olapQueryId, OlapContext context) private StringbuildDataUrl(String olapQueryId, OlapContext context) private StringbuildQueryUrl(String queryName, OlapContext context) private StringbuildRepositoryUrl(OlapContext context) private OlapChartgetOlapChart(String olapQueryId) org.alfresco.service.cmr.repository.NodeRefgetOlapQueriesFolder.getSSOUrl.retrieveChartData(String olapQueryId) retrieveChartData.private StringretrieveDataType(String value) retrieveOlapCharts.retrieveOlapChartsFromSaiku.
-
Field Details
-
ROW_HEADER
- See Also:
-
logger
private static final org.apache.commons.logging.Log logger -
olapPublicUrl
-
olapServerUrl
-
enabled
-
fileFolderService
@Autowired private org.alfresco.service.cmr.model.FileFolderService fileFolderService -
contentService
@Autowired private org.alfresco.service.cmr.repository.ContentService contentService -
repoService
-
beCPGTicketService
-
-
Constructor Details
-
OlapServiceImpl
public OlapServiceImpl()
-
-
Method Details
-
retrieveOlapCharts
retrieveOlapCharts.
- Specified by:
retrieveOlapChartsin interfaceOlapService- Returns:
- a
Listobject.
-
getOlapQueriesFolder
public org.alfresco.service.cmr.repository.NodeRef getOlapQueriesFolder()getOlapQueriesFolder.
- Specified by:
getOlapQueriesFolderin interfaceOlapService- Returns:
- a
NodeRefobject.
-
retrieveOlapChartsFromSaiku
retrieveOlapChartsFromSaiku.
- Specified by:
retrieveOlapChartsFromSaikuin interfaceOlapService- Returns:
- a
Listobject. - Throws:
IOException- if any.org.json.JSONException- if any.
-
retrieveChartData
retrieveChartData.
Parse [ [{"value":"null","properties":{},"type":"COLUMN_HEADER"},{"value": "Oct","properties":{},"type":"COLUMN_HEADER"}] ,[{"value":"Type","properties":{"levelindex":"0"} ,"type":"ROW_HEADER_HEADER"} ,{"value":"Week41/2011","properties":{"levelindex" :"1","dimension":"Date de modification" },"type":"COLUMN_HEADER"}],[{"value" :"finishedProduct","properties":{"levelindex" :"0","dimension":"Type de produit" },"type":"ROW_HEADER"},{"value":"10","properties" :null,"type":"DATA_CELL"} ],[{"value":"rawMaterial","properties":{"levelindex" :"0","dimension":"Type de produit" },"type":"ROW_HEADER"},{"value":"14","properties" :null,"type":"DATA_CELL"}]]- Specified by:
retrieveChartDatain interfaceOlapService- Parameters:
olapQueryId- aStringobject.- Returns:
- a
OlapChartDataobject. - Throws:
IOException- if any.
-
getSSOUrl
getSSOUrl.
- Specified by:
getSSOUrlin interfaceOlapService- Returns:
- a
Stringobject.
-
getOlapChart
-
retrieveDataType
-
buildDataUrl
private String buildDataUrl(String olapQueryId, OlapContext context) throws org.apache.commons.httpclient.URIException - Throws:
org.apache.commons.httpclient.URIException
-
buildCreateQueryUrl
private String buildCreateQueryUrl(String olapQueryId, OlapContext context) throws org.apache.commons.httpclient.URIException - Throws:
org.apache.commons.httpclient.URIException
-
buildRepositoryUrl
private String buildRepositoryUrl(OlapContext context) throws org.apache.commons.httpclient.URIException - Throws:
org.apache.commons.httpclient.URIException
-
buildQueryUrl
private String buildQueryUrl(String queryName, OlapContext context) throws org.apache.commons.httpclient.URIException - Throws:
org.apache.commons.httpclient.URIException
-