|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AdminEntityService
| Method Summary | |
|---|---|
Entity |
addEntity(EntityForm entityForm,
String[] customCriteria)
Persists the given entity |
Entity |
addSubCollectionEntity(EntityForm entityForm,
ClassMetadata mainMetadata,
Property field,
Entity parentEntity)
Adds an item into the specified collection |
Entity |
getAdvancedCollectionRecord(ClassMetadata containingClassMetadata,
Entity containingEntity,
Property collectionProperty,
String collectionItemId)
Gets an Entity representing a specific collection item |
ClassMetadata |
getClassMetadata(PersistencePackageRequest request)
Returns class metadata for the given request object |
String |
getContextSpecificRelationshipId(ClassMetadata cmd,
Entity entity,
String propertyName)
Returns the appropriate id to use for the given entity/metadata and prefix when dealing with collections. |
Entity |
getRecord(PersistencePackageRequest request,
String id)
Returns a specific record for the given request and primary key id |
Entity[] |
getRecords(PersistencePackageRequest request)
Returns an Entity[] representing the records that were found for the given request. |
Map<String,Entity[]> |
getRecordsForAllSubCollections(PersistencePackageRequest ppr,
Entity containingEntity)
Returns all records for all subcollections of the specified request and its primary key |
Entity[] |
getRecordsForCollection(ClassMetadata containingClassMetadata,
Entity containingEntity,
Property collectionProperty,
FilterAndSortCriteria[] criteria)
Returns the Entity[] representing the records that belong to the specified collectionProperty for the given containingClass and the primary key for the containingClass |
void |
removeEntity(EntityForm entityForm,
String[] customCriteria)
Removes the given entity |
void |
removeSubCollectionEntity(ClassMetadata mainMetadata,
Property field,
Entity parentEntity,
String itemId,
String priorKey)
Removes the given item from the specified collection. |
Entity |
updateEntity(EntityForm entityForm,
String[] customCriteria)
Updates the given entity |
Entity |
updateSubCollectionEntity(EntityForm entityForm,
ClassMetadata mainMetadata,
Property field,
Entity parentEntity,
String collectionItemId)
Updates the specified collection item |
| Method Detail |
|---|
ClassMetadata getClassMetadata(PersistencePackageRequest request)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
request -
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
Entity[] getRecords(PersistencePackageRequest request)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
request -
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
Entity getRecord(PersistencePackageRequest request,
String id)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
request - id -
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
Entity addEntity(EntityForm entityForm,
String[] customCriteria)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
entityForm - customCriteria -
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
Entity updateEntity(EntityForm entityForm,
String[] customCriteria)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
entityForm - customCriteria -
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
void removeEntity(EntityForm entityForm,
String[] customCriteria)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
entityForm - customCriteria -
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
Entity getAdvancedCollectionRecord(ClassMetadata containingClassMetadata,
Entity containingEntity,
Property collectionProperty,
String collectionItemId)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
containingClassMetadata - containingEntity - collectionProperty - collectionItemId -
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
Entity[] getRecordsForCollection(ClassMetadata containingClassMetadata,
Entity containingEntity,
Property collectionProperty,
FilterAndSortCriteria[] criteria)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
containingClassMetadata - containingEntity - collectionProperty -
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
Map<String,Entity[]> getRecordsForAllSubCollections(PersistencePackageRequest ppr,
Entity containingEntity)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
ppr - containingEntity -
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException#getRecordsForCollection(ClassMetadata, String, Property)
Entity addSubCollectionEntity(EntityForm entityForm,
ClassMetadata mainMetadata,
Property field,
Entity parentEntity)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException,
ClassNotFoundException
entityForm - mainMetadata - field - parentEntity -
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
ClassNotFoundException
Entity updateSubCollectionEntity(EntityForm entityForm,
ClassMetadata mainMetadata,
Property field,
Entity parentEntity,
String collectionItemId)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException,
ClassNotFoundException
entityForm - mainMetadata - field - parentEntity - collectionItemId -
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
ClassNotFoundException
void removeSubCollectionEntity(ClassMetadata mainMetadata,
Property field,
Entity parentEntity,
String itemId,
String priorKey)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
mainMetadata - field - parentId - itemId - priorKey - - only needed for Map type collections
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
String getContextSpecificRelationshipId(ClassMetadata cmd,
Entity entity,
String propertyName)
cmd - entity - propertyName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||