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

Implementation of BBCodeService that manages BBCodes in memory

Version:
$Revision$
Author:
Patrice Lamarque

Constructor Summary
MemoryBBCodeService()
           
 
Method Summary
 void addBBCode(BBCode code)
           
 void delete(String bbcodeId)
          Delete an existing BBCode
 BBCode findById(String bbcodeId)
          Load a specific BBCode
 List<String> getActive()
          Retrieve BBCode IDs that are active
 List<BBCode> getAll()
          Retrieve all BBCodes
 void registerBBCodePlugin(BBCodePlugin plugin)
          Register a new BBCode plugin
 void save(List<BBCode> bbcodes)
          Save 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
Description copied from interface: BBCodeService
Delete an existing BBCode

Specified by:
delete in interface BBCodeService
Throws:
Exception

findById

public BBCode findById(String bbcodeId)
                throws Exception
Description copied from interface: BBCodeService
Load a specific BBCode

Specified by:
findById in interface BBCodeService
Parameters:
bbcodeId - ID of the BBCode
Returns:
Throws:
Exception

getActive

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

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

getAll

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

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
Register a new BBCode plugin

Specified by:
registerBBCodePlugin in interface BBCodeService
Throws:
Exception

save

public void save(List<BBCode> bbcodes)
          throws Exception
Description copied from interface: BBCodeService
Save 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)


Copyright © 2013 eXo Platform SAS. All Rights Reserved.