|
|||||||||
| 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.patterns.listdata.logic.impl.ListControllerImpl
public class ListControllerImpl
This controller handles all functionality connected with listing of data objects by pages, filtered with filters, sorted by columns, secured by access rights, and maybe much more in the future. You can use instances of this controller directly without the need to derive any new classes or code any new functionality. Just get instance of the controller from the controller manager, create list options and invoke the method of this controller you are interested in.
| Field Summary | |
|---|---|
protected static java.lang.String |
IMPL_LOCK
Lock used in synchronized sections. |
| Constructor Summary | |
|---|---|
ListControllerImpl()
|
|
| Method Summary | |
|---|---|
void |
constructor()
|
protected ListDefinition |
getDefinition(ListFactory factory,
ListOptions options)
Get list definition to use for specified options. |
java.util.List |
getDefinitionList(int iDataType)
Get definition list (list of generic data) |
java.lang.Object[] |
getExactPage(ListOptions options)
Get list for some specific page. |
java.lang.Object[] |
getNextPage(ListOptions options)
Get list for next page. |
java.lang.Object[] |
getPreviousPage(ListOptions options)
Get list for previous page. |
protected SimpleRule |
getSecurityFilter(ListFactory factory,
ListOptions options)
Get security filter for this list definiting what data object is user authorized to access. |
java.lang.Object[] |
getSetDefinition(ListOptions options)
Get list after list definition has changed.. |
java.lang.Object[] |
getSetOrder(ListOptions options)
Get list after order column changed. |
java.lang.Object[] |
getSetPageSize(ListOptions options)
Get list after page size changed. |
java.lang.Object[] |
getShowList(ListOptions options)
Get default list, which is the list to show when the list is displayed the first time. |
protected java.lang.Object[] |
postprocess(ListOptions options,
java.util.List objectList,
ListFactory factory)
Postprocess list of retrieved data objectcts. |
protected ListFactory |
preprocess(ListOptions options)
Preprocess list options before the list controller functionality is invoked |
| 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 static final java.lang.String IMPL_LOCK
| Constructor Detail |
|---|
public ListControllerImpl()
| Method Detail |
|---|
public java.lang.Object[] getShowList(ListOptions options)
throws org.opensubsystems.core.error.OSSException
getShowList in interface ListControlleroptions - - list options
org.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.Object[] getSetDefinition(ListOptions options)
throws org.opensubsystems.core.error.OSSException
getSetDefinition in interface ListControlleroptions - - list options
org.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.Object[] getSetOrder(ListOptions options)
throws org.opensubsystems.core.error.OSSException
getSetOrder in interface ListControlleroptions - - list options
org.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.Object[] getSetPageSize(ListOptions options)
throws org.opensubsystems.core.error.OSSException
getSetPageSize in interface ListControlleroptions - - list options
org.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.Object[] getPreviousPage(ListOptions options)
throws org.opensubsystems.core.error.OSSException
getPreviousPage in interface ListControlleroptions - - list options
org.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.Object[] getNextPage(ListOptions options)
throws org.opensubsystems.core.error.OSSException
getNextPage in interface ListControlleroptions - - list options
org.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.Object[] getExactPage(ListOptions options)
throws org.opensubsystems.core.error.OSSException
getExactPage in interface ListControlleroptions - - list options
org.opensubsystems.core.error.OSSException - - an error has occured
public java.util.List getDefinitionList(int iDataType)
throws org.opensubsystems.core.error.OSSException
getDefinitionList in interface ListControlleriDataType - - datatype of the object
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.OSSException
protected SimpleRule getSecurityFilter(ListFactory factory,
ListOptions options)
throws org.opensubsystems.core.error.OSSException
factory - - list factory for given optionsoptions - - list options
org.opensubsystems.core.error.OSSException - - an erro has occured
protected ListDefinition getDefinition(ListFactory factory,
ListOptions options)
throws org.opensubsystems.core.error.OSSException
factory - - list factory for given optionsoptions - - list options to get the definition for
org.opensubsystems.core.error.OSSException - - an error has occured
protected ListFactory preprocess(ListOptions options)
throws org.opensubsystems.core.error.OSSException
options - - list options to preprocess
org.opensubsystems.core.error.OSSException - - an error has occured during preprocessing
protected java.lang.Object[] postprocess(ListOptions options,
java.util.List objectList,
ListFactory factory)
throws org.opensubsystems.core.error.OSSException
options - - list options to postprocessobjectList - - list of retrieved data objectsfactory - - list factory to use to load the data
org.opensubsystems.core.error.OSSException - - an error has occured during preprocessing
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||