Package io.manebot.user
Interface UserGroupMembership
-
- All Known Implementing Classes:
UserGroup
public interface UserGroupMembership
-
-
Method Summary
Modifier and Type Method Description java.util.Date
getAddedDate()
Gets the date the user was added by the adding user.User
getAddingUser()
Gets the user that added this membership.UserGroup
getGroup()
Gets the user group in this membership.User
getUser()
Gets the user in this relationship.void
remove()
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.SecurityException
Removes 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.
-
-