|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.application.gadget.jcr.GadgetRegistryServiceImpl
public class GadgetRegistryServiceImpl
Created by The eXo Platform SAS Author : Pham Thanh Tung thanhtungty@gmail.com Jun 18, 2008
| Constructor Summary | |
|---|---|
GadgetRegistryServiceImpl(org.exoplatform.container.xml.InitParams params,
org.exoplatform.services.jcr.ext.registry.RegistryService service)
|
|
| Method Summary | |
|---|---|
java.util.List<Gadget> |
getAllGadgets()
Gets all of available gadgets from the database. |
java.util.List<Gadget> |
getAllGadgets(java.util.Comparator<Gadget> sortComparator)
Gets all of available gadgets from the database. The list of gadgets are sorted. |
Gadget |
getGadget(java.lang.String name)
Gets the gadget from database by name. |
boolean |
isGadgetDeveloper(java.lang.String username)
return true is the user is defined as a gadget developer |
void |
removeGadget(java.lang.String name)
Removes the gadget from the database. |
void |
saveGadget(Gadget gadget)
Adds the gadget to the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GadgetRegistryServiceImpl(org.exoplatform.container.xml.InitParams params,
org.exoplatform.services.jcr.ext.registry.RegistryService service)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public Gadget getGadget(java.lang.String name)
throws java.lang.Exception
GadgetRegistryService
getGadget in interface GadgetRegistryServicename - the name of gadget
java.lang.Exception
public java.util.List<Gadget> getAllGadgets()
throws java.lang.Exception
GadgetRegistryService
getAllGadgets in interface GadgetRegistryServicejava.lang.Exception
public java.util.List<Gadget> getAllGadgets(java.util.Comparator<Gadget> sortComparator)
throws java.lang.Exception
GadgetRegistryService
getAllGadgets in interface GadgetRegistryServicesortComparator - The comparator is used to control the order of gadgets
java.lang.Exception
public void saveGadget(Gadget gadget)
throws java.lang.Exception
GadgetRegistryService
saveGadget in interface GadgetRegistryServicejava.lang.Exception
public void removeGadget(java.lang.String name)
throws java.lang.Exception
GadgetRegistryService
removeGadget in interface GadgetRegistryServicejava.lang.Exceptionpublic boolean isGadgetDeveloper(java.lang.String username)
isGadgetDeveloper in interface GadgetRegistryServiceusername -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||