public interface EntityServiceRemote
EntityService
Modifier and Type | Method and Description |
---|---|
List<ItemCollection> |
_findAllEntities(String query,
int startpos,
int count)
The method returns a collection of ItemCollections.
|
ItemCollection |
_load(String id)
This method loads an ItemCollection from the Database.
|
void |
_remove(ItemCollection itemcol)
This method removes an ItemCollection from the database.
|
ItemCollection |
_save(ItemCollection itemcol)
This Method saves an ItemCollection into a database.
|
void |
addIndex(String stitel,
int ityp)
Adds an EntityIndex to the current list of external properties.
|
List<ItemCollection> |
findChildEntities(ItemCollection entity,
int startpos,
int count)
The method returns a collection of child ItemCollections.
|
ItemCollection |
findParentEntity(ItemCollection entity)
The method returns the parent ItemCollection to a given ItemCollection.
|
String |
getAccessRoles()
Returns additional AccessRoles defined for the EJB instance
|
Boolean |
getDisableOptimisticLocking() |
Map<String,Integer> |
getIndices() |
String |
getReadAccessFields()
Returns additional ReadAccessFields defined for the EJB instance.
|
String |
getWriteAccessFields()
Returns additional WriteAccessFields defined for the EJB instance.
|
void |
removeIndex(String stitel)
Removes an EntityIndex from the current list of external properties.
|
void |
setAccessRoles(String accessRoles) |
void |
setDisableOptimisticLocking(Boolean disableOptimisticLocking)
returns the disable optimistic locking status
|
void |
setReadAccessFields(String readAccessFields) |
void |
setWriteAccessFields(String writeAccessFields) |
String getAccessRoles()
void setAccessRoles(String accessRoles)
String getReadAccessFields()
void setReadAccessFields(String readAccessFields)
String getWriteAccessFields()
void setWriteAccessFields(String writeAccessFields)
void setDisableOptimisticLocking(Boolean disableOptimisticLocking)
Boolean getDisableOptimisticLocking()
ItemCollection _save(ItemCollection itemcol) throws 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 savedAccessDeniedException
ItemCollection _load(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 loadedvoid _remove(ItemCollection itemcol) throws AccessDeniedException
The CallerPrincipial should have at least the access Role org.imixs.ACCESSLEVEL.AUTHORACCESS
ItemCollection
- to be removedAccessDeniedException
void addIndex(String stitel, int ityp) throws AccessDeniedException
stitel
- ityp
- - Type of EntityIndexAccessDeniedException
void removeIndex(String stitel) throws AccessDeniedException
stitel
- AccessDeniedException
List<ItemCollection> _findAllEntities(String query, int startpos, int count) throws InvalidAccessException
query
- startpos
- count
- InvalidAccessException
ItemCollection findParentEntity(ItemCollection entity) throws InvalidAccessException
childentity
- InvalidAccessException
List<ItemCollection> findChildEntities(ItemCollection entity, int startpos, int count) throws InvalidAccessException
parententity
- startpos
- count
- InvalidAccessException
findParentEntity
Copyright © 2006–2019 Imixs Software Solutions GmbH. All rights reserved.