org.exoplatform.forum.bbcode.api
Interface BBCodeService

All Known Implementing Classes:
BBCodeServiceImpl, CachedBBCodeService

public interface BBCodeService

Main Facade for all BBCode related operations.

Version:
$Revision$

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.
 

Method Detail

registerBBCodePlugin

void registerBBCodePlugin(BBCodePlugin plugin)
                          throws Exception
Registers a new BBCode plugin.

Parameters:
plugin - The plugin to be registered.
Throws:
Exception

save

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

Parameters:
bbcodes - BBCodes to be saved.
Throws:
Exception

getAll

List<BBCode> getAll()
                    throws Exception
Retrieves all BBCodes.

Returns:
BBCodes.
Throws:
Exception

getActive

List<String> getActive()
                       throws Exception
Retrieves BBCode Ids that are active.

Returns:
BBCode Ids.
Throws:
Exception

getBBCodeActive

List<BBCode> getBBCodeActive()
                             throws Exception
Gets all active BBCodes.

Returns:
BBCodes.
Throws:
Exception

findById

BBCode findById(String bbcodeId)
                throws Exception
Loads a BBCode by its given Id.

Parameters:
bbcodeId - Id of the loaded BBCode.
Returns:
The BBCode.
Throws:
Exception

delete

void delete(String bbcodeId)
            throws Exception
Deletes an existing BBCode.

Parameters:
bbcodeId - Id of the deleted BBCode.
Throws:
Exception


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.