compres
Class PoolBean
java.lang.Object
compres.PoolBean
@Named
@ApplicationScoped
public class PoolBean
- extends java.lang.Object
|
Method Summary |
java.lang.String |
assignJob(java.lang.String name)
Sets the name of the job for the current pool, and navigates back to compres. |
Pool |
getCurrentPool()
|
java.util.LinkedList<Pool> |
getListPool()
|
java.lang.Boolean |
getSelected()
|
int |
getSize(java.lang.String name)
|
java.lang.String |
selectPool(Pool p)
Can be used to select a pool as the current pool and navigate to a page
which displays information about that pool. |
java.lang.String |
selectPool2(Pool p)
|
void |
setSelected(java.lang.Boolean selected)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PoolBean
public PoolBean()
getListPool
public java.util.LinkedList<Pool> getListPool()
getSize
public int getSize(java.lang.String name)
getCurrentPool
public Pool getCurrentPool()
selectPool
public java.lang.String selectPool(Pool p)
- Can be used to select a pool as the current pool and navigate to a page
which displays information about that pool.
- Parameters:
p - The pool to select
- Returns:
- "poolInfo" if p is not null, else "compres"
selectPool2
public java.lang.String selectPool2(Pool p)
assignJob
public java.lang.String assignJob(java.lang.String name)
- Sets the name of the job for the current pool, and navigates back to compres.
- Parameters:
name - The of the job to assign
- Returns:
- "compres" if there is a current pool, else "jobs"
getSelected
public java.lang.Boolean getSelected()
setSelected
public void setSelected(java.lang.Boolean selected)