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() |
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
org.gcube.common.homelibrary.home.exceptions.HomeNotFoundException
org.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
protected 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
public 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
- listLogins
- aclType
- Exception
public 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)
public WorkspaceACL getACLsForSharedFolderId(String itemID) throws Exception
getACLsForSharedFolderId
in interface WorkspaceSharingService
Exception
public String getACLsDescriptionForSharedFolderId(String folderId) throws Exception
getACLsDescriptionForSharedFolderId
in interface WorkspaceSharingService
Exception
public boolean isASharedFolder(String itemID, boolean asRoot)
itemID
- asRoot
- true check if itemID is root, not otherwisepublic boolean isASharedFolder(org.gcube.common.homelibrary.home.workspace.WorkspaceItem item, boolean asRoot)
Copyright © 2015. All Rights Reserved.