public class DataCubeFilter extends ChildItem
Experiment
which is the
item that handles user quota.DataCube
,
FilterBatcher
Modifier and Type | Field and Description |
---|---|
static Item |
TYPE
The type of item represented by this class.
|
Constructor and Description |
---|
DataCubeFilter(DataCubeFilterData data)
Creates a new data cube item from the given data.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addBytes(long bytes) |
static DataCubeFilter |
getById(DbControl dc,
int id)
Get a
DataCubeFilter item when you know the id. |
long |
getBytes()
Get the number of bytes the data stored in this filter occupies on disk.
|
(package private) DataCubeFilterData |
getData()
Get the
BasicData object that holds all data for this item. |
DataCube |
getDataCube()
Get the data cube this filter belongs to.
|
short |
getDataCubeNo()
Get the number of the data cube this filter belongs to.
|
short |
getFilterNo()
Get the number of this filter.
|
(package private) static DataCubeFilter |
getNew(DbControl dc,
DataCube cube)
Create a new
DataCubeFilter item. |
(package private) Permission |
getPermissionForWriteDeleteAndCreate()
USE permission is enough to be able to manage data cubes.
|
(package private) SharedData |
getSharedParent()
Get the experiment.
|
Item |
getType()
Get the type of item represented by the object.
|
(package private) VirtualDb |
getVirtualDb()
Get the virtual database this filter belongs to.
|
(package private) void |
onBeforeCommit(Transactional.Action action)
Delete data and update disk usage information on the
experiment if action == Action.DELETE
|
private void |
setDataCube(DataCube cube)
Set the data cube.
|
private void |
setFilterNo(short filterNo) |
getPermissionForUse, getPluginPermissions, initPermissions
addAnnotatableParents, addUsingItems, addUsingItems, checkPermission, equals, getBasicData, getDbControl, getId, getPermissions, getSessionControl, getUsingItems, getVersion, hashCode, hasPermission, isDetached, isInDatabase, isUsed, onAfterCommit, onAfterInsert, onRollback, setDbControl, setProjectDefaults, toString, validate
public static final Item TYPE
Item.DATACUBEFILTER
,
getType()
DataCubeFilter(DataCubeFilterData data)
data
- the datastatic DataCubeFilter getNew(DbControl dc, DataCube cube) throws BaseException
DataCubeFilter
item.dc
- The DbControl
which will be used for
permission checking and database access.cube
- The cube the new filter is located inDataCubeFilter
itemBaseException
- If there is an errorpublic static DataCubeFilter getById(DbControl dc, int id) throws ItemNotFoundException, PermissionDeniedException, BaseException
DataCubeFilter
item when you know the id.dc
- The DbControl
which will be used for
permission checking and database access.id
- The id of the item to loadDataCubeFilter
itemItemNotFoundException
- If an item with the specified id
is not foundPermissionDeniedException
- If the logged in user doesn't have
Permission.READ
permission to the itemBaseException
- If there is another errorDataCubeFilterData getData()
BasicItem
BasicData
object that holds all data for this item.public Item getType()
Identifiable
Item
enumeration.void onBeforeCommit(Transactional.Action action) throws BaseException
onBeforeCommit
in class BasicItem
BaseException
- If there is an errorTransactional
,
Developer documentation: Transactions,
Developer documentation: Coding rules and guidelines for item classesSharedData getSharedParent()
getSharedParent
in class ChildItem
Permission getPermissionForWriteDeleteAndCreate()
getPermissionForWriteDeleteAndCreate
in class ChildItem
public DataCube getDataCube() throws PermissionDeniedException, BaseException
DataCube
objectPermissionDeniedException
- If the logged in user doesn't have
read permission to the itemBaseException
- If there is another errorprivate void setDataCube(DataCube cube)
public short getDataCubeNo()
public short getFilterNo()
private void setFilterNo(short filterNo)
public long getBytes()
void addBytes(long bytes)
VirtualDb getVirtualDb()