fr.ifremer.wao.ui.components
Class Layout

java.lang.Object
  extended by fr.ifremer.wao.ui.components.Layout

public class Layout
extends Object

Layout Created: 9 nov. 2009

Version:
$Revision: 409 $ Mise a jour: $Date: 2010-04-01 20:21:22 +0200 (jeu., 01 avril 2010) $ par : $Author: fdesbois $
Author:
fdesbois

Constructor Summary
Layout()
           
 
Method Summary
 void addError(String... message)
          Add an error to the layout : display the body any way.
 void addFatal(String message)
          Add a fatal error to the layout : don't display the page body.
 void addInfo(String message)
          Add an info message to the layout.
 boolean canShowPage()
           
 boolean displayBody()
           
 String getAccessText()
           
 String getAdminClass()
           
 String getAdminSelected()
           
 String getBoatsSelected()
           
 String getContactsSelected()
           
 String getContentId()
           
 String getContextPath()
           
 WaoUser getCurrentUser()
           
 FeedBack getFeedBack()
           
 String getPageTitle()
           
 String getSamplingSelected()
           
 String getSynthesisSelected()
           
 String getVersion()
           
 boolean hasConnexionErrors()
           
 boolean isCurrentUserExists()
          Test if the current user in session is a valid user.
 void setCurrentUser(WaoUser user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Layout

public Layout()
Method Detail

isCurrentUserExists

public boolean isCurrentUserExists()
Test if the current user in session is a valid user. Test topia id existence because WaoUser can be empty when session is lost

Returns:
true if the current user is a valide user (not empty).
See Also:
contributeApplicationStateManager(MappedConfiguration)

getContextPath

public String getContextPath()

getVersion

public String getVersion()

getPageTitle

public String getPageTitle()

getContentId

public String getContentId()

setCurrentUser

public void setCurrentUser(WaoUser user)

getCurrentUser

public WaoUser getCurrentUser()

getFeedBack

public FeedBack getFeedBack()

getAdminClass

public String getAdminClass()

getSamplingSelected

public String getSamplingSelected()

getBoatsSelected

public String getBoatsSelected()

getContactsSelected

public String getContactsSelected()

getSynthesisSelected

public String getSynthesisSelected()

getAdminSelected

public String getAdminSelected()

canShowPage

public boolean canShowPage()

getAccessText

public String getAccessText()

displayBody

public boolean displayBody()

addInfo

public void addInfo(String message)
Add an info message to the layout.

Parameters:
message - of the info

addError

public void addError(String... message)
Add an error to the layout : display the body any way.

Parameters:
message - of the error

addFatal

public void addFatal(String message)
Add a fatal error to the layout : don't display the page body.

Parameters:
message - of the error

hasConnexionErrors

public boolean hasConnexionErrors()


Copyright © 2009-2010 Ifremer. All Rights Reserved.