org.exoplatform.forum.bbcode.core
Class MemoryBBCodeService

java.lang.Object
  extended by org.exoplatform.forum.bbcode.core.MemoryBBCodeService
All Implemented Interfaces:
BBCodeService

public class MemoryBBCodeService
extends Object
implements BBCodeService

APIs to manage initialization data for BBCode operations.


Constructor Summary
MemoryBBCodeService()
           
 
Method Summary
 void addBBCode(BBCode code)
          Adds BBCode.
 void delete(String bbcodeId)
          Deletes BBCode by its id.
 BBCode findById(String bbcodeId)
          Finds BBCode by its id.
 List<String> getActive()
          Gets active BBCode.
 List<BBCode> getAll()
          Gets all BBCode.
 void registerBBCodePlugin(BBCodePlugin plugin)
          Registers a new BBCode plugin.
 void save(List<BBCode> bbcodes)
          Saves a list of BBCodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryBBCodeService

public MemoryBBCodeService()
Method Detail

delete

public void delete(String bbcodeId)
            throws Exception
Deletes BBCode by its id.

Specified by:
delete in interface BBCodeService
Parameters:
bbcodeId - id of target BBCode
Throws:
Exception

findById

public BBCode findById(String bbcodeId)
                throws Exception
Finds BBCode by its id.

Specified by:
findById in interface BBCodeService
Parameters:
bbcodeId - id of target BBCode
Returns:
BBCode object of provided id.
Throws:
Exception

getActive

public List<String> getActive()
                       throws Exception
Gets active BBCode.

Specified by:
getActive in interface BBCodeService
Returns:
List of BBCOde IDs
Throws:
Exception

getAll

public List<BBCode> getAll()
                    throws Exception
Gets all BBCode.

Specified by:
getAll in interface BBCodeService
Returns:
List of all registered BBCodes
Throws:
Exception

registerBBCodePlugin

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

Specified by:
registerBBCodePlugin in interface BBCodeService
Throws:
Exception

save

public void save(List<BBCode> bbcodes)
          throws Exception
Saves a list of BBCodes.

Specified by:
save in interface BBCodeService
Parameters:
bbcodes - List of BBCodes to save
Throws:
Exception

addBBCode

public void addBBCode(BBCode code)
Adds BBCode.

Parameters:
code -


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.