|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WorkgroupService
| Method Summary | |
|---|---|
void |
addMembers(Workgroup workgroup,
Set<User> membersToAdd)
Adds members to an already-existing workgroup. |
List<Workgroup> |
createPreviewWorkgroupForOfferingIfNecessary(Offering offering,
List<Workgroup> workgroupList,
User user,
String previewWorkgroupName)
Given a list of workgroups for a particular offering, if the list is empty (i.e. |
Workgroup |
createWorkgroup(String name,
Set<User> members,
Offering offering)
Creates a new SdsWorkgroup on the SDS as well as a
Workgroup object in the local data store, and then associates
that workgroup to an offering. |
Workgroup |
getPreviewWorkgroupForRooloOffering(Offering previewOffering,
User previewUser)
Creates a workgroup for a preview offering. |
Workgroup |
getWorkgroupForPreviewOffering(Offering previewOffering,
User previewUser)
Given a PreviewOffering, returns a workgroup that is used to preview it If a workgroup has not been created yet, a new workgroup is created with a default preview user |
List<Workgroup> |
getWorkgroupList()
Gets a List of workgroups available. |
List<Workgroup> |
getWorkgroupListByOfferingAndUser(Offering offering,
User user)
Gets a List of workgroups for a given offering with the
specified user as a member of that workgroup. |
List<Workgroup> |
getWorkgroupsForUser(User user)
Given a User, returns all of the workgroups that the user is in |
void |
removeMembers(Workgroup workgroup,
Set<User> membersToRemove)
Removes members from an already-existing workgroup. |
Workgroup |
retrieveById(Long workgroupId)
Retrieves the Workgroup domain object using unique workgroupId |
Workgroup |
updateWorkgroupMembership(ChangeWorkgroupParameters params)
Updates the Workgroups by modifying its members |
| Method Detail |
|---|
List<Workgroup> createPreviewWorkgroupForOfferingIfNecessary(Offering offering,
List<Workgroup> workgroupList,
User user,
String previewWorkgroupName)
offering - the given offering associated with the workgroupsworkgroupList - List of workgroups belonging to the given
offeringuser - the User that should be put into the preview
workgrouppreviewWorkgroupName - String that specifies the default preview
workgroup name
List<Workgroup> getWorkgroupsForUser(User user)
user - the User to search for
Workgroup getWorkgroupForPreviewOffering(Offering previewOffering,
User previewUser)
previewOffering - previewUser -
Workgroup getPreviewWorkgroupForRooloOffering(Offering previewOffering,
User previewUser)
Offering - previewOfferingUser - previewUser
Workgroup
List<Workgroup> getWorkgroupListByOfferingAndUser(Offering offering,
User user)
List of workgroups for a given offering with the
specified user as a member of that workgroup.
offering - for the workgroupuser - that is a member of the workgroup
List<Workgroup> getWorkgroupList()
List of workgroups available.
Workgroup List.
Workgroup createWorkgroup(String name,
Set<User> members,
Offering offering)
SdsWorkgroup on the SDS as well as a
Workgroup object in the local data store, and then associates
that workgroup to an offering. A side effect is
that the workgroup id is set to the value that the SDS assigns to the new
workgroup.
name - String name of the workgroup you want to createoffering - The offering to associate the workgroup to
Workgroup that is created.
void addMembers(Workgroup workgroup,
Set<User> membersToAdd)
workgroup - an existing Workgroup that the members will be
added tomembersToAdd - Set of users to add to the group
void removeMembers(Workgroup workgroup,
Set<User> membersToRemove)
workgroup - an existing Workgroup that the members will be
removed frommembersToRemove - Set of users to remove from the group
Workgroup retrieveById(Long workgroupId)
throws ObjectNotFoundException
workgroupId - Long workgroupId to use for lookup
Workgroup
the Workgroup object with the workgroupId
ObjectNotFoundException - when workgroupId cannot
be used to find an existing workgroup
ObjectNotFoundException
Workgroup updateWorkgroupMembership(ChangeWorkgroupParameters params)
throws Exception
student - the student to move from one workgroup to anotherworkgroupFrom - the workgroup that loses the studentworkgroupTo - the workgroup that receives the student
if workgroupTo does not exist, workgroupTo is null, and
a new workgroup is created
Exception - when update fails
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||