public class FolderContents extends Object
| Constructor and Description |
|---|
FolderContents() |
| Modifier and Type | Method and Description |
|---|---|
protected List<FolderDetails> |
addEntriesToFolders(String userId,
List<Long> entries,
List<FolderDetails> folders)
Attempts to add the specified list of entries to the specified folder destinations.
|
protected FolderDetails |
addEntriesToTransferredFolder(List<Long> entries,
Folder folder) |
List<FolderDetails> |
addEntrySelection(String userId,
EntrySelection entryLocation)
Adds entries in the selection context, to specified folders
|
protected List<FolderDetails> |
addRemoteEntries(String userId,
List<PartData> remoteEntries,
List<FolderDetails> folders) |
protected void |
addToRemoteFolder(Account account,
Folder folder,
List<Long> entries) |
protected List<AccessPermission> |
getAndFilterFolderPermissions(String userId,
Folder folder)
The permission(s) enabling the share for user
is(are) included.
|
FolderDetails |
getContents(String userId,
long folderId,
PageParameters pageParameters)
Retrieves the folder specified in the parameter and contents
|
protected FolderDetails |
getRemoteContents(String userId,
Folder folder,
PageParameters pageParameters)
Retrieves contents of a folder that has been shared remotely with this instance
|
FolderDetails |
getRemotelySharedContents(String remoteUserId,
String token,
RegistryPartner partner,
long folderId,
PageParameters pageParameters) |
boolean |
remotelyAddEntrySelection(String remoteUserId,
long folderId,
String remoteUserToken,
EntrySelection selection,
RegistryPartner requestingPartner) |
boolean |
removeFolderContents(String userId,
long folderId,
EntrySelection selection,
boolean move)
Removes the specified contents of a folder, optionally adding them to another folder
|
public boolean remotelyAddEntrySelection(String remoteUserId, long folderId, String remoteUserToken, EntrySelection selection, RegistryPartner requestingPartner)
protected List<FolderDetails> addRemoteEntries(String userId, List<PartData> remoteEntries, List<FolderDetails> folders)
remoteEntries - list of entries that map to entries on other ICE instances. It contains enough information
for the table view (as a cache)folders - list of folders that the remote entries are to be added topublic List<FolderDetails> addEntrySelection(String userId, EntrySelection entryLocation)
userId - unique identifier for user making requestentryLocation - entry selection context which also contains the folders to
add the entries obtained from the context toprotected FolderDetails addEntriesToTransferredFolder(List<Long> entries, Folder folder)
public boolean removeFolderContents(String userId, long folderId, EntrySelection selection, boolean move)
userId - unique identifier for user making requestfolderId - unique identifier for folder whose (specified) entries are being removedselection - wrapper around the selection context for the contentsmove - true, if the contents are to be added to another (set of) folder(s) (which should be specified in
selection parameter)protected List<FolderDetails> addEntriesToFolders(String userId, List<Long> entries, List<FolderDetails> folders)
userId - unique identifier for user making requestentries - list of entry identifiers to be added. Specified user must have read privileges on any
that are to be addedfolders - list of folders that that entries are to be added toprotected void addToRemoteFolder(Account account, Folder folder, List<Long> entries)
public FolderDetails getContents(String userId, long folderId, PageParameters pageParameters)
userId - unique identifier for user making request. If null, folder must have public read privsfolderId - unique identifier for folder to be retrievedpageParameters - paging parametersPermissionException - if user does not have read permissions on folderprotected FolderDetails getRemoteContents(String userId, Folder folder, PageParameters pageParameters)
userId - user folder is shared withfolder - remote shared folderIllegalArgumentException - if the folder is not of type REMOTEpublic FolderDetails getRemotelySharedContents(String remoteUserId, String token, RegistryPartner partner, long folderId, PageParameters pageParameters)
protected List<AccessPermission> getAndFilterFolderPermissions(String userId, Folder folder)
e.g. if a folder F is shared with groups A and B and the user is a non-admin belonging to group B, folder F will be included in the list of folders returned but will only include permissions for group B
userId - identifier for user making requestfolder - Folder whose permissions are to be retrievedCopyright © 2017. All rights reserved.