|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.logic.impl.StatelessControllerImpl
org.opensubsystems.core.logic.impl.DataControllerImpl
org.opensubsystems.core.logic.impl.BasicDataControllerImpl
org.opensubsystems.core.logic.impl.ModifiableDataControllerImpl
org.opensubsystems.blog.logic.impl.BlogControllerImpl
public class BlogControllerImpl
The main entry point to all business functionality connected with blogs. View-type has to be set to local due to bug XDT-867 affecting WebSphere Refs has to be set to local JNDI name since we do not want to use remote objects.
| Field Summary | |
|---|---|
protected BlogFactory |
m_blogFactory
Factory to use to execute persistence operations. |
protected EntryFactory |
m_entryFactory
Factory to use to execute persistence operations. |
| Constructor Summary | |
|---|---|
BlogControllerImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
constructor()
|
org.opensubsystems.core.data.DataObject |
create(org.opensubsystems.core.data.DataObject data)
|
void |
delete(int iId)
|
void |
deleteEntry(int iBlogEntryId)
Delete entry. |
org.opensubsystems.core.data.DataObject |
get(int iId)
|
Blog |
get(java.lang.String strFolder)
Get blog knowing just the folder where it's entries are displayed. |
java.util.List |
getAll()
Get all blogs. |
protected org.opensubsystems.core.persist.DataFactory |
getDataFactory()
|
protected org.opensubsystems.core.persist.BasicDataFactory |
getDataFactory(org.opensubsystems.core.data.DataObject data)
|
java.util.List |
getEntries(int iBlogId)
Get all entries for a given blog. |
java.lang.Object[] |
getWithEntries(java.lang.String strFolder)
Get blog and its entries knowing just the folder where it's entries are displayed. |
java.lang.Object[] |
getWithEntry(int iBlogId,
int iEntryId)
Get blog and entry knowing just the id of the blog and the id of the entry. |
java.lang.Object[] |
getWithEntry(java.lang.String strFolder,
int iEntryId)
Get blog and entry knowing just the folder where the entry are displayed and the id of the entry. |
org.opensubsystems.core.data.ModifiableDataObject |
save(org.opensubsystems.core.data.ModifiableDataObject data)
|
| Methods inherited from class org.opensubsystems.core.logic.impl.StatelessControllerImpl |
|---|
ejbActivate, ejbPassivate, ejbRemove, setSessionContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BlogFactory m_blogFactory
protected EntryFactory m_entryFactory
| Constructor Detail |
|---|
public BlogControllerImpl()
| Method Detail |
|---|
public Blog get(java.lang.String strFolder)
throws org.opensubsystems.core.error.OSSException
get in interface BlogControllerstrFolder - - folder where entries for given folder are displayed
org.opensubsystems.core.error.OSSException - - an error has occured
public java.util.List getEntries(int iBlogId)
throws org.opensubsystems.core.error.OSSException
getEntries in interface BlogControlleriBlogId - - id of a blog to get entries for
org.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.Object[] getWithEntries(java.lang.String strFolder)
throws org.opensubsystems.core.error.OSSException
getWithEntries in interface BlogControllerstrFolder - - folder where entries for given folder are displayed
org.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.Object[] getWithEntry(java.lang.String strFolder,
int iEntryId)
throws org.opensubsystems.core.error.OSSException
getWithEntry in interface BlogControllerstrFolder - - folder where entries for given folder are displayediEntryId - - id of the blog entry to load
org.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.Object[] getWithEntry(int iBlogId,
int iEntryId)
throws org.opensubsystems.core.error.OSSException
getWithEntry in interface BlogControlleriBlogId - - id of the blog to loadiEntryId - - id of the blog entry to load
org.opensubsystems.core.error.OSSException - - an error has occured
public java.util.List getAll()
throws org.opensubsystems.core.error.OSSException
getAll in interface BlogControllerorg.opensubsystems.core.error.OSSException - - an error has occured
public void deleteEntry(int iBlogEntryId)
throws org.opensubsystems.core.error.OSSException
deleteEntry in interface BlogControlleriBlogEntryId - - id of the entry to delete
org.opensubsystems.core.error.OSSException - - an error has occured
public void constructor()
throws org.opensubsystems.core.error.OSSException
constructor in interface org.opensubsystems.core.logic.StatelessControllerconstructor in class org.opensubsystems.core.logic.impl.StatelessControllerImplorg.opensubsystems.core.error.OSSExceptionprotected org.opensubsystems.core.persist.DataFactory getDataFactory()
getDataFactory in class org.opensubsystems.core.logic.impl.DataControllerImplprotected org.opensubsystems.core.persist.BasicDataFactory getDataFactory(org.opensubsystems.core.data.DataObject data)
getDataFactory in class org.opensubsystems.core.logic.impl.BasicDataControllerImpl
public org.opensubsystems.core.data.ModifiableDataObject save(org.opensubsystems.core.data.ModifiableDataObject data)
throws org.opensubsystems.core.error.OSSException
save in interface org.opensubsystems.core.logic.ModifiableDataControllersave in class org.opensubsystems.core.logic.impl.ModifiableDataControllerImplorg.opensubsystems.core.error.OSSException
public org.opensubsystems.core.data.DataObject create(org.opensubsystems.core.data.DataObject data)
throws org.opensubsystems.core.error.OSSException
create in interface org.opensubsystems.core.logic.BasicDataControllercreate in class org.opensubsystems.core.logic.impl.BasicDataControllerImplorg.opensubsystems.core.error.OSSException
public void delete(int iId)
throws org.opensubsystems.core.error.OSSException
delete in interface org.opensubsystems.core.logic.BasicDataControllerdelete in class org.opensubsystems.core.logic.impl.BasicDataControllerImplorg.opensubsystems.core.error.OSSException
public org.opensubsystems.core.data.DataObject get(int iId)
throws org.opensubsystems.core.error.OSSException
get in interface org.opensubsystems.core.logic.DataControllerget in class org.opensubsystems.core.logic.impl.DataControllerImplorg.opensubsystems.core.error.OSSException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||