Class CachedBBCodeService
java.lang.Object
org.exoplatform.forum.bbcode.core.cache.CachedBBCodeService
- All Implemented Interfaces:
BBCodeService,org.picocontainer.Startable
public class CachedBBCodeService
extends Object
implements org.picocontainer.Startable, BBCodeService
-
Constructor Summary
ConstructorsConstructorDescriptionCachedBBCodeService(org.exoplatform.services.cache.CacheService service, BBCodeServiceImpl bbCodeService) -
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes an existing BBCode.Loads a BBCode by its given Id.Retrieves BBCode Ids that are active.getAll()Retrieves all BBCodes.Gets all active BBCodes.voidregisterBBCodePlugin(BBCodePlugin plugin) Registers a new BBCode plugin.voidSaves a list of BBCodes.voidstart()voidstop()
-
Constructor Details
-
CachedBBCodeService
public CachedBBCodeService(org.exoplatform.services.cache.CacheService service, BBCodeServiceImpl bbCodeService)
-
-
Method Details
-
registerBBCodePlugin
Description copied from interface:BBCodeServiceRegisters a new BBCode plugin.- Specified by:
registerBBCodePluginin interfaceBBCodeService- Parameters:
plugin- The plugin to be registered.- Throws:
Exception
-
save
Description copied from interface:BBCodeServiceSaves a list of BBCodes.- Specified by:
savein interfaceBBCodeService- Parameters:
bbcodes- BBCodes to be saved.- Throws:
Exception
-
getAll
Description copied from interface:BBCodeServiceRetrieves all BBCodes.- Specified by:
getAllin interfaceBBCodeService- Returns:
- BBCodes.
- Throws:
Exception
-
getActive
Description copied from interface:BBCodeServiceRetrieves BBCode Ids that are active.- Specified by:
getActivein interfaceBBCodeService- Returns:
- BBCode Ids.
- Throws:
Exception
-
getBBCodeActive
Description copied from interface:BBCodeServiceGets all active BBCodes.- Specified by:
getBBCodeActivein interfaceBBCodeService- Returns:
- BBCodes.
- Throws:
Exception
-
findById
Description copied from interface:BBCodeServiceLoads a BBCode by its given Id.- Specified by:
findByIdin interfaceBBCodeService- Parameters:
bbcodeId- Id of the loaded BBCode.- Returns:
- The BBCode.
- Throws:
Exception
-
delete
Description copied from interface:BBCodeServiceDeletes an existing BBCode.- Specified by:
deletein interfaceBBCodeService- Parameters:
bbcodeId- Id of the deleted BBCode.- Throws:
Exception
-
start
public void start()- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.picocontainer.Startable
-