ccc.client.gwt.core
Class GlobalsImpl

java.lang.Object
  extended by ccc.client.gwt.core.GlobalsImpl
All Implemented Interfaces:
Globals

public class GlobalsImpl
extends java.lang.Object
implements Globals

Globals implementation.

Author:
Civic Computing Ltd.

Field Summary
 
Fields inherited from interface ccc.client.core.Globals
API_URL, APP_URL, DEFAULT_HEIGHT, DEFAULT_MIN_HEIGHT, DEFAULT_UPLOAD_HEIGHT, DEFAULT_WIDTH, MAX_FETCH, MIN_USER_NAME_LENGTH, MIN_WIDTH
 
Constructor Summary
GlobalsImpl()
           
 
Method Summary
 PagedCollection<ActionSummary> actions()
          TODO: Add a description for this method.
static void actions(PagedCollection<ActionSummary> actions)
          Set the collection for managing actions.
 java.lang.String appURL()
          Determine the URL for the application.
 PagedCollection<Comment> comments()
          TODO: Add a description for this method.
static void comments(PagedCollection<Comment> comments)
          Set the collection for managing comments.
 User currentUser()
          Accessor.
 void currentUser(User user)
          Mutator.
static API getAPI()
          Accessor.
 java.lang.String getSetting(java.lang.String settingName)
          Retrieve a setting value.
 PagedCollection<Group> groups()
          TODO: Add a description for this method.
static void groups(PagedCollection<Group> groups)
          Set the collection for managing groups.
 java.lang.String hostURL()
          Determine the URL for the application's host.
static void setActionConstants(ActionStatusConstants create)
          Mutator.
static void setAPI(API api)
          Mutator.
static void setCommandConstants(CommandTypeConstants create)
          Mutator.
 void setSettings(java.util.Map<java.lang.String,java.lang.String> settings)
          Provide additional settings for this global object.
static void setUserActions(ActionNameConstants userActions)
          Mutator.
 PagedCollection<User> users()
          TODO: Add a description for this method.
static void users(PagedCollection<User> users)
          Set the collection for managing users.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalsImpl

public GlobalsImpl()
Method Detail

appURL

public java.lang.String appURL()
Determine the URL for the application.

Specified by:
appURL in interface Globals
Returns:
The host url as a string.

currentUser

public User currentUser()
Accessor.

Specified by:
currentUser in interface Globals
Returns:
The current logged in user.

currentUser

public void currentUser(User user)
Mutator.

Specified by:
currentUser in interface Globals
Parameters:
user - The current logged in user.

hostURL

public java.lang.String hostURL()
Determine the URL for the application's host.

Specified by:
hostURL in interface Globals
Returns:
The host url as a string.

setUserActions

public static void setUserActions(ActionNameConstants userActions)
Mutator.

Parameters:
userActions - The action names to set.

getSetting

public java.lang.String getSetting(java.lang.String settingName)
Retrieve a setting value.

Specified by:
getSetting in interface Globals
Parameters:
settingName - The name of the setting to retrieve.
Returns:
The value of the setting as a string or NULL, if the setting doesn't exist.

setSettings

public void setSettings(java.util.Map<java.lang.String,java.lang.String> settings)
Provide additional settings for this global object.

Parameters:
settings - The settings to add.

users

public PagedCollection<User> users()
TODO: Add a description for this method.

Specified by:
users in interface Globals
Returns:

users

public static void users(PagedCollection<User> users)
Set the collection for managing users.

Parameters:
users - The user collection to access.

actions

public PagedCollection<ActionSummary> actions()
TODO: Add a description for this method.

Specified by:
actions in interface Globals
Returns:

actions

public static void actions(PagedCollection<ActionSummary> actions)
Set the collection for managing actions.

Parameters:
actions - The action collection to access.

comments

public PagedCollection<Comment> comments()
TODO: Add a description for this method.

Specified by:
comments in interface Globals
Returns:

comments

public static void comments(PagedCollection<Comment> comments)
Set the collection for managing comments.

Parameters:
comments - The comment collection to access.

groups

public PagedCollection<Group> groups()
TODO: Add a description for this method.

Specified by:
groups in interface Globals
Returns:

groups

public static void groups(PagedCollection<Group> groups)
Set the collection for managing groups.

Parameters:
groups - The group collection to access.

setActionConstants

public static void setActionConstants(ActionStatusConstants create)
Mutator.

Parameters:
create - The action statuses.

setCommandConstants

public static void setCommandConstants(CommandTypeConstants create)
Mutator.

Parameters:
create - The command types.

setAPI

public static void setAPI(API api)
Mutator.

Parameters:
api - The remote API.

getAPI

public static API getAPI()
Accessor.

Returns:
The remote API.


Copyright © 2010. All Rights Reserved.