|
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<SoftwareTypeData>
org.proteios.core.SoftwareType
public class SoftwareType
This class is used to represent the type of Software items
in Proteios. Currently, the only type of software we keep information about
is feature extraction software. It is not possible for client applications to
create new software types or modify existing ones.
Software| Field Summary | |
|---|---|
static String |
FEATURE_EXTRACTION
The id for the SoftwareType item representing the
softwaretype "feature extraction software". |
static String |
PROTEIN_IDENTIFICATION
|
| Fields inherited from interface org.proteios.core.Nameable |
|---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
| Method Summary | |
|---|---|
static SoftwareType |
getById(DbControl dc,
int id)
Get a SoftwareType object when you know the ID. |
String |
getDescription()
Get the description for the item. |
String |
getName()
Get the name of the item. |
static ItemQuery<SoftwareType> |
getQuery()
Get a query configured to retrieve software 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: there are any Software using this type
|
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 String FEATURE_EXTRACTION
SoftwareType item representing the
softwaretype "feature extraction software".
public static final String PROTEIN_IDENTIFICATION
| Method Detail |
|---|
public static SoftwareType getById(DbControl dc,
int id)
throws ItemNotFoundException,
PermissionDeniedException,
BaseException
SoftwareType object 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 load
SoftwareType item
ItemNotFoundException - This exception is thrown if an item with
the specified ID is not found
PermissionDeniedException - This exception is thrown if the logged
in user doesn't have READ permission to
the items
BaseException - This exception is thrown if there is another error
public static ItemQuery<SoftwareType> getQuery()
throws BaseException
ItemQuery object
BaseExceptionpublic 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 constantpublic Item getType()
IdentifiableItem enumeration.
getType in interface Identifiablepublic String getSystemId()
SystemItem
getSystemId in interface SystemItempublic boolean isSystemItem()
SystemItem
isSystemItem in interface SystemItem
public boolean isUsed()
throws BaseException
Software using this type
isUsed in class BasicItem<SoftwareTypeData>BaseException
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||