public class ArrayDesignPlate extends ChildItem
Modifier and Type | Field and Description |
---|---|
private static QueryRuntimeFilter |
RUNTIME_FILTER
This filter will only return items if the logged in user has
generic read permission to array designs.
|
static Item |
TYPE
The type of item represented by this class.
|
Constructor and Description |
---|
ArrayDesignPlate(ArrayDesignPlateData arrayDesignPlateData) |
Modifier and Type | Method and Description |
---|---|
ArrayDesign |
getArrayDesign()
Gets this item's
ArrayDesign . |
(package private) static ArrayDesignPlate |
getById(DbControl dc,
int id)
Get a
ArrayDesignPlate item when you know the id. |
(package private) ArrayDesignPlateData |
getData()
Get the
BasicData object that holds all data for this item. |
Plate |
getPlate()
Gets the
Plate that belongs to this item. |
int |
getPosition()
Gets the position of this item.
|
static ItemQuery<ArrayDesignPlate> |
getQuery(ArrayDesign design)
Get a query that returns ArrayDesignPlates connections for the
specified array design.
|
(package private) SharedData |
getSharedParent()
Get the shareable parent item of this child item.
|
Item |
getType()
Get the type of item represented by the object.
|
java.util.Set<ItemProxy> |
getUsingItems()
Get the array design this plate is used on.
|
boolean |
isUsed()
Always TRUE.
|
getPermissionForUse, getPermissionForWriteDeleteAndCreate, getPluginPermissions, initPermissions
addAnnotatableParents, addUsingItems, addUsingItems, breakCircularReferences, checkBatchAnnotatableUsage, checkPermission, equals, getBasicData, getDbControl, getId, getPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, onAfterCommit, onAfterInsert, onBeforeCommit, onRollback, setDbControl, setProjectDefaults, toString, validate
public static final Item TYPE
Item.ARRAYDESIGNPLATE
,
getType()
private static final QueryRuntimeFilter RUNTIME_FILTER
ArrayDesignPlate(ArrayDesignPlateData arrayDesignPlateData)
public static ItemQuery<ArrayDesignPlate> getQuery(ArrayDesign design)
design
- The array design to retreive plate connections for, null is allowed if
the logged in user has generic READ permission for array designs in which case
all plate connections will be retrievedItemQuery
objectArrayDesign.getArrayDesignPlates()
static ArrayDesignPlate getById(DbControl dc, int id) throws ItemNotFoundException, PermissionDeniedException, BaseException
ArrayDesignPlate
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 loadArrayDesignPlate
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 errorArrayDesignPlateData getData()
BasicItem
BasicData
object that holds all data for this item.public Item getType()
Identifiable
Item
enumeration.public boolean isUsed() throws BaseException
isUsed
in class BasicItem
BaseException
- If not able to tell if item is used or not.BasicItem.getUsingItems()
public java.util.Set<ItemProxy> getUsingItems() throws BaseException
getUsingItems
in class BasicItem
BaseException
- If there is an error loading the itemsBasicItem.addUsingItems(Set, Item, org.hibernate.query.Query)
SharedData getSharedParent()
ChildItem
ChildItem.initPermissions(int, int)
method to calculate
the logged in user's permissions for the child item.getSharedParent
in class ChildItem
public Plate getPlate() throws PermissionDeniedException, BaseException
Plate
that belongs to this item.Plate
objectPermissionDeniedException
- If the logged in user doesn't
have Permission.READ
permission.BaseException
- If there is another error.public ArrayDesign getArrayDesign() throws PermissionDeniedException, BaseException
ArrayDesign
.ArrayDesign
object.PermissionDeniedException
- If the logged in user doesn't
have Permission.READ
permission.BaseException
- If there is another error.public int getPosition()