public class XmlRpcAdminConnectionManager extends AbstractConnectionManager<XmlRpcClientManager> implements AdminConnectionManager
| Constructor and Description |
|---|
XmlRpcAdminConnectionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInitialParticipant(SessionId sessionId,
ProjectId projectId,
ACOrgUnitId participantId,
org.eclipse.emf.ecore.EClass roleClass)
Adds an organization unit to a project.
|
void |
addMember(SessionId sessionId,
ACOrgUnitId group,
ACOrgUnitId member)
Adds an orgUnit to a group.
|
void |
addParticipant(SessionId sessionId,
ProjectId projectId,
ACOrgUnitId participant,
org.eclipse.emf.ecore.EClass role)
Adds an organization unit to a project.
|
void |
assignRole(SessionId sessionId,
ACOrgUnitId orgUnitId,
org.eclipse.emf.ecore.EClass roleClass)
Assigns a role for an orgUnit without a project.
|
void |
changeOrgUnit(SessionId sessionId,
ACOrgUnitId orgUnitId,
String name,
String description)
Changes the orgUnit's name and description.
|
void |
changeRole(SessionId sessionId,
ProjectId projectId,
ACOrgUnitId orgUnit,
org.eclipse.emf.ecore.EClass role)
Changes the role for an orgUnit in a specified project.
|
void |
changeUser(SessionId sessionId,
ACOrgUnitId userId,
String name,
String password)
Changes the name and password of an
ACUser. |
ACOrgUnitId |
createGroup(SessionId sessionId,
String name)
Creates a group on the server.
|
ACOrgUnitId |
createUser(SessionId sessionId,
String name)
Creates a user on the server.
|
void |
deleteGroup(SessionId sessionId,
ACOrgUnitId group)
Deletes a group on the server.
|
void |
deleteUser(SessionId sessionId,
ACOrgUnitId user)
Deletes a user from the server.
|
List<ACGroup> |
getGroups(SessionId sessionId)
Returns all groups on the server.
|
List<ACGroup> |
getGroups(SessionId sessionId,
ACOrgUnitId user)
Returns a list of all groups in which the specified user is member of.
|
List<ACOrgUnit> |
getMembers(SessionId sessionId,
ACOrgUnitId groupId)
Returns all members from a group.
|
ACOrgUnit |
getOrgUnit(SessionId sessionId,
ACOrgUnitId orgUnitId)
Returns an orgUnit with the specified orgUnitId.
|
List<ACOrgUnit> |
getOrgUnits(SessionId sessionId)
Returns all orgUnits on the server.
|
List<ACOrgUnit> |
getParticipants(SessionId sessionId,
ProjectId projectId)
Returns all orgUnits which are attached to the given project.
|
List<ProjectInfo> |
getProjectInfos(SessionId sessionId)
Returns a list of available project.
|
Role |
getRole(SessionId sessionId,
ProjectId projectId,
ACOrgUnitId orgUnit)
Returns an orgUnit's role for a specified project.
|
List<ACUser> |
getUsers(SessionId sessionId)
Returns all users on the server.
|
void |
initConnection(ServerInfo serverInfo,
SessionId id)
Initialize the connection to the server.
|
void |
removeGroup(SessionId sessionId,
ACOrgUnitId user,
ACOrgUnitId group)
Removes a user from a group.
|
void |
removeMember(SessionId sessionId,
ACOrgUnitId group,
ACOrgUnitId member)
Removes a orgUnit from a group.
|
void |
removeParticipant(SessionId sessionId,
ProjectId projectId,
ACOrgUnitId participant)
Removes an orgUnits from a project.
|
hasConnectionProxypublic void initConnection(ServerInfo serverInfo, SessionId id) throws ConnectionException
initConnection in interface AdminConnectionManagerserverInfo - the server infoid - the session idConnectionException - if the connection failspublic void addMember(SessionId sessionId, ACOrgUnitId group, ACOrgUnitId member) throws ESException
addMember in interface AdminEmfStoresessionId - the session id for authenticationgroup - the group's orgUnitIdmember - the members orgUnitIdESException - if any error in the EmfStore occurspublic void addParticipant(SessionId sessionId, ProjectId projectId, ACOrgUnitId participant, org.eclipse.emf.ecore.EClass role) throws ESException
addParticipant in interface AdminEmfStoresessionId - the SessionId for authenticationprojectId - the ProjectId of the projectparticipant - the ACOrgUnitId of the participantrole - the role to be assigned to the participantESException - if any error in the EmfStore occurspublic void changeOrgUnit(SessionId sessionId, ACOrgUnitId orgUnitId, String name, String description) throws ESException
changeOrgUnit in interface AdminEmfStoresessionId - the session id for authentication.orgUnitId - the orgUnitIdname - the new namedescription - the new descriptionESException - if any error in the EmfStore occurspublic void changeUser(SessionId sessionId, ACOrgUnitId userId, String name, String password) throws ESException
ACUser.changeUser in interface AdminEmfStoresessionId - the session id for authentication.userId - the ID of the username - the new namepassword - the new passwordESException - if any error in the EmfStore occurspublic void changeRole(SessionId sessionId, ProjectId projectId, ACOrgUnitId orgUnit, org.eclipse.emf.ecore.EClass role) throws ESException
changeRole in interface AdminEmfStoresessionId - the session id for authenticationprojectId - the project's idorgUnit - the orgUnitrole - new role for orgUnitESException - if any error in the EmfStore occurs.public ACOrgUnitId createGroup(SessionId sessionId, String name) throws ESException
createGroup in interface AdminEmfStoresessionId - the session id for authenticationname - the name for the groupESException - if any error in the EmfStore occurspublic ACOrgUnitId createUser(SessionId sessionId, String name) throws ESException
createUser in interface AdminEmfStoresessionId - the session id for authenticationname - the user's nameACOrgUnitId of the created userESException - if any error occurred while creating the userpublic void deleteGroup(SessionId sessionId, ACOrgUnitId group) throws ESException
deleteGroup in interface AdminEmfStoresessionId - the session id for authenticationgroup - orgUnitId of the groupESException - if any error in the EmfStore occurspublic void deleteUser(SessionId sessionId, ACOrgUnitId user) throws ESException
deleteUser in interface AdminEmfStoresessionId - the session id for authenticationuser - the user's orgUnitIdESException - if any error in the EmfStore occurspublic List<ACGroup> getGroups(SessionId sessionId) throws ESException
getGroups in interface AdminEmfStoresessionId - the session id for authenticationESException - if any error in the EmfStore occurspublic List<ACGroup> getGroups(SessionId sessionId, ACOrgUnitId user) throws ESException
getGroups in interface AdminEmfStoresessionId - the session id for authenticationuser - the users orgUnitIdESException - if any error in the EmfStore occurspublic List<ACOrgUnit> getMembers(SessionId sessionId, ACOrgUnitId groupId) throws ESException
getMembers in interface AdminEmfStoresessionId - the session id for authenticationgroupId - the group's orgUnitIdESException - if any error in the EmfStore occurs.public ACOrgUnit getOrgUnit(SessionId sessionId, ACOrgUnitId orgUnitId) throws ESException
getOrgUnit in interface AdminEmfStoresessionId - the session id for authenticationorgUnitId - the orgUnitIdESException - if any error in the EmfStore occurspublic List<ACOrgUnit> getOrgUnits(SessionId sessionId) throws ESException
getOrgUnits in interface AdminEmfStoresessionId - the session id for authenticationESException - if any error in the EmfStore occurspublic List<ACOrgUnit> getParticipants(SessionId sessionId, ProjectId projectId) throws ESException
getParticipants in interface AdminEmfStoresessionId - the session id for authenticationprojectId - project's idESException - if any error in the EmfStore occurspublic List<ProjectInfo> getProjectInfos(SessionId sessionId) throws ESException
getProjectInfos in interface AdminEmfStoresessionId - the session id for authenticationESException - if any error in the EmfStore occurspublic Role getRole(SessionId sessionId, ProjectId projectId, ACOrgUnitId orgUnit) throws ESException
getRole in interface AdminEmfStoresessionId - the session id for authenticationprojectId - the project's idorgUnit - the orgUnit's idESException - if any error in the EmfStore occurspublic List<ACUser> getUsers(SessionId sessionId) throws ESException
getUsers in interface AdminEmfStoresessionId - the session id for authenticationESException - if any error in the EmfStore occurspublic void removeGroup(SessionId sessionId, ACOrgUnitId user, ACOrgUnitId group) throws ESException
removeGroup in interface AdminEmfStoresessionId - the session id for authenticationuser - the user's orgUnitIdgroup - the group's orgUnitIdESException - if any error in the EmfStore occurspublic void removeMember(SessionId sessionId, ACOrgUnitId group, ACOrgUnitId member) throws ESException
removeMember in interface AdminEmfStoresessionId - the session id for authenticationgroup - the group's orgUnitIdmember - the members orgUnitIdESException - if any error in the EmfStore occurspublic void removeParticipant(SessionId sessionId, ProjectId projectId, ACOrgUnitId participant) throws ESException
removeParticipant in interface AdminEmfStoresessionId - the session id for authenticationprojectId - the project's idparticipant - the orgUnit's idESException - if any error in the EmfStore occurspublic void assignRole(SessionId sessionId, ACOrgUnitId orgUnitId, org.eclipse.emf.ecore.EClass roleClass) throws ESException
assignRole in interface AdminEmfStoresessionId - the SessionId for authenticationorgUnitId - the ID of an organizational unitroleClass - the role to be assignedESException - if an exceptions occurs on the server or on transportAdminEmfStore.assignRole(org.eclipse.emf.emfstore.internal.server.model.SessionId,
org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId, org.eclipse.emf.ecore.EClass)public void addInitialParticipant(SessionId sessionId, ProjectId projectId, ACOrgUnitId participantId, org.eclipse.emf.ecore.EClass roleClass) throws ESException
addInitialParticipant in interface AdminEmfStoresessionId - the SessionId for authenticationprojectId - the ProjectId of the projectparticipantId - the ACOrgUnitId of the participantroleClass - the role to be assigned to the participantESException - if any error in the EmfStore occursAdminEmfStore.addInitialParticipant(org.eclipse.emf.emfstore.internal.server.model.SessionId,
org.eclipse.emf.emfstore.internal.server.model.ProjectId,
org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId, org.eclipse.emf.ecore.EClass)Copyright © 2017. All rights reserved.