accountDAO, entryDAO
Constructor and Description |
---|
EntryController() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEdit(String userId,
String depositor,
Entry entry) |
UserComment |
createEntryComment(String userId,
long partId,
UserComment newComment) |
boolean |
deleteShotgunSequence(String userId,
long entryId,
long shotgunId) |
boolean |
deleteTraceSequence(String userId,
long entryId,
long traceId) |
PartData |
getRequestedEntry(String remoteUserId,
String token,
String entryId,
long folderId,
RegistryPartner requestingPartner) |
boolean |
moveEntriesToTrash(String userId,
ArrayList<PartData> list)
Moves the specified list of entries to the deleted folder.
|
ArrayList<UserComment> |
retrieveEntryComments(String userId,
long partId) |
protected PartData |
retrieveEntryDetails(String userId,
Entry entry) |
PartData |
retrieveEntryDetails(String userId,
String id) |
PartStatistics |
retrieveEntryStatistics(String userId,
long entryId) |
PartData |
retrieveEntryTipDetails(String id) |
void |
update(String userId,
Entry entry) |
UserComment |
updateEntryComment(String userId,
long partId,
long commentId,
UserComment userComment) |
long |
updatePart(String userId,
long partId,
PartData part)
Update the information associated with the specified part.
Note that any missing information will be deleted from the original entry. |
public long updatePart(String userId, long partId, PartData part)
partId
has an alias value
of alias
and the part object passed in the parameter does not contain this value,
when this method returns, the original entry's alias field will be removed.userId
- unique identifier for user making requestpartId
- unique identifier for part being updated. This overrides the id in the partData objectpart
- information to update part withIllegalArgumentException
- if the entry associated with the partId cannot be locatedpublic ArrayList<UserComment> retrieveEntryComments(String userId, long partId)
public UserComment createEntryComment(String userId, long partId, UserComment newComment)
public UserComment updateEntryComment(String userId, long partId, long commentId, UserComment userComment)
public boolean deleteTraceSequence(String userId, long entryId, long traceId)
public boolean deleteShotgunSequence(String userId, long entryId, long shotgunId)
public PartStatistics retrieveEntryStatistics(String userId, long entryId)
public boolean moveEntriesToTrash(String userId, ArrayList<PartData> list)
userId
- unique identifier for user making the request. Must have write access privileges on the
entries in the listlist
- unique identifiers for entriespublic PartData getRequestedEntry(String remoteUserId, String token, String entryId, long folderId, RegistryPartner requestingPartner)
protected PartData retrieveEntryDetails(String userId, Entry entry) throws PermissionException
PermissionException
Copyright © 2017. All rights reserved.