org.opencms.workplace
Class CmsWorkplaceAction

java.lang.Object
  extended by org.opencms.module.A_CmsModuleAction
      extended by org.opencms.workplace.CmsWorkplaceAction
All Implemented Interfaces:
I_CmsEventListener, I_CmsModuleAction

public class CmsWorkplaceAction
extends A_CmsModuleAction

The workplace manager class to get the admin CmsObject.

Since:
7.5.0
Version:
$Revision: 1.38 $
Author:
Mario Jaeger

Field Summary
 
Fields inherited from interface org.opencms.main.I_CmsEventListener
EVENT_BEFORE_PUBLISH_PROJECT, EVENT_CLEAR_CACHES, EVENT_CLEAR_OFFLINE_CACHES, EVENT_CLEAR_ONLINE_CACHES, EVENT_CLEAR_PRINCIPAL_CACHES, EVENT_FLEX_CACHE_CLEAR, EVENT_FLEX_PURGE_JSP_REPOSITORY, EVENT_FULLSTATIC_EXPORT, EVENT_GROUP_MODIFIED, EVENT_LOGIN_USER, EVENT_OU_MODIFIED, EVENT_PROJECT_MODIFIED, EVENT_PROPERTY_DEFINITION_CREATED, EVENT_PROPERTY_DEFINITION_MODIFIED, EVENT_PROPERTY_MODIFIED, EVENT_PUBLISH_PROJECT, EVENT_REBUILD_SEARCHINDEXES, EVENT_RESOURCE_AND_PROPERTIES_MODIFIED, EVENT_RESOURCE_COPIED, EVENT_RESOURCE_CREATED, EVENT_RESOURCE_DELETED, EVENT_RESOURCE_MODIFIED, EVENT_RESOURCE_MOVED, EVENT_RESOURCES_AND_PROPERTIES_MODIFIED, EVENT_RESOURCES_MODIFIED, EVENT_UPDATE_EXPORTS, EVENT_USER_MODIFIED, KEY_CHANGE, KEY_DBCONTEXT, KEY_GROUP_ID, KEY_GROUP_NAME, KEY_INDEX_NAMES, KEY_OU_ID, KEY_OU_NAME, KEY_PROJECTID, KEY_PUBLISHID, KEY_PUBLISHLIST, KEY_REPORT, KEY_RESOURCE, KEY_RESOURCES, KEY_USER_ACTION, KEY_USER_ID, KEY_USER_NAME, LISTENERS_FOR_ALL_EVENTS, VALUE_GROUP_MODIFIED_ACTION_CREATE, VALUE_GROUP_MODIFIED_ACTION_DELETE, VALUE_GROUP_MODIFIED_ACTION_WRITE, VALUE_OU_MODIFIED_ACTION_CREATE, VALUE_OU_MODIFIED_ACTION_DELETE, VALUE_USER_MODIFIED_ACTION_ADD_USER_TO_GROUP, VALUE_USER_MODIFIED_ACTION_CREATE_USER, VALUE_USER_MODIFIED_ACTION_DELETE_USER, VALUE_USER_MODIFIED_ACTION_REMOVE_USER_FROM_GROUP, VALUE_USER_MODIFIED_ACTION_RESET_PASSWORD, VALUE_USER_MODIFIED_ACTION_SET_OU, VALUE_USER_MODIFIED_ACTION_WRITE_USER
 
Constructor Summary
CmsWorkplaceAction()
          Constructor for a photo album manager object.
 
Method Summary
 CmsObject getCmsAdminObject()
          Gets the admin cmsObject.
static CmsWorkplaceAction getInstance()
          Returns the instance of the login manager to use.
 void initialize(CmsObject adminCms, CmsConfigurationManager configurationManager, CmsModule module)
          Will be called by the OpenCms system during server startup.
 
Methods inherited from class org.opencms.module.A_CmsModuleAction
cmsEvent, moduleUninstall, moduleUpdate, publishProject, shutDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsWorkplaceAction

public CmsWorkplaceAction()
Constructor for a photo album manager object.

Method Detail

getInstance

public static CmsWorkplaceAction getInstance()
Returns the instance of the login manager to use.

Returns:
the instance of the login manager to use

getCmsAdminObject

public CmsObject getCmsAdminObject()
                            throws CmsException
Gets the admin cmsObject.

Returns:
Admin cmsObject
Throws:
CmsException - is something goes wrong

initialize

public void initialize(CmsObject adminCms,
                       CmsConfigurationManager configurationManager,
                       CmsModule module)
Description copied from interface: I_CmsModuleAction
Will be called by the OpenCms system during server startup.

If a module requires special initialization code, this is a good place to to implement this functions.

Moreover, if the module requires special "one time" setup code, this should also be implemented here. For example if the module requires special DB tables to be created, you should implement a check if theses tables exist in this method, and if they don't exist create them as needed.

Specified by:
initialize in interface I_CmsModuleAction
Overrides:
initialize in class A_CmsModuleAction
Parameters:
adminCms - an initialized CmsObject with "Admin" permissions
configurationManager - the initialized OpenCms configuration manager
module - the module of this action instance
See Also:
A_CmsModuleAction.initialize(org.opencms.file.CmsObject, org.opencms.configuration.CmsConfigurationManager, org.opencms.module.CmsModule)