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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateVirtualDimension(int databaseId, int id, IAttribute attribute, boolean activate) voidaddAttributeValues(Database database, int attributeCubeId, int attributeDimId, int id, Element language, IElement[] elements, Object[] values) addBaseElement(Database database, int id, String name, IElement.ElementType elementType) voidaddConsolidations(int databaseId, int id, IConsolidation[] consolidations) voidaddElements(int databaseId, int id, IElement[] elements) voidaddElements(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 DimensionInfogetInfo(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) voidmoveElements(int databaseId, int id, IElement[] elements, Integer[] positions) protected voidremoveAttributeValues(Database database, int attributeCubeId, int attributeDimId, int id, Element language, IElement[] elements) protected voidremoveConsolidations(int databaseId, int dimensionId, IElement[] elements) voidremoveElements(int databaseId, int dimensionId, int[] ids) voidprotected voidsetElementsWithAttributes(int id, Dimension dimension, Database database) voidsetWithElementPermission(boolean withPermission) voidupdateConsolidations(int databaseId, int id, IConsolidation[] consolidations)
-
Field Details
-
withPermission
protected boolean withPermission
-
-
Constructor Details
-
DimensionHandler
- Throws:
PaloExceptionPaloJException
-
-
Method Details
-
getHandler
-
getInfo
protected DimensionInfo getInfo(int databaseId, int dimensionId) throws PaloException, PaloJException - Throws:
PaloExceptionPaloJException
-
getSingleElement
-
getSingleElement
-
removeConsolidations
protected void removeConsolidations(int databaseId, int dimensionId, IElement[] elements) throws PaloException, PaloJException - Throws:
PaloExceptionPaloJException
-
removeElements
public void removeElements(int databaseId, int dimensionId, int[] ids) throws PaloException, PaloJException - Throws:
PaloExceptionPaloJException
-
setElementsWithAttributes
protected void setElementsWithAttributes(int id, Dimension dimension, Database database) throws PaloException, PaloJException - Throws:
PaloExceptionPaloJException
-
updateConsolidations
public void updateConsolidations(int databaseId, int id, IConsolidation[] consolidations) throws PaloException, PaloJException - Throws:
PaloExceptionPaloJException
-
addConsolidations
-
addElements
public void addElements(int databaseId, int id, String[] names, IElement.ElementType[] types) throws PaloException, PaloJException - Throws:
PaloExceptionPaloJException
-
moveElements
-
addElements
public void addElements(int databaseId, int id, IElement[] elements) throws PaloException, PaloJException - Throws:
PaloExceptionPaloJException
-
addBaseElement
public Element addBaseElement(Database database, int id, String name, IElement.ElementType elementType) throws PaloJException, PaloException - Throws:
PaloJExceptionPaloException
-
addAttributeValues
public void addAttributeValues(Database database, int attributeCubeId, int attributeDimId, int id, Element language, IElement[] elements, Object[] values) throws PaloException, PaloJException - Throws:
PaloExceptionPaloJException
-
removeAttributeValues
protected void removeAttributeValues(Database database, int attributeCubeId, int attributeDimId, int id, Element language, IElement[] elements) throws PaloException, PaloJException - Throws:
PaloExceptionPaloJException
-
rename
- Throws:
PaloExceptionPaloJException
-
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:
PaloExceptionPaloJException
-
getVirtualDimensionIds
- Throws:
PaloExceptionPaloJException
-