|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.server.core.AbstractEmfstoreInterface org.eclipse.emf.emfstore.internal.server.core.AdminEmfStoreImpl
public class AdminEmfStoreImpl
Implementation of AdminEmfStore
interface.
Constructor Summary | |
---|---|
AdminEmfStoreImpl(ACDAOFacade daoFacade,
ServerSpace serverSpace,
AuthorizationControl authorizationControl)
Default constructor. |
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 orgUnitId,
org.eclipse.emf.ecore.EClass roleClass)
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 groupId)
Deletes a group on the server. |
void |
deleteUser(SessionId sessionId,
ACOrgUnitId userId)
Deletes a user from the server. |
List<ACGroup> |
getGroups(SessionId sessionId)
Returns all groups on the server. |
List<ACGroup> |
getGroups(SessionId sessionId,
ACOrgUnitId orgUnitId)
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 orgUnitId)
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 participantId)
Removes an orgUnits from a project. |
Methods inherited from class org.eclipse.emf.emfstore.internal.server.core.AbstractEmfstoreInterface |
---|
runCommand |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdminEmfStoreImpl(ACDAOFacade daoFacade, ServerSpace serverSpace, AuthorizationControl authorizationControl) throws FatalESException
daoFacade
- provider facade for access control related DAOsserverSpace
- the server spaceauthorizationControl
- the authorization control
FatalESException
- in case of failureMethod Detail |
---|
public 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 orgUnitId) throws ESException
getGroups
in interface AdminEmfStore
sessionId
- the session id for authenticationorgUnitId
- the users orgUnitId
ESException
- if any error in the EmfStore occurspublic 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 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 deleteGroup(SessionId sessionId, ACOrgUnitId groupId) throws ESException
deleteGroup
in interface AdminEmfStore
sessionId
- the session id for authenticationgroupId
- orgUnitId of the group
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 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 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 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 void addParticipant(SessionId sessionId, ProjectId projectId, ACOrgUnitId participantId, org.eclipse.emf.ecore.EClass roleClass) throws ESException
addParticipant
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 occurspublic 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 occurspublic void removeParticipant(SessionId sessionId, ProjectId projectId, ACOrgUnitId participantId) throws ESException
removeParticipant
in interface AdminEmfStore
sessionId
- the session id for authenticationprojectId
- the project's idparticipantId
- the orgUnit's id
ESException
- if any error in the EmfStore occurspublic Role getRole(SessionId sessionId, ProjectId projectId, ACOrgUnitId orgUnitId) throws ESException
getRole
in interface AdminEmfStore
sessionId
- the session id for authenticationprojectId
- the project's idorgUnitId
- the orgUnit's id
ESException
- if any error in the EmfStore occurspublic void changeRole(SessionId sessionId, ProjectId projectId, ACOrgUnitId orgUnitId, org.eclipse.emf.ecore.EClass roleClass) throws ESException
changeRole
in interface AdminEmfStore
sessionId
- the session id for authenticationprojectId
- the project's idorgUnitId
- the orgUnitroleClass
- new role for orgUnit
ESException
- if any error in the EmfStore occurs.public 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 transportpublic 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 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<ProjectInfo> getProjectInfos(SessionId sessionId) throws ESException
getProjectInfos
in interface AdminEmfStore
sessionId
- the session id for authentication
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 deleteUser(SessionId sessionId, ACOrgUnitId userId) throws ESException
deleteUser
in interface AdminEmfStore
sessionId
- the session id for authenticationuserId
- the user's orgUnitId
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 occursAdminEmfStore.changeUser(org.eclipse.emf.emfstore.internal.server.model.SessionId,
org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACOrgUnitId, java.lang.String,
java.lang.String)
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 occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |