|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bibalex.daf.entities.AdminModuleBase org.bibalex.daf.entities.WorkStation
public class WorkStation
Field Summary | |
---|---|
private DBConnection |
conn
|
private int |
id
|
private int |
OS_ID
|
private boolean |
wrkstAnyPhase
|
private java.lang.String |
wrkstComment
|
private boolean |
wrkstIsActive
|
private java.lang.String |
wrkstLocation
|
private java.lang.String |
wrkstName
|
private java.lang.String |
wrkstWorkingDirectory
|
Constructor Summary | |
---|---|
WorkStation()
Class Constructor |
|
WorkStation(DataTable table)
|
|
WorkStation(int WSID)
|
Method Summary | |
---|---|
OperationInfo |
add()
Add new WS |
OperationInfo |
delete()
delete WS |
OperationInfo |
deleteCascade()
delete WS in cascade |
java.lang.String |
getActualWorkingDir(java.lang.String username)
Gets WorkStation Working Directory after replacing '$username$' by the given username. |
OperationInfo |
getAssignedPhases()
Get Assigned Phases to this workstation |
OperationInfo |
getAssignedPhasesSpecial()
|
static OperationInfo |
getByID(int recID)
select WS |
static OperationInfo |
getByName(java.lang.String workstationName)
select WS by name |
OperationInfo |
getDevices()
load the devices assigned to workstation |
int |
getID()
Gets the ID of the workstation. |
OperationInfo |
getMediaTypes()
load the devices assigned to workstation |
boolean |
getWSAnyPhase()
get WorkStation AnyPhase value |
java.lang.String |
getWSComment()
get WorkStation Comment |
boolean |
getWSIsActive()
get WorkStation IsActive value |
java.lang.String |
getWSLocation()
get WorkStation Location |
java.lang.String |
getWSName()
get WorkStation Name |
int |
getWSOS()
get WorkStation OS |
java.lang.String |
getWSWorkingDir()
get WorkStation Working Directory |
static OperationInfo |
loadAll()
Load all WS |
static OperationInfo |
loadAllDevices()
|
static OperationInfo |
loadAllGUI()
Load all WS for GUI |
void |
setFieldsFromDataTable(DataTable table)
|
void |
setID(int workstationID)
Sets the work station ID. |
void |
setWSAnyPhase(boolean Value)
set WorkStation AnyPhase value |
void |
setWSComment(java.lang.String Value)
set WorkStation Comment |
void |
setWSIsActive(boolean Value)
set WorkStation IsActive value |
void |
setWSLocation(java.lang.String Value)
set WorkStation Location |
void |
setWSName(java.lang.String Value)
set WorkStation Name |
void |
setWSOS(int Value)
set WorkStation OS |
void |
setWSWorkingDir(java.lang.String Value)
set WorkStation Working Directory |
OperationInfo |
update()
update WS |
OperationInfo |
updateDevices(java.lang.Object[] devicesIDs)
|
OperationInfo |
updateMediaTypes(java.lang.Object[] MTIDs)
Update Media Types assigned to workstation |
OperationInfo |
updatePhases(java.lang.Object[] phasesIDs)
Updates the assigned phases for the current Workstation. |
OperationInfo |
validateMediaType(int MediaTypeID)
Validate if media type can be used on selected WS or not |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private DBConnection conn
private int id
private java.lang.String wrkstName
private java.lang.String wrkstWorkingDirectory
private java.lang.String wrkstComment
private boolean wrkstAnyPhase
private boolean wrkstIsActive
private int OS_ID
private java.lang.String wrkstLocation
Constructor Detail |
---|
public WorkStation()
public WorkStation(int WSID) throws java.lang.Exception
java.lang.Exception
public WorkStation(DataTable table) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void setFieldsFromDataTable(DataTable table)
public static OperationInfo loadAll()
public static OperationInfo loadAllGUI()
public static OperationInfo getByName(java.lang.String workstationName)
workstationName
- is the WS name
public static OperationInfo loadAllDevices()
public static OperationInfo getByID(int recID)
recID
- is the record to be selected
public OperationInfo add()
add
in class AdminModuleBase
public OperationInfo delete()
delete
in class AdminModuleBase
public OperationInfo deleteCascade()
public OperationInfo getDevices()
public OperationInfo getMediaTypes()
public OperationInfo update()
update
in class AdminModuleBase
public OperationInfo updatePhases(java.lang.Object[] phasesIDs)
phasesIDs
- The assigned Phases IDs for this workstation.
public OperationInfo updateDevices(java.lang.Object[] devicesIDs)
public OperationInfo updateMediaTypes(java.lang.Object[] MTIDs)
MTIDs
-
public OperationInfo getAssignedPhases()
public OperationInfo getAssignedPhasesSpecial()
public OperationInfo validateMediaType(int MediaTypeID)
MediaTypeID
- the ID of the Media Type
public void setID(int workstationID)
public void setWSName(java.lang.String Value)
Value
- is the WorkStation Namepublic void setWSWorkingDir(java.lang.String Value)
Value
- is the WorkStation Working Directorypublic void setWSComment(java.lang.String Value)
Value
- is the WorkStation Commentpublic void setWSAnyPhase(boolean Value)
Value
- is the WorkStation AnyPhase (1 means any phase can work on this WS, 0 otherwise)public void setWSIsActive(boolean Value)
Value
- is the WorkStation IsActive (1 means any active workstation, 0 otherwise)public void setWSOS(int Value)
Value
- is the WorkStation OSpublic void setWSLocation(java.lang.String Value)
Value
- is the WorkStation Locationpublic int getID()
public java.lang.String getWSName()
public java.lang.String getWSWorkingDir()
public java.lang.String getActualWorkingDir(java.lang.String username)
username
- The name of the user to replace '$username$' placeholder
public java.lang.String getWSComment()
public boolean getWSAnyPhase()
public boolean getWSIsActive()
public int getWSOS()
public java.lang.String getWSLocation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |