Package io.manebot.user
Interface UserGroupMembership
-
- All Known Implementing Classes:
UserGroup
public interface UserGroupMembership
-
-
Method Summary
Modifier and Type Method Description java.util.DategetAddedDate()Gets the date the user was added by the adding user.UsergetAddingUser()Gets the user that added this membership.UserGroupgetGroup()Gets the user group in this membership.UsergetUser()Gets the user in this relationship.voidremove()Removes this membership, removing the user from the group in the membership.
-
-
-
Method Detail
-
getGroup
UserGroup getGroup()
Gets the user group in this membership.- Returns:
- UserGroup instance.
-
getUser
User getUser()
Gets the user in this relationship.- Returns:
- User instance.
-
getAddingUser
User getAddingUser()
Gets the user that added this membership.- Returns:
- User instance.
-
getAddedDate
java.util.Date getAddedDate()
Gets the date the user was added by the adding user.- Returns:
- Date instance.
-
remove
void remove() throws java.lang.SecurityExceptionRemoves this membership, removing the user from the group in the membership.- Throws:
java.lang.SecurityException- if there was a security violation removing the user from the group.
-
-