|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Item>
org.proteios.core.Item
public enum Item
This class defines constants for various items in Proteios.
| Method Summary | |
|---|---|
static Item |
fromClass(Class<?> anyClass)
Get the Item object when you know either the item or data
class. |
static Item |
fromDataClass(Class<? extends BasicData> dataClass)
Get the Item object when you know the data class. |
static Item |
fromDataObject(BasicData data)
Get the Item object when you have a data layer object. |
static Item |
fromItemClass(Class<? extends BasicItem> itemClass)
Get the Item object when you know the item class. |
static Item |
fromValue(int value)
Get the Item object when you know the integer code. |
String |
getAlias()
Get the alias for this item, which is used in queries, |
BasicItem |
getById(DbControl dc,
int id)
Get the item of the type represented by this enumeration constant with the specified id. |
Class<? extends BasicData> |
getDataClass()
Get the data object that is used to store information in the database for items of this type. |
Set<Permission> |
getDefinedPermissions()
Get the permissions which are meaningful to assign to an item if this type. |
Class<? extends BasicItem> |
getItemClass()
Get the class object that is used to handle items of this type. |
int |
getValue()
Get the integer value that is used when storing an item to the database. |
String |
toString()
|
static Item |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Item[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Item SYSTEM
Install,
SessionControl.hasSystemPermission(Permission)public static final Item USER
User.
public static final Item GROUP
Group.
public static final Item ROLE
Role.
public static final Item PROJECT
Project.
public static final Item ITEMKEY
ItemKey.
public static final Item PROJECTKEY
ProjectKey.
public static final Item ROLEKEY
RoleKey.
public static final Item CLIENT
Client.
public static final Item SESSION
Session.
public static final Item SETTING
Setting.
public static final Item GLOBALDEFAULTSETTING
GlobalDefaultSetting.
public static final Item QUOTA
Quota.
public static final Item QUOTATYPE
QuotaType.
public static final Item DISKUSAGE
DiskUsage.
public static final Item FILE
File.
public static final Item FILETYPE
FileType.
public static final Item DIRECTORY
Directory.
public static final Item MIMETYPE
MimeType.
public static final Item PROTOCOL
Protocol.
public static final Item PROTOCOLTYPE
ProtocolType.
public static final Item HARDWARE
Hardware.
public static final Item HARDWARETYPE
HardwareType.
public static final Item SOFTWARE
Software.
public static final Item SOFTWARETYPE
SoftwareType.
public static final Item NEWS
News.
public static final Item MESSAGE
Message.
public static final Item ANNOTATIONSET
AnnotationSet.
public static final Item ANNOTATION
Annotation.
public static final Item ANNOTATIONTYPE
AnnotationType.
public static final Item BIOSOURCE
BioSource.
public static final Item SAMPLE
Sample.
public static final Item EXTRACT
Extract.
public static final Item LABELEDEXTRACT
LabeledExtract.
public static final Item BIOMATERIALEVENT
BioMaterialEvent.
public static final Item LABEL
Label.
public static final Item PLUGINTYPE
PluginType
public static final Item PLUGINDEFINITION
PluginDefinition
public static final Item PLUGINCONFIGURATION
PluginConfiguration
public static final Item JOB
Job
public static final Item HARDWARECONFIGURATION
HardwareConfiguration
public static final Item SOFTWARECONFIGURATION
SoftwareConfiguration
public static final Item PROTEIOS_OFFSET
public static final Item PROTEIOS_PEAKLISTSET
PeakListSet
public static final Item PROTEIOS_PEAKLIST
PeakList
public static final Item PROTEIOS_DATAPROCESSINGSTEP
DataProcessingStep
public static final Item PROTEIOS_PRECURSOR
Precursor
public static final Item PROTEIOS_PEAK
Peak
public static final Item PROTEIOS_ACQUISITION
Acquisition
public static final Item PROTEIOS_SPECTRUMSEARCH
SpectrumSearch
public static final Item PROTEIOS_DIGESTPARAMETER
DigestParameter
public static final Item PROTEIOS_SEARCHDATABASE
SearchDatabase
public static final Item PROTEIOS_SEARCHRESULT
SearchResult
public static final Item PROTEIOS_PROTEIN
Protein
public static final Item PROTEIOS_PEPTIDE
Peptide
public static final Item PROTEIOS_HIT
Hit
public static final Item PROTEIOS_MEASUREDAREA
MeasuredArea
public static final Item PROTEIOS_GELELECTROPHORESIS
GelElectrophoresis
public static final Item PROTEIOS_IPG
IPG
public static final Item PROTEIOS_SEPARATIONMETHOD
SeparationMethod
public static final Item PROTEIOS_GELIMAGEANALYSISEVENT
GelImageAnalysisEvent
public static final Item PROTEIOS_GELSCANEVENT
GelScanEvent
public static final Item PROTEIOS_SEPARATIONEVENT
SeparationEvent
public static final Item PROTEIOS_STAININGEVENT
StainingEvent
public static final Item PROTEIOS_OBSERVEDMODIFICATION
ObservedModification
public static final Item PROTEIOS_SEARCHMODIFICATION
SearchModification
public static final Item PROTEIOS_CREATIONEVENT
CreationEvent
public static final Item PROTEIOS_BIOMATERIAL
BioMaterial. Was introduced when trying to display
any biomaterial by clicking on it.
public static final Item PROTEIOS_UPDATEEVENT
UpdateEvent
public static final Item PROTEIOS_LIQUIDCHROMATOGRAPHY
LiquidChromatography
public static final Item PROTEIOS_XTANDEMPARAMETERSETSTORAGE
XTandemParameterSetStorage
public static final Item PROTEIOS_OMSSAPARAMETERSETSTORAGE
OMSSAParameterSetStorage
public static final Item PROTEIOS_MASCOTPARAMETERSETSTORAGE
MascotParameterSetStorage
public static final Item PROTEIOS_FEATURE
MascotParameterSetStorage
| Method Detail |
|---|
public static Item[] values()
for (Item c : Item.values()) System.out.println(c);
public static Item valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String toString()
toString in class Enum<Item>public int getValue()
public String getAlias()
Query.getRootAlias()public Class<? extends BasicItem> getItemClass()
public Class<? extends BasicData> getDataClass()
public Set<Permission> getDefinedPermissions()
Set containing the permissions
public BasicItem getById(DbControl dc,
int id)
throws ItemNotFoundException,
PermissionDeniedException,
BaseException
Item.SAMPLE.getById() is the same as
Sample.getById.
dc - The DbControl object used for database access
and permission checkingid - The id of the item
ItemNotFoundException - If an item with the specified id isn't
found
PermissionDeniedException - If the logged in user hasn't read
permission for the item
BaseException - If there is another errorpublic static Item fromValue(int value)
Item object when you know the integer code.
public static Item fromItemClass(Class<? extends BasicItem> itemClass)
Item object when you know the item class.
public static Item fromDataClass(Class<? extends BasicData> dataClass)
Item object when you know the data class.
public static Item fromClass(Class<?> anyClass)
Item object when you know either the item or data
class.
public static Item fromDataObject(BasicData data)
Item object when you have a data layer object.
This method takes Hibernate proxies into account.
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||