|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminEmfStore
AdminEmfStore offers an interface for administrating the users and their rights.
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 participantId,
org.eclipse.emf.ecore.EClass roleClass)
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 |
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. |
Method Detail |
---|
List<ProjectInfo> getProjectInfos(SessionId sessionId) throws ESException
sessionId
- the session id for authentication
ESException
- if any error in the EmfStore occursList<ACGroup> getGroups(SessionId sessionId) throws ESException
sessionId
- the session id for authentication
ESException
- if any error in the EmfStore occursList<ACUser> getUsers(SessionId sessionId) throws ESException
sessionId
- the session id for authentication
ESException
- if any error in the EmfStore occursList<ACOrgUnit> getOrgUnits(SessionId sessionId) throws ESException
sessionId
- the session id for authentication
ESException
- if any error in the EmfStore occursACOrgUnit getOrgUnit(SessionId sessionId, ACOrgUnitId orgUnitId) throws ESException
orgUnitId
- the orgUnitIdsessionId
- the session id for authentication
ESException
- if any error in the EmfStore occursACOrgUnitId createGroup(SessionId sessionId, String name) throws ESException
sessionId
- the session id for authenticationname
- the name for the group
ESException
- if any error in the EmfStore occursvoid deleteGroup(SessionId sessionId, ACOrgUnitId group) throws ESException
sessionId
- the session id for authenticationgroup
- orgUnitId of the group
ESException
- if any error in the EmfStore occursList<ACGroup> getGroups(SessionId sessionId, ACOrgUnitId user) throws ESException
sessionId
- the session id for authenticationuser
- the users orgUnitId
ESException
- if any error in the EmfStore occursvoid removeGroup(SessionId sessionId, ACOrgUnitId user, ACOrgUnitId group) throws ESException
sessionId
- the session id for authenticationuser
- the user's orgUnitIdgroup
- the group's orgUnitId
ESException
- if any error in the EmfStore occursList<ACOrgUnit> getMembers(SessionId sessionId, ACOrgUnitId groupId) throws ESException
sessionId
- the session id for authenticationgroupId
- the group's orgUnitId
ESException
- if any error in the EmfStore occurs.void addMember(SessionId sessionId, ACOrgUnitId group, ACOrgUnitId member) throws ESException
sessionId
- the session id for authenticationgroup
- the group's orgUnitIdmember
- the members orgUnitId
ESException
- if any error in the EmfStore occursvoid removeMember(SessionId sessionId, ACOrgUnitId group, ACOrgUnitId member) throws ESException
sessionId
- the session id for authenticationgroup
- the group's orgUnitIdmember
- the members orgUnitId
ESException
- if any error in the EmfStore occursACOrgUnitId createUser(SessionId sessionId, String name) throws ESException
sessionId
- the session id for authenticationname
- the user's name
ACOrgUnitId
of the created user
ESException
- if any error occurred while creating the uservoid deleteUser(SessionId sessionId, ACOrgUnitId user) throws ESException
sessionId
- the session id for authenticationuser
- the user's orgUnitId
ESException
- if any error in the EmfStore occursvoid changeOrgUnit(SessionId sessionId, ACOrgUnitId orgUnitId, String name, String description) throws ESException
sessionId
- the session id for authentication.orgUnitId
- the orgUnitIdname
- the new namedescription
- the new description
ESException
- if any error in the EmfStore occursvoid changeUser(SessionId sessionId, ACOrgUnitId userId, String name, String password) throws ESException
ACUser
.
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 occursList<ACOrgUnit> getParticipants(SessionId sessionId, ProjectId projectId) throws ESException
sessionId
- the session id for authenticationprojectId
- project's id
ESException
- if any error in the EmfStore occursvoid addParticipant(SessionId sessionId, ProjectId projectId, ACOrgUnitId participantId, org.eclipse.emf.ecore.EClass roleClass) throws ESException
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 occursvoid addInitialParticipant(SessionId sessionId, ProjectId projectId, ACOrgUnitId participantId, org.eclipse.emf.ecore.EClass roleClass) throws ESException
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 occursvoid removeParticipant(SessionId sessionId, ProjectId projectId, ACOrgUnitId participant) throws ESException
sessionId
- the session id for authenticationprojectId
- the project's idparticipant
- the orgUnit's id
ESException
- if any error in the EmfStore occursRole getRole(SessionId sessionId, ProjectId projectId, ACOrgUnitId orgUnit) throws ESException
sessionId
- the session id for authenticationprojectId
- the project's idorgUnit
- the orgUnit's id
ESException
- if any error in the EmfStore occursvoid changeRole(SessionId sessionId, ProjectId projectId, ACOrgUnitId orgUnit, org.eclipse.emf.ecore.EClass role) throws ESException
sessionId
- the session id for authenticationprojectId
- the project's idorgUnit
- the orgUnitrole
- new role for orgUnit
ESException
- if any error in the EmfStore occurs.void assignRole(SessionId sessionId, ACOrgUnitId orgUnitId, org.eclipse.emf.ecore.EClass roleClass) throws ESException
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 transport
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |