public class OdiDimension extends AbstractOdiEntity implements IWorkDevelopmentOdiEntity, IDimension, IFlexFieldUser
Constructor and Description |
---|
OdiDimension(OdiDimensionalModel dimModel,
java.lang.String dimName)
Dimension constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addHierarchy(OdiHierarchy hier)
Add a hierarchy to this level.
|
void |
addLevel(OdiLevel level)
Add a level to this dimension.
|
OdiHierarchy |
findHierarchy(java.lang.String hierName)
Find a hierarchy with the specified name in this dimension.
|
OdiDataStore |
getBoundDataStore()
Get the bound data store for this dimension.
|
ISequence |
getBoundSequence()
Get the bound sequence for this dimension.
|
OdiHierarchy |
getDefaultHierarchy()
Get the default hierarchy for this dimension.
|
java.lang.String |
getDescription()
Get the description for this dimension.
|
OdiDimensionalModel |
getDimensionalModel()
Get the dimensional model that contains this dimension.
|
java.lang.Number |
getDimensionId()
Get the internal unique id for this dimension object.
|
java.util.Collection |
getFlexFieldsValues()
Obtains flex fields values related to this object.
|
java.util.List |
getHierarchies()
Get the list of hierarchies owned by this dimension.
|
java.io.Serializable |
getInternalId()
Provides a common getter for the persistence layer to obtain an identity,
irrespective of the actual type of identity used.
|
java.util.List |
getLevels()
Get The list of levels owned by this dimension.
|
java.util.List |
getLevelsOrderedByPosition()
Get The list of levels, sorted by display order.
|
java.util.List |
getLevelsOrderedForLoading()
Get the levels sorted by hierarchical order, from top to bottom.
|
java.lang.String |
getName()
Returns the name of this entity instance.
|
java.util.List |
getOrderedHierarchies()
Get a copy of the hierarchies list, sorted by display order.
|
IRepositoryEntity |
getSecurityContainer() |
boolean |
hasValidationError()
Get whether this dimension has validation error.
|
boolean |
hasValidationWarning()
Get whether this dimension has validation warning.
|
void |
initFlexFields(IOdiFlexFieldFinder pOdiFlexFieldFinder)
See interface for specifics.
|
void |
moveHierarchyAfter(OdiHierarchy hier,
OdiHierarchy baseHier)
Move the specified hierarchy to put it after the specified base hierarchy.
|
void |
moveLevelAfter(OdiLevel level,
OdiLevel baseLevel)
Reorder the specified level to put it after the specified base level.
|
void |
removeHierarchy(OdiHierarchy hier)
Remove a hierarchy from this dimension.
|
void |
removeLevel(OdiLevel lev)
Remove the specified level from this dimension.
|
void |
setBoundDataStore(OdiDataStore ds)
Set the bound data store for this dimension.
|
void |
setBoundSequence(OdiSequence seq)
Set the bound sequence for this dimension.
|
void |
setDefaultHierarchy(OdiHierarchy h)
Set one particular hierarchy among the hierarchies of this dimension to be the default
hierarchy.
|
void |
setDescription(java.lang.String desc)
Set the description of this dimension.
|
void |
setName(java.lang.String dimName)
Set the name of this dimension.
|
java.util.List |
validate()
Validate the dimension.
|
boolean |
validateHierarchies()
Return true if the hierarchies in this dimension are valid.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBigNumericId, getGlobalId, getNumericId
getFirstDate, getFirstUser, getLastDate, getLastUser, isInstanceLevelSecurityNeeded
getGlobalId, getParent
public OdiDimension(OdiDimensionalModel dimModel, java.lang.String dimName)
dimModel
- The dimensional model that will contain the new dimension.dimName
- The name of the new dimension.public java.io.Serializable getInternalId()
IRepositoryEntity
Typically a subclass will delegate to a public
SomePrimitiveWrapper getId()
method. The necessity for the
getInternalId()
abstract method is solely because the
persistence layer needs a way of obtaining the identity irrespective of
the actual identity implementation choice.
Returning null
from this method will indicate the object has
never been saved. This will likely be relied on by some DAO
implementations.
getInternalId
in interface IRepositoryEntity
public java.lang.Number getDimensionId()
public IRepositoryEntity getSecurityContainer()
getSecurityContainer
in interface IRepositoryEntity
public OdiDimensionalModel getDimensionalModel()
IDimension
getDimensionalModel
in interface IDimension
public java.lang.String getName()
IOdiEntity
getName
in interface IDimension
getName
in interface IFlexFieldUser
getName
in interface IModelObject
getName
in interface IOdiEntity
public void setName(java.lang.String dimName)
IDimension
setName
in interface IDimension
dimName
- The name to set.public void setDescription(java.lang.String desc)
IDimension
setDescription
in interface IDimension
desc
- The description to set.public java.lang.String getDescription()
IDimension
getDescription
in interface IDimension
public java.util.List getLevelsOrderedByPosition()
IDimension
getLevelsOrderedByPosition
in interface IDimension
public java.util.List getLevels()
IDimension
getLevels
in interface IDimension
public java.util.List getLevelsOrderedForLoading()
getLevelsOrderedForLoading
in interface IDimension
public boolean validateHierarchies()
public void addLevel(OdiLevel level)
level
- The level to add.public void removeLevel(OdiLevel lev)
IDimension
removeLevel
in interface IDimension
lev
- The level to be removed.public void moveLevelAfter(OdiLevel level, OdiLevel baseLevel)
moveLevelAfter
in interface IDimension
level
- The level to reorder.baseLevel
- The base level. If null, the reordered level will be put first.public java.util.List getHierarchies()
IDimension
getHierarchies
in interface IDimension
public java.util.List getOrderedHierarchies()
IDimension
getOrderedHierarchies
in interface IDimension
public void addHierarchy(OdiHierarchy hier)
hier
- The hierarchy to add.public void moveHierarchyAfter(OdiHierarchy hier, OdiHierarchy baseHier)
moveHierarchyAfter
in interface IDimension
hier
- The hierarchy to reorder.baseHier
- The base hierarchy. If null, the reordered hierarchy will be put first.public void removeHierarchy(OdiHierarchy hier)
IDimension
removeHierarchy
in interface IDimension
hier
- The hierarchy to remove.public OdiHierarchy findHierarchy(java.lang.String hierName)
IDimension
findHierarchy
in interface IDimension
hierName
- The hierarchy name to search for.public OdiDataStore getBoundDataStore()
IDimension
getBoundDataStore
in interface IDimension
public void setBoundDataStore(OdiDataStore ds)
IDimension
setBoundDataStore
in interface IDimension
ds
- The bound data store model.public void setBoundSequence(OdiSequence seq)
IDimension
setBoundSequence
in interface IDimension
seq
- The bound sequence model.public ISequence getBoundSequence()
IDimension
getBoundSequence
in interface IDimension
public void setDefaultHierarchy(OdiHierarchy h)
IDimension
setDefaultHierarchy
in interface IDimension
h
- The hierarchy that will be set as the default hierarchy.public OdiHierarchy getDefaultHierarchy()
IDimension
getDefaultHierarchy
in interface IDimension
public java.util.List validate()
public boolean hasValidationError()
IDimension
hasValidationError
in interface IDimension
public boolean hasValidationWarning()
IDimension
hasValidationWarning
in interface IDimension
public java.util.Collection getFlexFieldsValues()
Obtains flex fields values related to this object.
Method initFlexFields(IOdiFlexFieldFinder)
should be
called before calling this method.
getFlexFieldsValues
in interface IFlexFieldUser
IFlexFieldUser.getFlexFieldsValues()
public void initFlexFields(IOdiFlexFieldFinder pOdiFlexFieldFinder)
initFlexFields
in interface IFlexFieldUser
pOdiFlexFieldFinder
- OdiFlexField
finder to be used to query flex fields