public class FolderController extends Object
Constructor and Description |
---|
FolderController() |
Modifier and Type | Method and Description |
---|---|
FolderDetails |
createPersonalFolder(String userId,
FolderDetails folderDetails) |
FolderDetails |
createTransferredFolder(FolderDetails folderDetails) |
FolderDetails |
delete(String userId,
long folderId,
FolderType type)
Deletes either a user folder or bulk upload (which is represented as a folder to the user)
|
protected FolderDetails |
demoteFolder(String userId,
Folder folder)
Opposite of FolderController#demoteFolder(userId, long)
Removes the folder from being a featured collections
|
protected Account |
getAccount(String userId) |
ArrayList<FolderDetails> |
getAvailableFolders(String userId)
Retrieves folders that have been "promoted" by an administrator to
imply that they are to be made available to everyone on the site
|
ArrayList<FolderDetails> |
getBulkUploadDrafts(String userId) |
ArrayList<FolderDetails> |
getPendingBulkUploads(String userId)
Retrieves information about submitted bulk uploads that have status "PENDING".
|
FolderDetails |
getPublicEntries(ColumnField sort,
int offset,
int limit,
boolean asc)
Retrieves entries that are made available publicly
|
ArrayList<FolderDetails> |
getPublicFolders()
Retrieves folders that are shared shared publicly.
|
ArrayList<FolderDetails> |
getSharedUserFolders(String userId)
Retrieves folders that have been shared with specified user as an individual or as part of a group.
|
ArrayList<FolderDetails> |
getTransferredFolders(String userId) |
ArrayList<FolderDetails> |
getUserFolders(String userId) |
protected FolderDetails |
promoteFolder(String userId,
Folder folder)
"Promote"s a collection into a featured collection.
|
FolderDetails |
update(String userId,
long folderId,
FolderDetails details)
Updates the folder referenced by the folderId with the passed folder details.
|
public ArrayList<FolderDetails> getAvailableFolders(String userId)
userId
- unique user identifierpublic ArrayList<FolderDetails> getPublicFolders()
public FolderDetails getPublicEntries(ColumnField sort, int offset, int limit, boolean asc)
sort
- order of retrieval for the entriesoffset
- start of retrievallimit
- maximum number of entries to retrieveasc
- whether to retrieve the entries in ascending orderpublic ArrayList<FolderDetails> getBulkUploadDrafts(String userId)
public ArrayList<FolderDetails> getPendingBulkUploads(String userId)
userId
- unique identifier for user performing action. Must have admin privilegespublic FolderDetails update(String userId, long folderId, FolderDetails details)
userId
- unique identifier for user making request. Must have write privilegesfolderId
- unique identifier for folder being updateddetails
- new details to updatePermissionException
- if user making request doesn't have the appropriate privilegespublic FolderDetails delete(String userId, long folderId, FolderType type)
userId
- unique identifier for user requesting delete actionfolderId
- unique identifier for folder to be deletedtype
- type of folder to be deleted (either "UPLOAD" or "PRIVATE")public FolderDetails createPersonalFolder(String userId, FolderDetails folderDetails)
public FolderDetails createTransferredFolder(FolderDetails folderDetails)
public ArrayList<FolderDetails> getUserFolders(String userId)
public ArrayList<FolderDetails> getSharedUserFolders(String userId)
userId
- User whose shared folders are being retrievedpublic ArrayList<FolderDetails> getTransferredFolders(String userId)
protected FolderDetails promoteFolder(String userId, Folder folder)
userId
- requesting account idfolder
- folder to be promotedprotected FolderDetails demoteFolder(String userId, Folder folder)
userId
- requesting accountfolder
- to be demotedCopyright © 2017. All rights reserved.