fr.ifremer.wao.ui.pages
Class Contacts

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

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

Contacts Created: 9 nov. 2009

Version:
$Revision: 426 $ Mise a jour: $Date: 2010-04-06 13:29:09 +0200 (mar., 06 avril 2010) $ par : $Author: fdesbois $
Author:
fdesbois

Constructor Summary
Contacts()
           
 
Method Summary
 boolean canDisplay()
          No restriction to display this page.
 boolean canImportExport()
          Only administrator and coordinator with no readOnly rights can import/export contacts.
 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()
           
 DateFormat getDateFormat()
           
protected  BoatFilter getFilter()
           
 String getGridClass()
           
 String getRowClass()
           
 String getSampleRowDescription()
           
 String getTooltipExportFrom()
           
 GenericSelectModel<WaoUser> getUserSelectModel()
           
 boolean hasActions()
           
 boolean hasValidationActions()
          Display validation actions.
protected  boolean isAvailableDataForFiltersOnly()
          Used to show only active company and observers.
 boolean isEditionMode()
           
 boolean isEmpty(Boolean validation)
           
 boolean isFiltersVisible()
           
 
Methods inherited from class fr.ifremer.wao.ui.base.AbstractFilteredPage
getCompanySelectModel, getFacadeSelectModel, getObserverSelectModel, getProgramSelectModel, getSampleRowSelectModel, getSectorSelectModel, initSelectFilters, isEdited, onProvideCompletionsFromBoatName, onSelectedFromRefreshByCompany, onSelectedFromRefreshByFacade, onSelectedFromRefreshByProgram, onSelectedFromRefreshBySector, onSelectedFromSearch, resetCompanySelect, 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

canDisplay

public boolean canDisplay()
No restriction to display this page.

Specified by:
canDisplay in interface WaoPage
Returns:
true

getContactFilter

public ContactFilter getContactFilter()
                               throws WaoException
Throws:
WaoException

isFiltersVisible

public boolean isFiltersVisible()

getFilter

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

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

canImportExport

public boolean canImportExport()
Only administrator and coordinator with no readOnly rights can import/export contacts.

Returns:
true if import/export of contacts can be done

getContacts

public ContactDataSource getContacts()
                              throws WaoException
Throws:
WaoException

getContactModel

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

getUserSelectModel

public GenericSelectModel<WaoUser> getUserSelectModel()

getCommentDisplayed

public String getCommentDisplayed()

getCommentTooltip

public String getCommentTooltip()

getSampleRowDescription

public String getSampleRowDescription()

getBoatDescription

public String getBoatDescription()

getTooltipExportFrom

public String getTooltipExportFrom()
                            throws WaoException
Throws:
WaoException

getGridClass

public String getGridClass()

getRowClass

public String getRowClass()

getDateFormat

public DateFormat getDateFormat()

isEditionMode

public boolean isEditionMode()

isEmpty

public boolean isEmpty(Boolean validation)

hasActions

public boolean hasActions()

hasValidationActions

public boolean hasValidationActions()
Display validation actions. Evo #2063 : only coordinator can validate for a company.

Returns:
true if the validation actions can be displayed

canValidate

public boolean canValidate()

canUnvalidate

public boolean canUnvalidate()

createNewContact

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


Copyright © 2009-2010 Ifremer. All Rights Reserved.