|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.internal.client.model.impl.AdminBrokerImpl
public class AdminBrokerImpl
Implementation of the AdminBroker.
| Constructor Summary | |
|---|---|
AdminBrokerImpl(ServerInfo serverInfo,
SessionId sessionId)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addInitialParticipant(ProjectId projectId,
ACOrgUnitId participantId,
org.eclipse.emf.ecore.EClass role)
Delegates call to method in AdminEmfStore. |
void |
addMember(ACOrgUnitId group,
ACOrgUnitId member)
Delegates call to method in AdminEmfStore. |
void |
addParticipant(ProjectId projectId,
ACOrgUnitId participant,
org.eclipse.emf.ecore.EClass role)
Delegates call to method in AdminEmfStore. |
void |
assignRole(ACOrgUnitId orgUnitId,
org.eclipse.emf.ecore.EClass role)
Delegates call to method in AdminEmfStore. |
void |
changeOrgUnit(ACOrgUnitId orgUnitId,
String name,
String description)
Delegates call to method in AdminEmfStore. |
void |
changeRole(ProjectId projectId,
ACOrgUnitId orgUnit,
org.eclipse.emf.ecore.EClass role)
Delegates call to method in AdminEmfStore. |
void |
changeUser(ACOrgUnitId userId,
String name,
String password)
Delegates call to method in AdminEmfStore. |
ACOrgUnitId |
createGroup(String name)
Delegates call to method in AdminEmfStore. |
ACOrgUnitId |
createUser(String name)
Delegates call to method in AdminEmfStore. |
void |
deleteGroup(ACOrgUnitId group)
Delegates call to method in AdminEmfStore. |
void |
deleteUser(ACOrgUnitId user)
Delegates call to method in AdminEmfStore. |
List<ACGroup> |
getGroups()
Delegates call to method in AdminEmfStore. |
List<ACGroup> |
getGroups(ACOrgUnitId user)
Delegates call to method in AdminEmfStore. |
List<ACOrgUnit> |
getMembers(ACOrgUnitId groupId)
Delegates call to method in AdminEmfStore. |
ACOrgUnit |
getOrgUnit(ACOrgUnitId orgUnitId)
Delegates call to method in AdminEmfStore. |
List<ACOrgUnit> |
getOrgUnits()
Delegates call to method in AdminEmfStore. |
List<ACOrgUnit> |
getParticipants(ProjectId projectId)
Delegates call to method in AdminEmfStore. |
List<ProjectInfo> |
getProjectInfos()
Delegates call to method in AdminEmfStore. |
Role |
getRole(ProjectId projectId,
ACOrgUnitId orgUnit)
Delegates call to method in AdminEmfStore. |
List<ACUser> |
getUsers()
Delegates call to method in AdminEmfStore. |
void |
removeGroup(ACOrgUnitId user,
ACOrgUnitId group)
Delegates call to method in AdminEmfStore. |
void |
removeMember(ACOrgUnitId group,
ACOrgUnitId member)
Delegates call to method in AdminEmfStore. |
void |
removeParticipant(ProjectId projectId,
ACOrgUnitId participant)
Delegates call to method in AdminEmfStore. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdminBrokerImpl(ServerInfo serverInfo,
SessionId sessionId)
throws ConnectionException
serverInfo - server infosessionId - session id, must be an admin session
ConnectionException - if connection init fails| Method Detail |
|---|
public void addParticipant(ProjectId projectId,
ACOrgUnitId participant,
org.eclipse.emf.ecore.EClass role)
throws ESException
AdminEmfStore.
addParticipant in interface AdminBrokerprojectId - the ProjectIdparticipant - the ACOrgUnitId of the participant to be addedrole - the EClass of the role that should be assigned to the participant
ESException - if an exceptions occurs on the server or on transportAdminBroker.addParticipant(org.eclipse.emf.emfstore.internal.server.model.ProjectId,
org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId, org.eclipse.emf.ecore.EClass)
public void changeRole(ProjectId projectId,
ACOrgUnitId orgUnit,
org.eclipse.emf.ecore.EClass role)
throws ESException
AdminEmfStore.
changeRole in interface AdminBrokerprojectId - the project idorgUnit - the orgUnit idrole - new role
ESException - if an exceptions occurs on the server or on transportAdminBroker.changeRole(org.eclipse.emf.emfstore.internal.server.model.ProjectId,
org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId, org.eclipse.emf.ecore.EClass)
public List<ACGroup> getGroups()
throws ESException
AdminEmfStore.
getGroups in interface AdminBrokerESException - if an exceptions occurs on the server or on transportAdminBroker.getGroups()
public List<ACGroup> getGroups(ACOrgUnitId user)
throws ESException
AdminEmfStore.
getGroups in interface AdminBrokeruser - orgUnit id
ESException - if an exceptions occurs on the server or on transportAdminBroker.getGroups(org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId)
public List<ACOrgUnit> getOrgUnits()
throws ESException
AdminEmfStore.
AdminEmfStore.getOrgUnits(org.eclipse.emf.emfstore.internal.server.model.SessionId)
getOrgUnits in interface AdminBrokerESException - if an exceptions occurs on the server or on transportAdminBroker.getOrgUnits()
public List<ACOrgUnit> getParticipants(ProjectId projectId)
throws ESException
AdminEmfStore.
getParticipants in interface AdminBrokerprojectId - project id
ESException - if an exceptions occurs on the server or on transportAdminBroker.getParticipants(org.eclipse.emf.emfstore.internal.server.model.ProjectId)
public List<ACOrgUnit> getMembers(ACOrgUnitId groupId)
throws ESException
AdminEmfStore.
getMembers in interface AdminBrokergroupId - group id
ESException - if an exceptions occurs on the server or on transportAdminBroker.getMembers(org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId)
public List<ProjectInfo> getProjectInfos()
throws ESException
AdminEmfStore.
getProjectInfos in interface AdminBrokerESException - if an exceptions occurs on the server or on transportAdminBroker.getProjectInfos()
public Role getRole(ProjectId projectId,
ACOrgUnitId orgUnit)
throws ESException
AdminEmfStore.
getRole in interface AdminBrokerprojectId - project idorgUnit - orgUnit id
ESException - if an exceptions occurs on the server or on transportAdminBroker.getRole(org.eclipse.emf.emfstore.internal.server.model.ProjectId,
org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId)
public List<ACUser> getUsers()
throws ESException
AdminEmfStore.
getUsers in interface AdminBrokerESException - if an exceptions occurs on the server or on transportAdminBroker.getUsers()
public void removeGroup(ACOrgUnitId user,
ACOrgUnitId group)
throws ESException
AdminEmfStore.
removeGroup in interface AdminBrokeruser - orgUnit idgroup - group id
ESException - if an exceptions occurs on the server or on transportAdminBroker.removeGroup(org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId,
org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId)
public void removeParticipant(ProjectId projectId,
ACOrgUnitId participant)
throws ESException
AdminEmfStore.
removeParticipant in interface AdminBrokerprojectId - project idparticipant - orgUnit id
ESException - if an exceptions occurs on the server or on transportAdminBroker.removeParticipant(org.eclipse.emf.emfstore.internal.server.model.ProjectId,
org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId)
public ACOrgUnitId createGroup(String name)
throws ESException
AdminEmfStore.
createGroup in interface AdminBrokername - new name
ESException - if an exceptions occurs on the server or on transportAdminBroker.createGroup(java.lang.String)
public ACOrgUnitId createUser(String name)
throws ESException
AdminEmfStore.
createUser in interface AdminBrokername - user's name
ESException - if an exceptions occurs on the server or on transportAdminBroker.createUser(java.lang.String)
public void deleteGroup(ACOrgUnitId group)
throws ESException
AdminEmfStore.
deleteGroup in interface AdminBrokergroup - orgUnit id
ESException - if an exceptions occurs on the server or on transportAdminBroker.deleteGroup(org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId)
public void deleteUser(ACOrgUnitId user)
throws ESException
AdminEmfStore.
deleteUser in interface AdminBrokeruser - user id
ESException - if an exceptions occurs on the server or on transportAdminBroker.deleteUser(org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId)
public void addMember(ACOrgUnitId group,
ACOrgUnitId member)
throws ESException
AdminEmfStore.
addMember in interface AdminBrokergroup - group idmember - member id
ESException - if an exceptions occurs on the server or on transportAdminBroker.addMember(org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId,
org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId)
public void removeMember(ACOrgUnitId group,
ACOrgUnitId member)
throws ESException
AdminEmfStore.
removeMember in interface AdminBrokergroup - group idmember - member id
ESException - if an exceptions occurs on the server or on transportAdminBroker.removeMember(org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId,
org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId)
public void changeOrgUnit(ACOrgUnitId orgUnitId,
String name,
String description)
throws ESException
AdminEmfStore.
changeOrgUnit in interface AdminBrokerorgUnitId - orgUnit idname - new namedescription - new description
ESException - if an exceptions occurs on the server or on transportAdminBroker.changeOrgUnit(org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId,
java.lang.String, java.lang.String)
public void changeUser(ACOrgUnitId userId,
String name,
String password)
throws ESException
AdminEmfStore.
changeUser in interface AdminBrokeruserId - the ID of the username - the new name of the userpassword - the new password of the user
ESException - if an exceptions occurs on the server or on transportAdminBroker.changeUser(org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId,
java.lang.String, java.lang.String)
public ACOrgUnit getOrgUnit(ACOrgUnitId orgUnitId)
throws ESException
AdminEmfStore.
getOrgUnit in interface AdminBrokerorgUnitId - orgUnit id
ESException - if an exceptions occurs on the server or on transportAdminBroker.getOrgUnit(org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId)
public void assignRole(ACOrgUnitId orgUnitId,
org.eclipse.emf.ecore.EClass role)
throws ESException
AdminEmfStore.
assignRole in interface AdminBrokerorgUnitId - the ID of an organizational unitrole - the role to be assigned
ESException - if an exceptions occurs on the server or on transportAdminBroker.assignRole(org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId,
org.eclipse.emf.ecore.EClass)
public void addInitialParticipant(ProjectId projectId,
ACOrgUnitId participantId,
org.eclipse.emf.ecore.EClass role)
throws ESException
AdminEmfStore.
addInitialParticipant in interface AdminBrokerprojectId - the ProjectIdparticipantId - the ACOrgUnitId of the participant to be addedrole - the EClass of the role that should be assigned to the participant
ESException - if an exceptions occurs on the server or on transportAdminBroker.addInitialParticipant(org.eclipse.emf.emfstore.internal.server.model.ProjectId,
org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId, org.eclipse.emf.ecore.EClass)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||