fr.ifremer.suiviobsmer.ui.pages
Class Contacts

java.lang.Object
  extended by fr.ifremer.suiviobsmer.ui.base.AbstractFilteredPage
      extended by fr.ifremer.suiviobsmer.ui.pages.Contacts
All Implemented Interfaces:
SuiviObsmerPage

@IncludeStylesheet(value="context:css/contacts.css")
public class Contacts
extends AbstractFilteredPage
implements SuiviObsmerPage

Contacts Created: 9 nov. 2009

Version:
$Revision: 294 $ Mise a jour: $Date: 2010-01-29 18:21:13 +0100 (ven., 29 janv. 2010) $ par : $Author: fdesbois $
Author:
fdesbois

Constructor Summary
Contacts()
           
 
Method Summary
 boolean canUnvalidate()
           
 boolean canValidate()
           
 void createNewContact(Boat boat, SampleRow sampleRow)
           
 String getBoatDescription()
           
 String getCommentDisplayed()
           
 String getCommentTooltip()
           
 ContactFilter getContactFilter()
           
 org.apache.tapestry5.beaneditor.BeanModel<Contact> getContactModel()
           
 ContactDataSource getContacts()
           
 ContactState getContactState()
           
 DateFormat getDateFormat()
           
protected  BoatFilter getFilter()
           
 String getGridClass()
           
 String getRowClass()
           
 String getSampleRowDescription()
           
 String getTooltipExportFrom()
           
 GenericSelectModel<WaoUser> getUserSelectModel()
           
 boolean hasActions()
           
protected  boolean isAvailableDataForFiltersOnly()
          Used to show only active company and observers.
 boolean isEditionMode()
           
 boolean isEmpty(Boolean validation)
           
 boolean isFiltersVisible()
           
 boolean isOnlyForAdmin()
           
 void prepareContactEdited(String contactId)
           
 void setContactState(ContactState contactState)
           
 
Methods inherited from class fr.ifremer.suiviobsmer.ui.base.AbstractFilteredPage
getCompanySelectModel, getFacadeSelectModel, getObserverSelectModel, getProgramSelectModel, getSampleRowSelectModel, getSectorSelectModel, initSelectFilters, isEdited, onProvideCompletionsFromBoatName, onSelectedFromRefreshByCompany, onSelectedFromRefreshByFacade, onSelectedFromRefreshByProgram, onSelectedFromRefreshBySector, onSelectedFromSearch, resetFacadeSelect, resetSampleRowSelect, resetSectorSelect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Contacts

public Contacts()
Method Detail

isOnlyForAdmin

public boolean isOnlyForAdmin()
Specified by:
isOnlyForAdmin in interface SuiviObsmerPage

getContactFilter

public ContactFilter getContactFilter()
                               throws SuiviObsmerException
Throws:
SuiviObsmerException

isFiltersVisible

public boolean isFiltersVisible()

getFilter

protected BoatFilter getFilter()
                        throws SuiviObsmerException
Specified by:
getFilter in class AbstractFilteredPage
Throws:
SuiviObsmerException

isAvailableDataForFiltersOnly

protected boolean isAvailableDataForFiltersOnly()
Description copied from class: AbstractFilteredPage
Used to show only active company and observers.

Specified by:
isAvailableDataForFiltersOnly in class AbstractFilteredPage
Returns:
true if only active users will be showed, false otherwise

getContacts

public ContactDataSource getContacts()
                              throws SuiviObsmerException
Throws:
SuiviObsmerException

getContactModel

public org.apache.tapestry5.beaneditor.BeanModel<Contact> getContactModel()

getContactState

public ContactState getContactState()

getUserSelectModel

public GenericSelectModel<WaoUser> getUserSelectModel()

setContactState

public void setContactState(ContactState contactState)

getCommentDisplayed

public String getCommentDisplayed()

getCommentTooltip

public String getCommentTooltip()

getSampleRowDescription

public String getSampleRowDescription()

getBoatDescription

public String getBoatDescription()

getTooltipExportFrom

public String getTooltipExportFrom()
                            throws SuiviObsmerException
Throws:
SuiviObsmerException

getGridClass

public String getGridClass()

getRowClass

public String getRowClass()

getDateFormat

public DateFormat getDateFormat()

isEditionMode

public boolean isEditionMode()

isEmpty

public boolean isEmpty(Boolean validation)

prepareContactEdited

public void prepareContactEdited(String contactId)
                          throws SuiviObsmerException
Throws:
SuiviObsmerException

hasActions

public boolean hasActions()

canValidate

public boolean canValidate()

canUnvalidate

public boolean canUnvalidate()

createNewContact

public void createNewContact(Boat boat,
                             SampleRow sampleRow)
                      throws SuiviObsmerException
Throws:
SuiviObsmerException


Copyright © 2009-2010 Ifremer. All Rights Reserved.