|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CategoryFactory
Methods to create, retrieve and manipulate categories in the persistence store.
| Method Summary | |
|---|---|
int |
deleteRoot(int iId,
org.opensubsystems.patterns.listdata.data.SimpleRule listSecurityData)
Delete root category with all subcategories contained in this category. |
int |
deleteRoots(int[] arrIds,
org.opensubsystems.patterns.listdata.data.SimpleRule listSecurityData)
Delete all specified root categories with all its subcategories contained in. |
Category |
get(int iParentId,
java.lang.String strName)
Get category based on unique combination of name and parent id. |
int |
getActualCount(int[] arrIds)
Get actual number of categories that still exists within the DB. |
boolean |
verifyUniqueCategory(Category category)
Get result for category existence. |
| Methods inherited from interface org.opensubsystems.core.persist.ModifiableDataFactory |
|---|
save |
| Methods inherited from interface org.opensubsystems.core.persist.BasicDataFactory |
|---|
create, create, delete |
| Methods inherited from interface org.opensubsystems.core.persist.DataFactory |
|---|
get, getDataType |
| Methods inherited from interface org.opensubsystems.patterns.listdata.persist.ListFactory |
|---|
get, getDefaultListDefinition |
| Method Detail |
|---|
Category get(int iParentId,
java.lang.String strName)
throws org.opensubsystems.core.error.OSSException
iParentId - - parent id of the categorystrName - - name of the subcategory under given parent
org.opensubsystems.core.error.OSSException - - an error has occured
int deleteRoot(int iId,
org.opensubsystems.patterns.listdata.data.SimpleRule listSecurityData)
throws org.opensubsystems.core.error.OSSException
iId - - id of category that has to be deletedlistSecurityData - - security data describing what data can be deleted
org.opensubsystems.core.error.OSSException - - an error has occured
int deleteRoots(int[] arrIds,
org.opensubsystems.patterns.listdata.data.SimpleRule listSecurityData)
throws org.opensubsystems.core.error.OSSException
arrIds - - array of category ids that has to be deletedlistSecurityData - - security data describing what data can be deleted
org.opensubsystems.core.error.OSSException - - an error has occured
int getActualCount(int[] arrIds)
throws org.opensubsystems.core.error.OSSException
arrIds - - array of category IDs that has to be counted
org.opensubsystems.core.error.OSSException - - an error has occured
boolean verifyUniqueCategory(Category category)
throws org.opensubsystems.core.error.OSSException
category - - Category object
org.opensubsystems.core.error.OSSException - - an error has occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||