|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.client.model.connectionmanager.AbstractConnectionManager<XmlRpcClientManager> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcAdminConnectionManager
public class XmlRpcAdminConnectionManager
Connection manager for EMFStore that enables administrator capabilities.
Constructor Summary | |
---|---|
XmlRpcAdminConnectionManager()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.emf.emfstore.internal.client.model.connectionmanager.AbstractConnectionManager |
---|
hasConnectionProxy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlRpcAdminConnectionManager()
Method Detail |
---|
public void initConnection(ServerInfo serverInfo, SessionId id) throws ConnectionException
initConnection
in interface AdminConnectionManager
serverInfo
- the server infoid
- the session id
ConnectionException
- if the connection failspublic void addMember(SessionId sessionId, ACOrgUnitId group, ACOrgUnitId member) throws ESException
addMember
in interface AdminEmfStore
sessionId
- the session id for authenticationgroup
- the group's orgUnitIdmember
- the members orgUnitId
ESException
- 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 AdminEmfStore
sessionId
- the SessionId
for authenticationprojectId
- the ProjectId
of the projectparticipant
- the ACOrgUnitId
of the participantrole
- the role to be assigned to the participant
ESException
- if any error in the EmfStore occurspublic void changeOrgUnit(SessionId sessionId, ACOrgUnitId orgUnitId, String name, String description) throws ESException
changeOrgUnit
in interface AdminEmfStore
sessionId
- the session id for authentication.orgUnitId
- the orgUnitIdname
- the new namedescription
- the new description
ESException
- if any error in the EmfStore occurspublic void changeUser(SessionId sessionId, ACOrgUnitId userId, String name, String password) throws ESException
ACUser
.
changeUser
in interface AdminEmfStore
sessionId
- the session id for authentication.userId
- the ID of the username
- the new namepassword
- the new password
ESException
- 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 AdminEmfStore
sessionId
- the session id for authenticationprojectId
- the project's idorgUnit
- the orgUnitrole
- new role for orgUnit
ESException
- if any error in the EmfStore occurs.public ACOrgUnitId createGroup(SessionId sessionId, String name) throws ESException
createGroup
in interface AdminEmfStore
sessionId
- the session id for authenticationname
- the name for the group
ESException
- if any error in the EmfStore occurspublic ACOrgUnitId createUser(SessionId sessionId, String name) throws ESException
createUser
in interface AdminEmfStore
sessionId
- the session id for authenticationname
- the user's name
ACOrgUnitId
of the created user
ESException
- if any error occurred while creating the userpublic void deleteGroup(SessionId sessionId, ACOrgUnitId group) throws ESException
deleteGroup
in interface AdminEmfStore
sessionId
- the session id for authenticationgroup
- orgUnitId of the group
ESException
- if any error in the EmfStore occurspublic void deleteUser(SessionId sessionId, ACOrgUnitId user) throws ESException
deleteUser
in interface AdminEmfStore
sessionId
- the session id for authenticationuser
- the user's orgUnitId
ESException
- if any error in the EmfStore occurspublic List<ACGroup> getGroups(SessionId sessionId) throws ESException
getGroups
in interface AdminEmfStore
sessionId
- the session id for authentication
ESException
- if any error in the EmfStore occurspublic List<ACGroup> getGroups(SessionId sessionId, ACOrgUnitId user) throws ESException
getGroups
in interface AdminEmfStore
sessionId
- the session id for authenticationuser
- the users orgUnitId
ESException
- if any error in the EmfStore occurspublic List<ACOrgUnit> getMembers(SessionId sessionId, ACOrgUnitId groupId) throws ESException
getMembers
in interface AdminEmfStore
sessionId
- the session id for authenticationgroupId
- the group's orgUnitId
ESException
- if any error in the EmfStore occurs.public ACOrgUnit getOrgUnit(SessionId sessionId, ACOrgUnitId orgUnitId) throws ESException
getOrgUnit
in interface AdminEmfStore
sessionId
- the session id for authenticationorgUnitId
- the orgUnitId
ESException
- if any error in the EmfStore occurspublic List<ACOrgUnit> getOrgUnits(SessionId sessionId) throws ESException
getOrgUnits
in interface AdminEmfStore
sessionId
- the session id for authentication
ESException
- if any error in the EmfStore occurspublic List<ACOrgUnit> getParticipants(SessionId sessionId, ProjectId projectId) throws ESException
getParticipants
in interface AdminEmfStore
sessionId
- the session id for authenticationprojectId
- project's id
ESException
- if any error in the EmfStore occurspublic List<ProjectInfo> getProjectInfos(SessionId sessionId) throws ESException
getProjectInfos
in interface AdminEmfStore
sessionId
- the session id for authentication
ESException
- if any error in the EmfStore occurspublic Role getRole(SessionId sessionId, ProjectId projectId, ACOrgUnitId orgUnit) throws ESException
getRole
in interface AdminEmfStore
sessionId
- the session id for authenticationprojectId
- the project's idorgUnit
- the orgUnit's id
ESException
- if any error in the EmfStore occurspublic List<ACUser> getUsers(SessionId sessionId) throws ESException
getUsers
in interface AdminEmfStore
sessionId
- the session id for authentication
ESException
- if any error in the EmfStore occurspublic void removeGroup(SessionId sessionId, ACOrgUnitId user, ACOrgUnitId group) throws ESException
removeGroup
in interface AdminEmfStore
sessionId
- the session id for authenticationuser
- the user's orgUnitIdgroup
- the group's orgUnitId
ESException
- if any error in the EmfStore occurspublic void removeMember(SessionId sessionId, ACOrgUnitId group, ACOrgUnitId member) throws ESException
removeMember
in interface AdminEmfStore
sessionId
- the session id for authenticationgroup
- the group's orgUnitIdmember
- the members orgUnitId
ESException
- if any error in the EmfStore occurspublic void removeParticipant(SessionId sessionId, ProjectId projectId, ACOrgUnitId participant) throws ESException
removeParticipant
in interface AdminEmfStore
sessionId
- the session id for authenticationprojectId
- the project's idparticipant
- the orgUnit's id
ESException
- if any error in the EmfStore occurspublic void assignRole(SessionId sessionId, ACOrgUnitId orgUnitId, org.eclipse.emf.ecore.EClass roleClass) throws ESException
assignRole
in interface AdminEmfStore
sessionId
- the SessionId
for authenticationorgUnitId
- the ID of an organizational unitroleClass
- the role to be assigned
ESException
- 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 AdminEmfStore
sessionId
- the SessionId
for authenticationprojectId
- the ProjectId
of the projectparticipantId
- the ACOrgUnitId
of the participantroleClass
- the role to be assigned to the participant
ESException
- 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |