public class WorkspaceSharingServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements WorkspaceSharingService
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
WorkspaceSharingServiceImpl() |
Modifier and Type | Method and Description |
---|---|
List<WorkspaceACL> |
getACLs()
Gets the AC ls.
|
String |
getACLsDescriptionForSharedFolderId(String folderId)
Gets the AC ls description for shared folder id.
|
WorkspaceACL |
getACLsForSharedFolderId(String itemID) |
List<InfoContactModel> |
getAdministratorsByFolderId(String sharedFolderId) |
List<InfoContactModel> |
getAllContacts(boolean readGroupsFromHL,
boolean readGroupsFromPortal) |
FileModel |
getFileModelByWorkpaceItemId(String itemId) |
protected GWTWorkspaceSharingBuilder |
getGWTWorkspaceBuilder()
Gets the GWT workspace builder.
|
List<InfoContactModel> |
getInfoContactModelsFromCredential(List<CredentialModel> listAlreadySharedContact) |
List<InfoContactModel> |
getListUserSharedByFolderSharedId(String folderSharedId) |
String |
getMyLogin() |
protected NotificationsProducer |
getNotificationProducer()
Gets the notification producer.
|
InfoContactModel |
getOwnerByItemId(String itemId) |
protected ScopeUtility |
getScopeUtilFilter()
Gets the scope util filter.
|
protected org.gcube.common.homelibrary.home.workspace.Workspace |
getWorkspace()
Gets the workspace.
|
boolean |
isASharedFolder(String itemID,
boolean asRoot)
Checks if is a shared folder.
|
boolean |
isASharedFolder(org.gcube.common.homelibrary.home.workspace.WorkspaceItem item,
boolean asRoot)
Checks if is a shared folder.
|
boolean |
isSessionExpired() |
protected boolean |
isTestMode()
Checks if is test mode.
|
static void |
main(String[] args)
The main method.
|
void |
setACLs(String folderId,
List<String> listLogins,
String aclType)
Sets the ac ls.
|
boolean |
shareFolder(FileModel folder,
List<InfoContactModel> listContacts,
boolean isNewFolder,
WorkspaceACL acl) |
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected GWTWorkspaceSharingBuilder getGWTWorkspaceBuilder()
protected org.gcube.common.homelibrary.home.workspace.Workspace getWorkspace() throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException, org.gcube.common.homelibrary.home.exceptions.HomeNotFoundException, org.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
- the internal error exceptionorg.gcube.common.homelibrary.home.exceptions.HomeNotFoundException
- the home not found exceptionorg.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
- the workspace folder not found exceptionprotected NotificationsProducer getNotificationProducer()
protected ScopeUtility getScopeUtilFilter()
protected boolean isTestMode()
public List<InfoContactModel> getAllContacts(boolean readGroupsFromHL, boolean readGroupsFromPortal) throws Exception
getAllContacts
in interface WorkspaceSharingService
Exception
public List<InfoContactModel> getListUserSharedByFolderSharedId(String folderSharedId) throws Exception
getListUserSharedByFolderSharedId
in interface WorkspaceSharingService
Exception
public InfoContactModel getOwnerByItemId(String itemId) throws Exception
getOwnerByItemId
in interface WorkspaceSharingService
Exception
public List<WorkspaceACL> getACLs() throws Exception
getACLs
in interface WorkspaceSharingService
Exception
- the exceptionpublic String getMyLogin()
getMyLogin
in interface WorkspaceSharingService
public FileModel getFileModelByWorkpaceItemId(String itemId) throws Exception
getFileModelByWorkpaceItemId
in interface WorkspaceSharingService
Exception
public boolean isSessionExpired() throws Exception
isSessionExpired
in interface WorkspaceSharingService
Exception
public boolean shareFolder(FileModel folder, List<InfoContactModel> listContacts, boolean isNewFolder, WorkspaceACL acl) throws Exception
shareFolder
in interface WorkspaceSharingService
Exception
public void setACLs(String folderId, List<String> listLogins, String aclType) throws Exception
folderId
- the folder idlistLogins
- the list loginsaclType
- the acl typeException
- the exceptionpublic List<InfoContactModel> getInfoContactModelsFromCredential(List<CredentialModel> listAlreadySharedContact) throws Exception
getInfoContactModelsFromCredential
in interface WorkspaceSharingService
Exception
public List<InfoContactModel> getAdministratorsByFolderId(String sharedFolderId) throws Exception
getAdministratorsByFolderId
in interface WorkspaceSharingService
Exception
public static void main(String[] args)
args
- the argumentspublic WorkspaceACL getACLsForSharedFolderId(String itemID) throws Exception
getACLsForSharedFolderId
in interface WorkspaceSharingService
Exception
public String getACLsDescriptionForSharedFolderId(String folderId) throws Exception
getACLsDescriptionForSharedFolderId
in interface WorkspaceSharingService
folderId
- the folder idException
- the exceptionpublic boolean isASharedFolder(String itemID, boolean asRoot)
itemID
- the item idasRoot
- true check if itemID is root, not otherwisepublic boolean isASharedFolder(org.gcube.common.homelibrary.home.workspace.WorkspaceItem item, boolean asRoot)
item
- the itemasRoot
- the as rootCopyright © 2015. All Rights Reserved.