@RelationshipResource(name="audit-entries", entityResource=AuditApplicationsEntityResource.class, title="Audit Application Entries") public class AuditApplicationsAuditEntriesRelation extends Object implements RelationshipResourceAction.Read<AuditEntry>, RelationshipResourceAction.ReadById<AuditEntry>, RelationshipResourceAction.Delete, RelationshipResourceAction.DeleteSet, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
AuditApplicationsAuditEntriesRelation() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
delete(String auditAppId,
String auditEntryId,
Parameters parameters) |
void |
deleteSet(String auditAppId,
Parameters parameters)
Deletes related entities from the collection
|
CollectionWithPagingInfo<AuditEntry> |
readAll(String auditAppId,
Parameters parameters)
Reads set the relationship entities from the collection using the related entityResourceId.
|
AuditEntry |
readById(String auditAppId,
String auditEntryId,
Parameters parameters) |
void |
setAudit(Audit audit) |
public AuditApplicationsAuditEntriesRelation()
public void setAudit(Audit audit)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public CollectionWithPagingInfo<AuditEntry> readAll(String auditAppId, Parameters parameters)
RelationshipResourceAction.Read
readAll
in interface RelationshipResourceAction.Read<AuditEntry>
auditAppId
- Entity resource context for this relationshipparameters
- - will never be null and will have the PAGING default valuespublic AuditEntry readById(String auditAppId, String auditEntryId, Parameters parameters) throws RelationshipResourceNotFoundException
readById
in interface RelationshipResourceAction.ReadById<AuditEntry>
RelationshipResourceNotFoundException
public void delete(String auditAppId, String auditEntryId, Parameters parameters) throws RelationshipResourceNotFoundException
delete
in interface RelationshipResourceAction.Delete
RelationshipResourceNotFoundException
public void deleteSet(String auditAppId, Parameters parameters) throws RelationshipResourceNotFoundException
RelationshipResourceAction.DeleteSet
deleteSet
in interface RelationshipResourceAction.DeleteSet
auditAppId
- Entity resource context for this relationshipparameters
- implementation may choose to restrict the set to be be deleted based on params (ie. not necessarily "all")RelationshipResourceNotFoundException
Copyright © 2005–2017 Alfresco Software. All rights reserved.