org.exoplatform.application.registry.jcr
Class ApplicationRegistryServiceImpl

java.lang.Object
  extended by org.exoplatform.application.registry.jcr.ApplicationRegistryServiceImpl
All Implemented Interfaces:
ApplicationRegistryService, org.picocontainer.Startable

public class ApplicationRegistryServiceImpl
extends java.lang.Object
implements ApplicationRegistryService, org.picocontainer.Startable

Created by The eXo Platform SARL Author : Tung Pham thanhtungty@gmail.com Nov 23, 2007


Constructor Summary
ApplicationRegistryServiceImpl(org.exoplatform.services.jcr.ext.registry.RegistryService service)
           
 
Method Summary
 void clearAllRegistries()
           
 java.util.List<Application> getAllApplications()
           
 Application getApplication(java.lang.String id)
           
 Application getApplication(java.lang.String category, java.lang.String name)
           
 java.util.List<ApplicationCategory> getApplicationCategories()
           
 java.util.List<ApplicationCategory> getApplicationCategories(java.util.Comparator<ApplicationCategory> sortComparator)
           
 java.util.List<ApplicationCategory> getApplicationCategories(java.lang.String accessUser, java.lang.String... appTypes)
           
 ApplicationCategory getApplicationCategory(java.lang.String name)
           
 java.util.List<Application> getApplications(ApplicationCategory category, java.util.Comparator<Application> sortComparator, java.lang.String... appTypes)
           
 java.util.List<Application> getApplications(ApplicationCategory category, java.lang.String... appTypes)
           
 void importAllPortlets()
           
 void importExoGadgets()
           
 void initListener(org.exoplatform.container.component.ComponentPlugin com)
           
 void remove(Application app)
           
 void remove(ApplicationCategory category)
           
 void save(ApplicationCategory category)
           
 void save(ApplicationCategory category, Application application)
           
 void start()
           
 void stop()
           
 void update(Application application)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationRegistryServiceImpl

public ApplicationRegistryServiceImpl(org.exoplatform.services.jcr.ext.registry.RegistryService service)
                               throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getApplicationCategories

public java.util.List<ApplicationCategory> getApplicationCategories(java.lang.String accessUser,
                                                                    java.lang.String... appTypes)
                                                             throws java.lang.Exception
Specified by:
getApplicationCategories in interface ApplicationRegistryService
Throws:
java.lang.Exception

getApplicationCategories

public java.util.List<ApplicationCategory> getApplicationCategories()
                                                             throws java.lang.Exception
Specified by:
getApplicationCategories in interface ApplicationRegistryService
Throws:
java.lang.Exception

getApplicationCategories

public java.util.List<ApplicationCategory> getApplicationCategories(java.util.Comparator<ApplicationCategory> sortComparator)
                                                             throws java.lang.Exception
Specified by:
getApplicationCategories in interface ApplicationRegistryService
Throws:
java.lang.Exception

getApplicationCategory

public ApplicationCategory getApplicationCategory(java.lang.String name)
                                           throws java.lang.Exception
Specified by:
getApplicationCategory in interface ApplicationRegistryService
Throws:
java.lang.Exception

save

public void save(ApplicationCategory category)
          throws java.lang.Exception
Specified by:
save in interface ApplicationRegistryService
Throws:
java.lang.Exception

remove

public void remove(ApplicationCategory category)
            throws java.lang.Exception
Specified by:
remove in interface ApplicationRegistryService
Throws:
java.lang.Exception

getAllApplications

public java.util.List<Application> getAllApplications()
                                               throws java.lang.Exception
Specified by:
getAllApplications in interface ApplicationRegistryService
Throws:
java.lang.Exception

getApplication

public Application getApplication(java.lang.String id)
                           throws java.lang.Exception
Specified by:
getApplication in interface ApplicationRegistryService
Throws:
java.lang.Exception

getApplication

public Application getApplication(java.lang.String category,
                                  java.lang.String name)
                           throws java.lang.Exception
Specified by:
getApplication in interface ApplicationRegistryService
Throws:
java.lang.Exception

getApplications

public java.util.List<Application> getApplications(ApplicationCategory category,
                                                   java.lang.String... appTypes)
                                            throws java.lang.Exception
Specified by:
getApplications in interface ApplicationRegistryService
Throws:
java.lang.Exception

getApplications

public java.util.List<Application> getApplications(ApplicationCategory category,
                                                   java.util.Comparator<Application> sortComparator,
                                                   java.lang.String... appTypes)
                                            throws java.lang.Exception
Specified by:
getApplications in interface ApplicationRegistryService
Throws:
java.lang.Exception

importExoGadgets

public void importExoGadgets()
                      throws java.lang.Exception
Specified by:
importExoGadgets in interface ApplicationRegistryService
Throws:
java.lang.Exception

importAllPortlets

public void importAllPortlets()
                       throws java.lang.Exception
Specified by:
importAllPortlets in interface ApplicationRegistryService
Throws:
java.lang.Exception

remove

public void remove(Application app)
            throws java.lang.Exception
Specified by:
remove in interface ApplicationRegistryService
Throws:
java.lang.Exception

save

public void save(ApplicationCategory category,
                 Application application)
          throws java.lang.Exception
Specified by:
save in interface ApplicationRegistryService
Throws:
java.lang.Exception

update

public void update(Application application)
            throws java.lang.Exception
Specified by:
update in interface ApplicationRegistryService
Throws:
java.lang.Exception

clearAllRegistries

public void clearAllRegistries()
                        throws java.lang.Exception
Specified by:
clearAllRegistries in interface ApplicationRegistryService
Throws:
java.lang.Exception

initListener

public void initListener(org.exoplatform.container.component.ComponentPlugin com)
                  throws java.lang.Exception
Specified by:
initListener in interface ApplicationRegistryService
Throws:
java.lang.Exception

start

public void start()
Specified by:
start in interface org.picocontainer.Startable

stop

public void stop()
Specified by:
stop in interface org.picocontainer.Startable


Copyright © 2010 eXo Platform SAS. All Rights Reserved.