2019-10-10 18:19:34 +02:00
|
|
|
package org.gcube.common.storagehub.client.proxies;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import org.gcube.common.storagehub.model.acls.AccessType;
|
|
|
|
import org.gcube.common.storagehub.model.exceptions.StorageHubException;
|
|
|
|
|
2022-03-28 18:28:06 +02:00
|
|
|
public interface GroupManagerClient extends ManagerClient{
|
2019-10-10 18:19:34 +02:00
|
|
|
|
|
|
|
void addUserToGroup(String userId, String groupId) throws StorageHubException;
|
|
|
|
|
|
|
|
void removeUserFromGroup(String userId, String groupId) throws StorageHubException;
|
|
|
|
|
|
|
|
void removeGroup(String groupId) throws StorageHubException;
|
|
|
|
|
2020-01-16 18:11:46 +01:00
|
|
|
void createGroup(String groupId, AccessType accessType, String folderOwner) throws StorageHubException;
|
2019-10-10 18:19:34 +02:00
|
|
|
|
2023-06-01 18:59:56 +02:00
|
|
|
void createGroup(String groupId, AccessType accessType, String folderOwner, boolean useDefaultStorage) throws StorageHubException;
|
|
|
|
|
2019-10-10 18:19:34 +02:00
|
|
|
List<String> getUsersOfGroup(String groupId) throws StorageHubException;
|
|
|
|
|
|
|
|
List<String> getGroups() throws StorageHubException;
|
2020-01-15 19:10:33 +01:00
|
|
|
|
|
|
|
void addAdmin(String groupId, String userId) throws StorageHubException;
|
|
|
|
|
|
|
|
void removeAdmin(String groupId, String userId) throws StorageHubException;
|
|
|
|
|
|
|
|
List<String> getAdmins(String groupId) throws StorageHubException;
|
|
|
|
|
2019-10-10 18:19:34 +02:00
|
|
|
}
|