public class CachedBBCodeService extends Object implements org.picocontainer.Startable, BBCodeService
| Constructor and Description |
|---|
CachedBBCodeService(org.exoplatform.services.cache.CacheService service,
BBCodeServiceImpl bbCodeService) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String bbcodeId)
Deletes an existing BBCode.
|
BBCode |
findById(String bbcodeId)
Loads a BBCode by its given Id.
|
List<String> |
getActive()
Retrieves BBCode Ids that are active.
|
List<BBCode> |
getAll()
Retrieves all BBCodes.
|
List<BBCode> |
getBBCodeActive()
Gets all active BBCodes.
|
void |
registerBBCodePlugin(BBCodePlugin plugin)
Registers a new BBCode plugin.
|
void |
save(List<BBCode> bbcodes)
Saves a list of BBCodes.
|
void |
start() |
void |
stop() |
public CachedBBCodeService(org.exoplatform.services.cache.CacheService service,
BBCodeServiceImpl bbCodeService)
public void registerBBCodePlugin(BBCodePlugin plugin) throws Exception
BBCodeServiceregisterBBCodePlugin in interface BBCodeServiceplugin - The plugin to be registered.Exceptionpublic void save(List<BBCode> bbcodes) throws Exception
BBCodeServicesave in interface BBCodeServicebbcodes - BBCodes to be saved.Exceptionpublic List<BBCode> getAll() throws Exception
BBCodeServicegetAll in interface BBCodeServiceExceptionpublic List<String> getActive() throws Exception
BBCodeServicegetActive in interface BBCodeServiceExceptionpublic List<BBCode> getBBCodeActive() throws Exception
BBCodeServicegetBBCodeActive in interface BBCodeServiceExceptionpublic BBCode findById(String bbcodeId) throws Exception
BBCodeServicefindById in interface BBCodeServicebbcodeId - Id of the loaded BBCode.Exceptionpublic void delete(String bbcodeId) throws Exception
BBCodeServicedelete in interface BBCodeServicebbcodeId - Id of the deleted BBCode.Exceptionpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.StartableCopyright © 2003–2018 eXo Platform SAS. All rights reserved.