@RequiresAuthentication(allowedRoles={ADMIN,COORDINATOR,OBSERVER,PROFESSIONAL}) @Import(stylesheet="context:css/boats.css") public class Boats extends Object
| Constructor and Description |
|---|
Boats() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreateNewContactFromElligibleBoat() |
boolean |
canCreateNewContactFromList() |
boolean |
canEditBoatInfos()
Only user with no readOnly rights can edit BoatInfos.
|
org.apache.tapestry5.Block |
getActiveBoatInfosBlock() |
Date |
getBoardingFromDate()
Date for calculate boardings done for the selected boat.
|
BoatFilter |
getBoatFilter() |
String |
getBoatInactive() |
BoatInfos |
getBoatInfos() |
BoatDataSource |
getBoats()
Get dataSource which contains current boats to show on the page.
|
Boat |
getBoatSelected()
Used to get the selected boat.
|
Integer |
getBoatSelectedImmatriculation()
RIGHT PANEL
|
List<Company> |
getCompanies()
Retrieve companies select model for admin user.
|
Company |
getCompany()
Get the current company.
|
CompanyBoatInfos |
getCompanyBoatInfos() |
String[] |
getContextForShipOwner()
Permet de construire l'URL pour le lien permettant de voir tous les
navires d'un armateur.
|
DateFormat |
getDateFormat() |
List<ElligibleBoat> |
getElligibleBoatsValues() |
String |
getElligibleRowInfos() |
String |
getElligibleRowStyle() |
BoatFilter |
getFilter()
Filters to apply on boats list.
|
String |
getlastContactStyle()
Get CSS style class to apply on lastContact depends on its state.
|
String |
getRowStyle()
Initialized row CSS style depends on selection in the list.
|
List<SampleRow> |
getSampleRows()
/////////////////////// FOR EACH ELLIGIBLEBOAT ROW /////////////////
|
String |
getSummaryForSampleRowContext() |
boolean |
isElligibleBoatCompanyActiveFalse() |
boolean |
isFiltersVisible() |
boolean |
isSampleRowFinished()
This method detect if the sampleRow from current elligibleBoat is finished.
|
Object |
onActionFromCancelSelection() |
protected Object |
redirectAfterContactCreation(Contact newContact)
Après avoir créé le contact, l'utilisateur doit être redirigé soit vers
la liste des contacts, soit directement vers la formulaire de modification
|
void |
setBoardingFromDate(Date boardingFromDate)
Used by Tapestry to set the boardingFromDate from calculateBoardings form.
|
void |
setBoatSelectedImmatriculation(Integer boatSelectedImmatriculation) |
void |
setCompany(Company company) |
public Object onActionFromCancelSelection()
public String getSummaryForSampleRowContext()
public BoatFilter getFilter() throws WaoException
WaoExceptionpublic BoatFilter getBoatFilter() throws WaoException
WaoExceptionpublic boolean isFiltersVisible()
public Integer getBoatSelectedImmatriculation()
public void setBoatSelectedImmatriculation(Integer boatSelectedImmatriculation)
public BoatDataSource getBoats() throws WaoException
WaoExceptionBoatDataSourcepublic String getRowStyle()
public String getBoatInactive()
public DateFormat getDateFormat()
public boolean canCreateNewContactFromList()
throws WaoException
WaoExceptionpublic void setCompany(Company company)
public String[] getContextForShipOwner()
public org.apache.tapestry5.Block getActiveBoatInfosBlock()
public CompanyBoatInfos getCompanyBoatInfos() throws WaoException
WaoExceptionpublic List<Company> getCompanies()
WaoExceptionpublic Company getCompany()
WaoExceptionpublic Boat getBoatSelected() throws WaoException
WaoExceptionpublic Date getBoardingFromDate()
public void setBoardingFromDate(Date boardingFromDate)
boardingFromDate - used to calculate boardings done on the selected boatpublic BoatInfos getBoatInfos() throws WaoException
WaoExceptionpublic String getlastContactStyle() throws WaoException
WaoExceptionWaoManager.getContactStyle(Contact, boolean)public List<SampleRow> getSampleRows()
public List<ElligibleBoat> getElligibleBoatsValues()
public String getElligibleRowInfos()
public boolean isElligibleBoatCompanyActiveFalse()
public boolean canCreateNewContactFromElligibleBoat()
throws WaoException
WaoExceptionpublic boolean isSampleRowFinished()
public String getElligibleRowStyle()
public boolean canEditBoatInfos()
protected Object redirectAfterContactCreation(Contact newContact)
newContact - le contact qui vient d'être crééCopyright © 2009-2013 Ifremer. All Rights Reserved.