SpaceRepo Class

Namespace:
Weavy.Core.Repos
Assembly:
Weavy.Core.dll

Repo for spaces.

public static class SpaceRepo
Inheritance:
System.Object → SpaceRepo

Methods

Archive(int) Archived a space, i.e. sets the IsArchived flag.
Delete(int) Permanently deletes a Space.
Get(int) Gets a Space object from the repository.
GetByName(string) Gets a Space object from the repository.
GetByTeamname(string) Gets a Space object from the repository.
GetHQ() Gets the HQ Space from the repository.
GetMember(int, int) Returns a space Member.
GetMembers(int, MemberQuery) Returns the User that are members of the Space.
Insert(Space) Inserts a Space object into the repository.
RemoveMember(int, int) Removes a User from the specified Space.
Restore(int) Restores a trashed Space and its descendants, i.e. clears the IsTrashed flag.
Search(SpaceQuery) Performs a search according to the specified SpaceQuery object.
SetHQ(int?) Set the HQ.
Trash(int) Trashes a space, i.e. sets the IsTrashed flag.
Unarchive(int) Unarchive a space, i.e. clears the IsArchived flag.
Update(Space) Updates an existing Space in the datasource.
UpsertMember(int, int, Access) Insert or update the specified User as a member in the specified Space.