Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.ec.placeful
Class PlacefulServiceImpl

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.platform.ec.placeful.PlacefulServiceImpl
All Implemented Interfaces:
PlacefulService, Adaptable, Component, Extensible

public class PlacefulServiceImpl
extends DefaultComponent
implements PlacefulService

Author:
Ruslan Spivak

Field Summary
 
Fields inherited from interface org.nuxeo.ecm.platform.ec.placeful.interfaces.PlacefulService
ID
 
Constructor Summary
PlacefulServiceImpl()
           
 
Method Summary
 void deactivate(ComponentContext context)
          Deactivates the component.
 List<Annotation> getAllAnnotations(EntityManager em, String name)
           
 List<Annotation> getAllAnnotations(String name)
           
 Annotation getAnnotation(EntityManager em, String id, String name)
           
 Annotation getAnnotation(String uuid, String name)
           
 List<Annotation> getAnnotationListByParamMap(EntityManager em, Map<String,Object> paramMap, String name)
           
 List<Annotation> getAnnotationListByParamMap(Map<String,Object> paramMap, String name)
           
 Map<String,String> getAnnotationRegistry()
           
 HibernateConfiguration getOrCreateHibernateConfiguration()
           
 PersistenceProvider getOrCreatePersistenceProvider()
           
static String getShortName(String className)
           
 void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
           
 void removeAnnotation(Annotation annotation)
           
 void removeAnnotation(EntityManager em, Annotation annotation)
           
 void removeAnnotationListByParamMap(EntityManager em, Map<String,Object> paramMap, String name)
           
 void removeAnnotationListByParamMap(Map<String,Object> paramMap, String name)
           
 void setAnnotation(Annotation annotation)
           
 void setAnnotation(EntityManager em, Annotation annotation)
           
 void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
           
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, applicationStarted, getAdapter, registerExtension, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlacefulServiceImpl

public PlacefulServiceImpl()
Method Detail

getOrCreatePersistenceProvider

public PersistenceProvider getOrCreatePersistenceProvider()

getOrCreateHibernateConfiguration

public HibernateConfiguration getOrCreateHibernateConfiguration()

deactivate

public void deactivate(ComponentContext context)
                throws Exception
Description copied from interface: Component
Deactivates the component.

This method is called by the runtime when a component is deactivated.

Specified by:
deactivate in interface Component
Overrides:
deactivate in class DefaultComponent
Parameters:
context - the runtime context
Throws:
Exception - if an error occurs during activation

registerContribution

public void registerContribution(Object contribution,
                                 String extensionPoint,
                                 ComponentInstance contributor)
                          throws Exception
Overrides:
registerContribution in class DefaultComponent
Throws:
Exception

unregisterContribution

public void unregisterContribution(Object contribution,
                                   String extensionPoint,
                                   ComponentInstance contributor)
                            throws Exception
Overrides:
unregisterContribution in class DefaultComponent
Throws:
Exception

getAnnotationRegistry

public Map<String,String> getAnnotationRegistry()
Specified by:
getAnnotationRegistry in interface PlacefulService

getShortName

public static String getShortName(String className)

getAnnotation

public Annotation getAnnotation(EntityManager em,
                                String id,
                                String name)

getAllAnnotations

public List<Annotation> getAllAnnotations(EntityManager em,
                                          String name)

getAllAnnotations

public List<Annotation> getAllAnnotations(String name)

getAnnotation

public Annotation getAnnotation(String uuid,
                                String name)
Specified by:
getAnnotation in interface PlacefulService

getAnnotationListByParamMap

public List<Annotation> getAnnotationListByParamMap(EntityManager em,
                                                    Map<String,Object> paramMap,
                                                    String name)

getAnnotationListByParamMap

public List<Annotation> getAnnotationListByParamMap(Map<String,Object> paramMap,
                                                    String name)
Specified by:
getAnnotationListByParamMap in interface PlacefulService

removeAnnotationListByParamMap

public void removeAnnotationListByParamMap(EntityManager em,
                                           Map<String,Object> paramMap,
                                           String name)

removeAnnotationListByParamMap

public void removeAnnotationListByParamMap(Map<String,Object> paramMap,
                                           String name)
Specified by:
removeAnnotationListByParamMap in interface PlacefulService

setAnnotation

public void setAnnotation(EntityManager em,
                          Annotation annotation)

setAnnotation

public void setAnnotation(Annotation annotation)
Specified by:
setAnnotation in interface PlacefulService

removeAnnotation

public void removeAnnotation(EntityManager em,
                             Annotation annotation)

removeAnnotation

public void removeAnnotation(Annotation annotation)
Specified by:
removeAnnotation in interface PlacefulService

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.