|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.forum.bbcode.core.BBCodeServiceImpl
public class BBCodeServiceImpl
Managed service implementation for BBCodeService.
Stores BBCodes in JCR at KSDataLocation.getBBCodesLocation()
| Field Summary | |
|---|---|
static String |
BBCODE_HOME_NODE_TYPE
|
static String |
BBCODE_NODE_TYPE
|
| Constructor Summary | |
|---|---|
BBCodeServiceImpl()
|
|
BBCodeServiceImpl(org.exoplatform.forum.common.jcr.KSDataLocation dataLocator)
|
|
| Method Summary | |
|---|---|
void |
delete(String bbcodeId)
Deletes an existing BBCode. |
BBCode |
findById(String id)
Loads a specific BBCode. |
List<String> |
getActive()
Retrieves BBCode IDs that are active. |
List<BBCode> |
getAll()
Retrieves all BBCodes. |
org.exoplatform.forum.common.jcr.KSDataLocation |
getDataLocator()
|
List<BBCodePlugin> |
getPlugins()
|
void |
initDefaultBBCodes()
|
void |
registerBBCodePlugin(BBCodePlugin plugin)
Registers a new BBCode plugin. |
void |
save(List<BBCode> bbcodes)
Saves a list of BBCodes. |
void |
setContext(org.exoplatform.management.ManagementContext context)
|
void |
setDataLocator(org.exoplatform.forum.common.jcr.KSDataLocation dataLocator)
|
void |
setPlugins(List<BBCodePlugin> plugins)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String BBCODE_NODE_TYPE
public static final String BBCODE_HOME_NODE_TYPE
| Constructor Detail |
|---|
public BBCodeServiceImpl()
public BBCodeServiceImpl(org.exoplatform.forum.common.jcr.KSDataLocation dataLocator)
| Method Detail |
|---|
public void registerBBCodePlugin(BBCodePlugin plugin)
throws Exception
registerBBCodePlugin in interface BBCodeServiceException
public void initDefaultBBCodes()
throws Exception
Exception
public void save(List<BBCode> bbcodes)
throws Exception
save in interface BBCodeServicebbcodes - List of BBCodes to save
Exception
public List<BBCode> getAll()
throws Exception
getAll in interface BBCodeServiceException
public List<String> getActive()
throws Exception
getActive in interface BBCodeServiceException
public BBCode findById(String id)
throws Exception
findById in interface BBCodeServiceid - ID of the BBCode
Exception
public void delete(String bbcodeId)
throws Exception
delete in interface BBCodeServicebbcodeId - the id of BBCode to be deleted
Exceptionpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic void setContext(org.exoplatform.management.ManagementContext context)
setContext in interface org.exoplatform.management.ManagementAwarepublic org.exoplatform.forum.common.jcr.KSDataLocation getDataLocator()
public void setDataLocator(org.exoplatform.forum.common.jcr.KSDataLocation dataLocator)
public List<BBCodePlugin> getPlugins()
public void setPlugins(List<BBCodePlugin> plugins)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||