|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EntityService
The EntityService is used to save and load instances of ItemCollection into a Database. The EntityService throws an AccessDeniedException if the CallerPrincipal is not allowed to save or read a specific ItemCollection from the database. So the EntityService can be used to save business objects into a database with individual read- or writeAccess restrictions.
| Field Summary | |
|---|---|
static int |
TYP_AUTHOR
|
static int |
TYP_CALENDAR
|
static int |
TYP_DOUBLE
|
static int |
TYP_INT
|
static int |
TYP_READER
|
static int |
TYP_TEXT
|
| Method Summary | |
|---|---|
void |
addIndex(java.lang.String stitel,
int ityp)
Adds an EntityIndex to the current list of external properties. |
java.util.Collection<org.imixs.workflow.ItemCollection> |
findAllEntities(java.lang.String query,
int startpos,
int count)
The method returns a collection of ItemCollections. |
java.util.Collection<EntityIndex> |
findAllEntityIndices()
The method returns a list of EntityIndex which defines external properties |
java.lang.String |
getAccessRoles()
Returns additional AccessRoles defined for the EJB instance |
java.lang.String |
getReadAccessFields()
Returns additional ReadAccessFields defined for the EJB instance. |
java.lang.String |
getWriteAccessFields()
Returns additional WriteAccessFields defined for the EJB instance. |
org.imixs.workflow.ItemCollection |
load(java.lang.String id)
This method loads an ItemCollection from the Database. |
void |
remove(org.imixs.workflow.ItemCollection itemcol)
This method removes an ItemCollection from the database. |
void |
removeIndex(java.lang.String stitel)
Removes an EntityIndex from the current list of external properties. |
org.imixs.workflow.ItemCollection |
save(org.imixs.workflow.ItemCollection itemcol)
This Method saves an ItemCollection into a database. |
| Field Detail |
|---|
static final int TYP_TEXT
static final int TYP_INT
static final int TYP_DOUBLE
static final int TYP_CALENDAR
static final int TYP_READER
static final int TYP_AUTHOR
| Method Detail |
|---|
java.lang.String getAccessRoles()
java.lang.String getReadAccessFields()
java.lang.String getWriteAccessFields()
org.imixs.workflow.ItemCollection save(org.imixs.workflow.ItemCollection itemcol)
throws org.imixs.workflow.exceptions.AccessDeniedException
The method throws an AccessDeniedException if the CallerPrincipal is not allowed to save or update the ItemCollection in the database. The CallerPrincipial should have at least the access Role org.imixs.ACCESSLEVEL.AUTHORACCESS
ItemCollection - to be saved
org.imixs.workflow.exceptions.AccessDeniedExceptionorg.imixs.workflow.ItemCollection load(java.lang.String id)
The method checks also if the CallerPrincipal has read access to ItemCollection stored in the database. If not the method returns null. The method dose not throw an AccessDeniedException if the user is not allowed to read the entity to prevent a aggressor with informations about the existence of that specific ItemCollection.
CallerPrincipial should have at least the access Role org.imixs.ACCESSLEVEL.READACCESS
id - the $unqiueid of the ItemCollection to be loaded
void remove(org.imixs.workflow.ItemCollection itemcol)
throws org.imixs.workflow.exceptions.AccessDeniedException,
org.imixs.workflow.exceptions.InvalidWorkitemException
The CallerPrincipial should have at least the access Role org.imixs.ACCESSLEVEL.AUTHORACCESS
ItemCollection - to be removed
java.lang.Exception
org.imixs.workflow.exceptions.AccessDeniedException
org.imixs.workflow.exceptions.InvalidWorkitemException
void addIndex(java.lang.String stitel,
int ityp)
throws java.lang.Exception
stitel - ityp - - Type of EntityIndex
java.lang.Exception
void removeIndex(java.lang.String stitel)
throws java.lang.Exception
stitel -
java.lang.Exceptionjava.util.Collection<EntityIndex> findAllEntityIndices()
java.util.Collection<org.imixs.workflow.ItemCollection> findAllEntities(java.lang.String query,
int startpos,
int count)
query - startpos - count -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||