eXo JCR :: Ext :: Services 1.15.10-GA

org.exoplatform.services.jcr.ext.organization
Class JCROrganizationServiceImpl

java.lang.Object
  extended by org.exoplatform.services.organization.BaseOrganizationService
      extended by org.exoplatform.services.jcr.ext.organization.JCROrganizationServiceImpl
All Implemented Interfaces:
org.exoplatform.container.component.ComponentRequestLifecycle, org.exoplatform.services.organization.OrganizationService, org.picocontainer.Startable

public class JCROrganizationServiceImpl
extends org.exoplatform.services.organization.BaseOrganizationService
implements org.picocontainer.Startable

Created by The eXo Platform SAS.
Initialization will be performed via OrganizationServiceJCRInitializer.
Date: 24.07.2008

Version:
$Id: JCROrganizationServiceImpl.java 33732 2009-07-08 15:00:43Z pnedonosko $
Author:
Peter Nedonosko

Field Summary
static String CACHE_ENABLED
          The name of parameter that contains enable cache.
static boolean CACHE_ENABLED_DEFAULT
          Default cache enabled.
protected  boolean cacheEnabled
          Contain passed value of cache enabled in parameters.
protected  JCRCacheHandler cacheHandler
          Cache for organization service entities.
static String JOS_HIERARCHY_GROUP_NODETYPE
          The group nodetype.
static String JOS_MEMBERSHIP
          The child node of group node where memberships are stored.
static String JOS_PROFILE
          The child node to storage user additional information.
static String JOS_USERS_NODETYPE
          The users nodetype.
protected  org.exoplatform.services.jcr.ext.registry.RegistryService registryService
          Registry service.
static String REPOSITORY_NAME
          The name of parameter that contains repository name.
protected  String repositoryName
          Contain passed value of repository name in parameters.
protected  org.exoplatform.services.jcr.RepositoryService repositoryService
          Repository service.
static String STORAGE_JOS_GROUPS
          The node to storage groups.
static String STORAGE_JOS_GROUPS_NODETYPE
          The groups storage nodetype.
static String STORAGE_JOS_MEMBERSHIP_TYPES
          The node to storage membership types.
static String STORAGE_JOS_MEMBERSHIP_TYPES_NODETYPE
          The membership types storage nodetype.
static String STORAGE_JOS_USERS
          The node to storage users.
static String STORAGE_JOS_USERS_NODETYPE
          The users storage nodetype.
static String STORAGE_NODETYPE
          The storage nodetype.
static String STORAGE_PATH
          The name of parameter that contains storage path.
static String STORAGE_PATH_DEFAULT
          Default storage path.
static String STORAGE_WORKSPACE
          The name of parameter that contains workspace name.
protected  String storagePath
          Contain passed value of storage path in parameters.
protected  String storageWorkspace
          Contain passed value of workspace name in parameters.
 
Fields inherited from class org.exoplatform.services.organization.BaseOrganizationService
groupDAO_, listeners_, membershipDAO_, membershipTypeDAO_, userDAO_, userProfileDAO_
 
Constructor Summary
JCROrganizationServiceImpl(org.exoplatform.container.xml.InitParams params, org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.cache.CacheService cservice)
          JCROrganizationServiceImpl constructor.
JCROrganizationServiceImpl(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.jcr.ext.registry.RegistryService registryService, org.exoplatform.services.cache.CacheService cservice)
          JCROrganizationServiceImpl constructor.
 
Method Summary
protected  org.exoplatform.services.jcr.core.ManageableRepository getWorkingRepository()
          Returns working repository.
 void start()
          
 void stop()
          
 
Methods inherited from class org.exoplatform.services.organization.BaseOrganizationService
addListenerPlugin, endRequest, getGroupHandler, getMembershipHandler, getMembershipTypeHandler, getUserHandler, getUserProfileHandler, startRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPOSITORY_NAME

public static final String REPOSITORY_NAME
The name of parameter that contains repository name.

See Also:
Constant Field Values

STORAGE_PATH

public static final String STORAGE_PATH
The name of parameter that contains storage path.

See Also:
Constant Field Values

STORAGE_WORKSPACE

public static final String STORAGE_WORKSPACE
The name of parameter that contains workspace name.

See Also:
Constant Field Values

CACHE_ENABLED

public static final String CACHE_ENABLED
The name of parameter that contains enable cache.

See Also:
Constant Field Values

STORAGE_PATH_DEFAULT

public static final String STORAGE_PATH_DEFAULT
Default storage path.

See Also:
Constant Field Values

repositoryService

protected org.exoplatform.services.jcr.RepositoryService repositoryService
Repository service.


registryService

protected org.exoplatform.services.jcr.ext.registry.RegistryService registryService
Registry service.


storagePath

protected String storagePath
Contain passed value of storage path in parameters.


repositoryName

protected String repositoryName
Contain passed value of repository name in parameters.


storageWorkspace

protected String storageWorkspace
Contain passed value of workspace name in parameters.


cacheEnabled

protected boolean cacheEnabled
Contain passed value of cache enabled in parameters.


cacheHandler

protected JCRCacheHandler cacheHandler
Cache for organization service entities.


STORAGE_JOS_GROUPS

public static final String STORAGE_JOS_GROUPS
The node to storage groups.

See Also:
Constant Field Values

STORAGE_JOS_MEMBERSHIP_TYPES

public static final String STORAGE_JOS_MEMBERSHIP_TYPES
The node to storage membership types.

See Also:
Constant Field Values

STORAGE_JOS_USERS

public static final String STORAGE_JOS_USERS
The node to storage users.

See Also:
Constant Field Values

JOS_PROFILE

public static final String JOS_PROFILE
The child node to storage user additional information.

See Also:
Constant Field Values

JOS_MEMBERSHIP

public static final String JOS_MEMBERSHIP
The child node of group node where memberships are stored.

See Also:
Constant Field Values

JOS_HIERARCHY_GROUP_NODETYPE

public static final String JOS_HIERARCHY_GROUP_NODETYPE
The group nodetype.

See Also:
Constant Field Values

JOS_USERS_NODETYPE

public static final String JOS_USERS_NODETYPE
The users nodetype.

See Also:
Constant Field Values

STORAGE_NODETYPE

public static final String STORAGE_NODETYPE
The storage nodetype.

See Also:
Constant Field Values

STORAGE_JOS_USERS_NODETYPE

public static final String STORAGE_JOS_USERS_NODETYPE
The users storage nodetype.

See Also:
Constant Field Values

STORAGE_JOS_GROUPS_NODETYPE

public static final String STORAGE_JOS_GROUPS_NODETYPE
The groups storage nodetype.

See Also:
Constant Field Values

STORAGE_JOS_MEMBERSHIP_TYPES_NODETYPE

public static final String STORAGE_JOS_MEMBERSHIP_TYPES_NODETYPE
The membership types storage nodetype.

See Also:
Constant Field Values

CACHE_ENABLED_DEFAULT

public static final boolean CACHE_ENABLED_DEFAULT
Default cache enabled.

See Also:
Constant Field Values
Constructor Detail

JCROrganizationServiceImpl

public JCROrganizationServiceImpl(org.exoplatform.container.xml.InitParams params,
                                  org.exoplatform.services.jcr.RepositoryService repositoryService,
                                  org.exoplatform.services.cache.CacheService cservice)
                           throws org.exoplatform.container.configuration.ConfigurationException
JCROrganizationServiceImpl constructor. Without registry service.

Throws:
org.exoplatform.container.configuration.ConfigurationException

JCROrganizationServiceImpl

public JCROrganizationServiceImpl(org.exoplatform.container.xml.InitParams initParams,
                                  org.exoplatform.services.jcr.RepositoryService repositoryService,
                                  org.exoplatform.services.jcr.ext.registry.RegistryService registryService,
                                  org.exoplatform.services.cache.CacheService cservice)
                           throws org.exoplatform.container.configuration.ConfigurationException
JCROrganizationServiceImpl constructor.

Throws:
org.exoplatform.container.configuration.ConfigurationException
Method Detail

start

public void start()

Specified by:
start in interface org.picocontainer.Startable
Overrides:
start in class org.exoplatform.services.organization.BaseOrganizationService

stop

public void stop()

Specified by:
stop in interface org.picocontainer.Startable
Overrides:
stop in class org.exoplatform.services.organization.BaseOrganizationService

getWorkingRepository

protected org.exoplatform.services.jcr.core.ManageableRepository getWorkingRepository()
                                                                               throws javax.jcr.RepositoryException,
                                                                                      org.exoplatform.services.jcr.config.RepositoryConfigurationException
Returns working repository. If repository name is configured then it will be returned otherwise the current repository is used.

Throws:
javax.jcr.RepositoryException
org.exoplatform.services.jcr.config.RepositoryConfigurationException

eXo JCR :: Ext :: Services 1.15.10-GA

Copyright © 2014 eXo Platform SAS. All Rights Reserved.