Package com.jedox.palojlib.main
Class DimensionHandler
java.lang.Object
com.jedox.palojlib.main.DimensionHandler
handler used by
Dimension
to make request on olap server- Author:
- khaddadin
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateVirtualDimension
(int databaseId, int id, IAttribute attribute, boolean activate) void
addAttributeValues
(Database database, int attributeCubeId, int attributeDimId, int id, Element language, IElement[] elements, Object[] values) addBaseElement
(Database database, int id, String name, IElement.ElementType elementType) void
addConsolidations
(int databaseId, int id, IConsolidation[] consolidations) void
addElements
(int databaseId, int id, IElement[] elements) void
addElements
(int databaseId, int id, String[] names, IElement.ElementType[] types) IElement[]
evaluateGlobalSubset
(Database db, Dimension dim, String subsetname, IVariable[] subsetVariables) generateScript
(int databaseid, int id, boolean complete, IElement[] elements, boolean withAttribute, boolean includeLocalSubsets, boolean includeGlobalSubsets, boolean includeDimensionRights, IElement[] languages, boolean clear, IScriptHandler.ScriptCreateClause cClause, IScriptHandler.ScriptModifyClause mClause) String[]
getGlobalSubsetVariables
(int databaseid, String dimname, String subsetname) protected DimensionInfo
getInfo
(int databaseId, int dimensionId) getSingleElement
(Database database, int dimensionId, String name, boolean byName) getSingleElement
(Database database, int dimensionId, String name, boolean byName, boolean withPermissions) String[]
getVirtualDimensionIds
(int databaseId, int id) void
moveElements
(int databaseId, int id, IElement[] elements, Integer[] positions) protected void
removeAttributeValues
(Database database, int attributeCubeId, int attributeDimId, int id, Element language, IElement[] elements) protected void
removeConsolidations
(int databaseId, int dimensionId, IElement[] elements) void
removeElements
(int databaseId, int dimensionId, int[] ids) void
protected void
setElementsWithAttributes
(int id, Dimension dimension, Database database) void
setWithElementPermission
(boolean withPermission) void
updateConsolidations
(int databaseId, int id, IConsolidation[] consolidations)
-
Field Details
-
withPermission
protected boolean withPermission
-
-
Constructor Details
-
DimensionHandler
- Throws:
PaloException
PaloJException
-
-
Method Details
-
getInfo
protected DimensionInfo getInfo(int databaseId, int dimensionId) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
getSingleElement
-
getSingleElement
-
removeConsolidations
protected void removeConsolidations(int databaseId, int dimensionId, IElement[] elements) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
removeElements
public void removeElements(int databaseId, int dimensionId, int[] ids) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
setElementsWithAttributes
protected void setElementsWithAttributes(int id, Dimension dimension, Database database) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
updateConsolidations
public void updateConsolidations(int databaseId, int id, IConsolidation[] consolidations) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
addConsolidations
-
addElements
public void addElements(int databaseId, int id, String[] names, IElement.ElementType[] types) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
moveElements
-
addElements
public void addElements(int databaseId, int id, IElement[] elements) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
addBaseElement
public Element addBaseElement(Database database, int id, String name, IElement.ElementType elementType) throws PaloJException, PaloException - Throws:
PaloJException
PaloException
-
addAttributeValues
public void addAttributeValues(Database database, int attributeCubeId, int attributeDimId, int id, Element language, IElement[] elements, Object[] values) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
removeAttributeValues
protected void removeAttributeValues(Database database, int attributeCubeId, int attributeDimId, int id, Element language, IElement[] elements) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
rename
- Throws:
PaloException
PaloJException
-
setWithElementPermission
public void setWithElementPermission(boolean withPermission) -
getGlobalSubsetVariables
-
evaluateGlobalSubset
-
generateScript
public String generateScript(int databaseid, int id, boolean complete, IElement[] elements, boolean withAttribute, boolean includeLocalSubsets, boolean includeGlobalSubsets, boolean includeDimensionRights, IElement[] languages, boolean clear, IScriptHandler.ScriptCreateClause cClause, IScriptHandler.ScriptModifyClause mClause) -
activateVirtualDimension
public void activateVirtualDimension(int databaseId, int id, IAttribute attribute, boolean activate) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
getVirtualDimensionIds
- Throws:
PaloException
PaloJException
-