Package org.bremersee.groupman.mock
Class GroupRepositoryMock
java.lang.Object
org.bremersee.groupman.mock.GroupRepositoryMock
The group repository mock.
- Author:
- Christian Bremer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The constant GROUP_0_ID.static final String
The constant GROUP_0_MEMBER_0.static final String
The constant GROUP_0_MEMBER_1.static final String
The constant GROUP_0_OWNER.static final String
The constant GROUP_1_ID.static final String
The constant GROUP_1_MEMBER_0.static final String
The constant GROUP_1_MEMBER_1.static final String
The constant GROUP_1_OWNER. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Group
createGroup
(Group group) Create group.static void
deleteGroup
(String groupId) Delete group.getEditableGroups
(String userName) Gets editable groups.static Group
getGroupById
(String groupId) Gets group by id.Gets groups.getGroupsByIds
(List<String> ids) Gets groups by ids.getMembership
(String userName) Gets membership.getMembershipIds
(String userName) Gets membership ids.static Status
Gets status.getUsableGroups
(String userName) Gets usable groups.static void
reset()
Reset.static Group
updateGroup
(String groupId, Group group) Update group.
-
Field Details
-
GROUP_0_ID
The constant GROUP_0_ID.- See Also:
-
GROUP_0_OWNER
The constant GROUP_0_OWNER.- See Also:
-
GROUP_0_MEMBER_0
The constant GROUP_0_MEMBER_0.- See Also:
-
GROUP_0_MEMBER_1
The constant GROUP_0_MEMBER_1.- See Also:
-
GROUP_1_ID
The constant GROUP_1_ID.- See Also:
-
GROUP_1_OWNER
The constant GROUP_1_OWNER.- See Also:
-
GROUP_1_MEMBER_0
The constant GROUP_1_MEMBER_0.- See Also:
-
GROUP_1_MEMBER_1
The constant GROUP_1_MEMBER_1.- See Also:
-
-
Constructor Details
-
GroupRepositoryMock
public GroupRepositoryMock()
-
-
Method Details
-
reset
public static void reset()Reset. -
createGroup
Create group.- Parameters:
group
- the group- Returns:
- the group
-
getGroups
Gets groups.- Returns:
- the groups
-
getGroupById
Gets group by id.- Parameters:
groupId
- the group id- Returns:
- the group by id
-
updateGroup
Update group.- Parameters:
groupId
- the group idgroup
- the group- Returns:
- the group
-
deleteGroup
Delete group.- Parameters:
groupId
- the group id
-
getGroupsByIds
Gets groups by ids.- Parameters:
ids
- the ids- Returns:
- the groups by ids
-
getEditableGroups
Gets editable groups.- Parameters:
userName
- the user name- Returns:
- the editable groups
-
getUsableGroups
Gets usable groups.- Parameters:
userName
- the user name- Returns:
- the usable groups
-
getMembership
Gets membership.- Parameters:
userName
- the user name- Returns:
- the membership
-
getMembershipIds
Gets membership ids.- Parameters:
userName
- the user name- Returns:
- the membership ids
-
getStatus
Gets status.- Parameters:
userName
- the user name- Returns:
- the status
-