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

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 displayBody()
           
 String getAccessText()
           
 String getAdminClass()
           
 String getAdminSelected()
           
 String getBoatsSelected()
           
 String getContactsSelected()
           
 String getContextPath()
           
 ConnectedUser getCurrentUser()
           
 FeedBack getFeedBack()
           
 String getSamplingSelected()
           
 String getSynthesisSelected()
           
 boolean isAdministrationHidden()
           
 boolean isCurrentUserExists()
          Test if the current user in session is a valid user.
 boolean isDevEnvironment()
           
 
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

isDevEnvironment

public boolean isDevEnvironment()

isCurrentUserExists

public boolean isCurrentUserExists()
Test if the current user in session is a valid user. Test topia id existence because ConnectedUser 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()

getCurrentUser

public ConnectedUser 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()

isAdministrationHidden

public boolean isAdministrationHidden()

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


Copyright © 2009-2010 Ifremer. All Rights Reserved.