org.opencms.gwt.shared
Class CmsCoreData.UserInfo

java.lang.Object
  extended by org.opencms.gwt.shared.CmsCoreData.UserInfo
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
Enclosing class:
CmsCoreData

public static class CmsCoreData.UserInfo
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable

Bean class containing info about the current user.


Constructor Summary
protected CmsCoreData.UserInfo()
          Default constructor, needed for serialization.
  CmsCoreData.UserInfo(boolean isAdmin, boolean isDeveloper)
          Creates a new instance.
 
Method Summary
 boolean isAdmin()
          Returns true if the user is an administrator.
 boolean isDeveloper()
          Returns true if the user is a template developer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsCoreData.UserInfo

public CmsCoreData.UserInfo(boolean isAdmin,
                            boolean isDeveloper)
Creates a new instance.

Parameters:
isAdmin - true if the user is an administrator
isDeveloper - true if the user is a template developer

CmsCoreData.UserInfo

protected CmsCoreData.UserInfo()
Default constructor, needed for serialization.

Method Detail

isAdmin

public boolean isAdmin()
Returns true if the user is an administrator.

Returns:
true if the user is an administrator

isDeveloper

public boolean isDeveloper()
Returns true if the user is a template developer.

Returns:
true if the user is a template developer