org.exoplatform.forum.bbcode.core.cache
Class CachedBBCodeService

java.lang.Object
  extended by 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
CachedBBCodeService(org.exoplatform.services.cache.CacheService service, BBCodeServiceImpl bbCodeService)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedBBCodeService

public CachedBBCodeService(org.exoplatform.services.cache.CacheService service,
                           BBCodeServiceImpl bbCodeService)
Method Detail

registerBBCodePlugin

public void registerBBCodePlugin(BBCodePlugin plugin)
                          throws Exception
Description copied from interface: BBCodeService
Registers a new BBCode plugin.

Specified by:
registerBBCodePlugin in interface BBCodeService
Parameters:
plugin - The plugin to be registered.
Throws:
Exception

save

public void save(List<BBCode> bbcodes)
          throws Exception
Description copied from interface: BBCodeService
Saves a list of BBCodes.

Specified by:
save in interface BBCodeService
Parameters:
bbcodes - BBCodes to be saved.
Throws:
Exception

getAll

public List<BBCode> getAll()
                    throws Exception
Description copied from interface: BBCodeService
Retrieves all BBCodes.

Specified by:
getAll in interface BBCodeService
Returns:
BBCodes.
Throws:
Exception

getActive

public List<String> getActive()
                       throws Exception
Description copied from interface: BBCodeService
Retrieves BBCode Ids that are active.

Specified by:
getActive in interface BBCodeService
Returns:
BBCode Ids.
Throws:
Exception

getBBCodeActive

public List<BBCode> getBBCodeActive()
                             throws Exception
Description copied from interface: BBCodeService
Gets all active BBCodes.

Specified by:
getBBCodeActive in interface BBCodeService
Returns:
BBCodes.
Throws:
Exception

findById

public BBCode findById(String bbcodeId)
                throws Exception
Description copied from interface: BBCodeService
Loads a BBCode by its given Id.

Specified by:
findById in interface BBCodeService
Parameters:
bbcodeId - Id of the loaded BBCode.
Returns:
The BBCode.
Throws:
Exception

delete

public void delete(String bbcodeId)
            throws Exception
Description copied from interface: BBCodeService
Deletes an existing BBCode.

Specified by:
delete in interface BBCodeService
Parameters:
bbcodeId - Id of the deleted BBCode.
Throws:
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 © 2003–2014 eXo Platform SAS. All rights reserved.