|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.wao.ui.base.AbstractFilteredPage
fr.ifremer.wao.ui.pages.Boats
@RequiresAuthentication(allowedRoles={ADMIN,COORDINATOR,OBSERVER,PROFESSIONAL})
@Import(stylesheet="context:css/boats.css")
public class BoatsBoats Created: 9 nov. 2009
| Constructor Summary | |
|---|---|
Boats()
|
|
| Method Summary | |
|---|---|
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()
|
GenericSelectModel<Company> |
getCompanies()
Retrieve companies select model for admin user. |
Company |
getCompany()
Get the current company. |
CompanyBoatInfos |
getCompanyBoatInfos()
|
DateFormat |
getDateFormat()
|
String |
getElligibleRowInfos()
/////////////////////// FOR EACH ELLIGIBLEBOAT ROW ///////////////// |
String |
getElligibleRowStyle()
|
SamplingFilter |
getFilter()
Filters to apply on boats list. |
String |
getHiddenStyle()
|
String |
getLabelForEnum(Enum value)
|
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. |
SampleRow |
getSampleRow()
Retrieve sampleRow from business with id from url context. |
boolean |
hasActivityCalendar()
|
boolean |
isActivityCalendarImportRun()
|
protected boolean |
isAvailableDataForFiltersOnly()
Used to show only active company and observers. |
boolean |
isElligibleBoatCompanyActiveFalse()
|
boolean |
isFiltersHidden()
|
boolean |
isSampleRowExists()
|
boolean |
isSampleRowFinished()
This method detect if the sampleRow from current elligibleBoat is finished. |
String[] |
onProvideCompletionsFromShipOwnerName(String input)
|
void |
onSelectedFromSearch()
EVENT_SELECTED :: search sumit button for filtersForm. |
void |
setBoardingFromDate(Date boardingFromDate)
Used by Tapestry to set the boardingFromDate from calculateBoardings form. |
void |
setBoatSelectedImmatriculation(Integer boatSelectedImmatriculation)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Boats()
| Method Detail |
|---|
public Integer getBoatSelectedImmatriculation()
public void setBoatSelectedImmatriculation(Integer boatSelectedImmatriculation)
public SamplingFilter getFilter()
throws WaoException
getFilter in class AbstractFilteredPageWaoExceptionAbstractFilteredPage
public BoatFilter getBoatFilter()
throws WaoException
WaoExceptionprotected boolean isAvailableDataForFiltersOnly()
AbstractFilteredPage
isAvailableDataForFiltersOnly in class AbstractFilteredPage
public SampleRow getSampleRow()
throws WaoException
WaoException
public boolean isSampleRowExists()
throws WaoException
WaoExceptionpublic boolean isFiltersHidden()
public String getHiddenStyle()
public String[] onProvideCompletionsFromShipOwnerName(String input)
public void onSelectedFromSearch()
throws WaoException
onSelectedFromSearch in class AbstractFilteredPageWaoException - for business errorsAbstractFilteredPage.onSelectedFromSearch()
public BoatDataSource getBoats()
throws WaoException
WaoExceptionBoatDataSourcepublic String getRowStyle()
public String getBoatInactive()
public DateFormat getDateFormat()
public boolean canCreateNewContactFromList()
throws WaoException
WaoExceptionpublic boolean isActivityCalendarImportRun()
public org.apache.tapestry5.Block getActiveBoatInfosBlock()
public CompanyBoatInfos getCompanyBoatInfos()
throws WaoException
WaoException
public GenericSelectModel<Company> getCompanies()
throws WaoException
WaoException
public Company getCompany()
throws WaoException
WaoException
public Boat getBoatSelected()
throws WaoException
WaoExceptionpublic Date getBoardingFromDate()
public void setBoardingFromDate(Date boardingFromDate)
boardingFromDate - used to calculate boardings done on the selected boat
public BoatInfos getBoatInfos()
throws WaoException
WaoException
public String getlastContactStyle()
throws WaoException
WaoExceptionWaoManager.getContactStyle(Contact, boolean)public String getElligibleRowInfos()
public boolean isElligibleBoatCompanyActiveFalse()
public boolean canCreateNewContactFromElligibleBoat()
throws WaoException
WaoExceptionpublic boolean isSampleRowFinished()
public String getElligibleRowStyle()
public boolean canEditBoatInfos()
public boolean hasActivityCalendar()
throws WaoException
WaoExceptionpublic String getLabelForEnum(Enum value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||