org.eclipse.emf.emfstore.server.model
Interface ESOrgUnitProvider

All Known Implementing Classes:
ESOrgUnitProviderImpl

public interface ESOrgUnitProvider

Provides access to known users and groups of EMFStore.

Since:
1.5
Author:
emueller

Method Summary
 void addGroup(ESGroup group)
          Adds the given group.
 void addUser(ESUser user)
          Adds the given user.
 Set<ESGroup> getGroups()
          Returns a set of all known groups.
 List<ESProjectHistory> getProjects()
          Returns a list of all known ESProjectHistories.
 Set<ESUser> getUsers()
          Returns a set of all known users.
 void init(ESOrgUnitRepository repository)
          Initializes this provider.
 void removeGroup(ESGroup group)
          Removes the given group.
 void removeUser(ESUser user)
          Removes the given user.
 void save()
          Save the current state of the provider.
 

Method Detail

getUsers

Set<ESUser> getUsers()
Returns a set of all known users.

Returns:
a set of all known users.

getGroups

Set<ESGroup> getGroups()
Returns a set of all known groups.

Returns:
a set of all known groups.

getProjects

List<ESProjectHistory> getProjects()
Returns a list of all known ESProjectHistories.

Returns:
a list of all known ESProjectHistories

removeGroup

void removeGroup(ESGroup group)
Removes the given group.

Parameters:
group - the group to be removed

removeUser

void removeUser(ESUser user)
Removes the given user.

Parameters:
user - the user to be removed

addUser

void addUser(ESUser user)
Adds the given user.

Parameters:
user - the user to be added

addGroup

void addGroup(ESGroup group)
Adds the given group.

Parameters:
group - the group to be added

save

void save()
          throws IOException
Save the current state of the provider.

Throws:
IOException - in case saving fails

init

void init(ESOrgUnitRepository repository)
Initializes this provider.

Parameters:
repository - the repository that can be used to perform CRUD operations on organizational units that are stored by EMFStore


Copyright © 2016. All Rights Reserved.