|
|||||||||
| 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.inventory.logic.impl.CategoryControllerImpl
public class CategoryControllerImpl
Implementation of CategoryController interface to manage categories.
| Field Summary | |
|---|---|
protected org.opensubsystems.security.logic.AuthorizationController |
m_authorityControl
Authorization controller used to check access rights. |
protected CategoryFactory |
m_categoryFactory
Factory to use to execute persistence operations. |
| Constructor Summary | |
|---|---|
CategoryControllerImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
protected int |
checkAccess(int iId,
int iAction)
Check access for given data object based on categories on which rights can be enforces. |
void |
constructor()
|
org.opensubsystems.core.data.DataObject |
create(org.opensubsystems.core.data.DataObject data)
|
void |
delete(int iId)
|
int |
deleteRoots(int[] arrIds)
Delete root categories which are caetgories that have no parents. |
org.opensubsystems.core.data.DataObject |
get(int iId)
|
org.opensubsystems.security.data.SecurityDefinition[] |
getSecurityDefinitions()
|
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 CategoryFactory m_categoryFactory
protected org.opensubsystems.security.logic.AuthorizationController m_authorityControl
| Constructor Detail |
|---|
public CategoryControllerImpl()
| Method Detail |
|---|
public org.opensubsystems.core.data.DataObject get(int iId)
throws org.opensubsystems.core.error.OSSException
get in interface org.opensubsystems.core.logic.DataControllerorg.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.BasicDataControllerorg.opensubsystems.core.error.OSSException
public void delete(int iId)
throws org.opensubsystems.core.error.OSSException
delete in interface org.opensubsystems.core.logic.BasicDataControllerorg.opensubsystems.core.error.OSSException
public int deleteRoots(int[] arrIds)
throws org.opensubsystems.core.error.OSSException,
java.rmi.RemoteException
deleteRoots in interface CategoryControllerarrIds - - array of category IDs that have to be deleted
org.opensubsystems.core.error.OSSException - - an error has occured
java.rmi.RemoteException - - required since this method can be called remotely
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.ModifiableDataControllerorg.opensubsystems.core.error.OSSExceptionpublic org.opensubsystems.security.data.SecurityDefinition[] getSecurityDefinitions()
getSecurityDefinitions in interface org.opensubsystems.security.logic.SecureController
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 int checkAccess(int iId,
int iAction)
throws org.opensubsystems.core.error.OSSException
iId - - id of data object to checkiAction - - action to check for, one of the ActionConstants.RIGHT_XXX
constants
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 | ||||||||