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

All Known Implementing Classes:
ESOrgUnitRepositoryImpl

public interface ESOrgUnitRepository

Repository for organizational units.

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 available ESGroups.
 List<ESProjectHistory> getProjects()
          Returns a list of all available project histories.
 Set<ESUser> getUsers()
          Returns a set of all available ESUsers.
 void removeGroup(ESGroup group)
          Removes the given group.
 void removeUser(ESUser user)
          Removes the given user.
 void save()
          Saves the state of the repository.
 

Method Detail

getUsers

Set<ESUser> getUsers()
Returns a set of all available ESUsers.

Returns:
a set of users

getGroups

Set<ESGroup> getGroups()
Returns a set of all available ESGroups.

Returns:
a set of groups

getProjects

List<ESProjectHistory> getProjects()
Returns a list of all available project histories.

Returns:
a list of ESProjectHistory

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
Saves the state of the repository. Depending on the actual implementation this method may remain empty. This method exists mainly for performance reasons.

Throws:
IOException - in case saving fails


Copyright © 2016. All Rights Reserved.