|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.BasicItem<HardwareTypeData>
org.proteios.core.HardwareType
public class HardwareType
This class is used to represent the type of Hardware items
in Proteios. It is not possible for client applications to create new
hardware types or modify existing ones.
Hardware| Field Summary | |
|---|---|
static String |
MASS_SPECTROMETER
The id for the HardwareType object representing a robot. |
static String |
ROBOT
The id for the HardwareType object representing a robot. |
static String |
SCANNER
The id for the HardwareType object representing a scanner. |
static Item |
TYPE
The type of item represented by this class. |
| Fields inherited from interface org.proteios.core.Nameable |
|---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
| Method Summary | |
|---|---|
String |
getDescription()
Get the description for the item. |
String |
getName()
Get the name of the item. |
static ItemQuery<HardwareType> |
getQuery()
Get a query configured to retrieve hardware types. |
String |
getSystemId()
Get the system id for the item. |
Item |
getType()
Get the type of item represented by the object. |
boolean |
isSystemItem()
Check if the item is a system item or not. |
boolean |
isUsed()
Check if: A Hardware of this type exists |
void |
setDescription(String description)
Set the description for the item. |
void |
setName(String name)
Set the name of the item. |
| Methods inherited from class org.proteios.core.BasicItem |
|---|
checkPermission, equals, getDbControl, getId, getPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.proteios.core.Identifiable |
|---|
getId, getVersion |
| Methods inherited from interface org.proteios.core.AccessControlled |
|---|
checkPermission, hasPermission |
| Field Detail |
|---|
public static final Item TYPE
ITEM.FILETYPE,
getType()public static final String SCANNER
HardwareType object representing a scanner.
public static final String ROBOT
HardwareType object representing a robot.
public static final String MASS_SPECTROMETER
HardwareType object representing a robot.
| Method Detail |
|---|
public static ItemQuery<HardwareType> getQuery()
ItemQuery object
public boolean isUsed()
throws BaseException
isUsed in class BasicItem<HardwareTypeData>BaseException - If there is an error.public Item getType()
IdentifiableItem enumeration.
getType in interface Identifiablepublic String getSystemId()
SystemItem
getSystemId in interface SystemItempublic boolean isSystemItem()
SystemItem
isSystemItem in interface SystemItempublic String getName()
Nameable
getName in interface NameableString with the name of the item
public void setName(String name)
throws PermissionDeniedException,
InvalidDataException
NameableNameable.MAX_NAME_LENGTH constant.
setName in interface Nameablename - The new name for the item
PermissionDeniedException - If the logged in user doesn't
have write permission
InvalidDataException - If the name is null or longer
than specified by the Nameable.MAX_NAME_LENGTH constantpublic String getDescription()
Nameable
getDescription in interface NameableString with a description of the item
public void setDescription(String description)
throws PermissionDeniedException,
InvalidDataException
NameableNameable.MAX_DESCRIPTION_LENGTH constant.
setDescription in interface Nameabledescription - The new description for the item
PermissionDeniedException - If the logged in user doesn't
have write permission
InvalidDataException - If the description longer
than specified by the Nameable.MAX_DESCRIPTION_LENGTH constant
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||