public abstract class UserToBlogRoleMapping extends Object implements Serializable
A helper entity which maps a user to its effective role in a blog.
Modifier and Type | Class and Description |
---|---|
static class |
UserToBlogRoleMapping.Factory
Constructs new instances of
UserToBlogRoleMapping . |
Constructor and Description |
---|
UserToBlogRoleMapping() |
Modifier and Type | Method and Description |
---|---|
String |
attributesToString()
Builds a string showing the current attribute values
|
boolean |
equals(Object object)
Returns
true if the argument is an UserToBlogRoleMapping instance and all
identifiers for this entity equal the identifiers of the argument entity. |
Long |
getBlogId()
ID of the blog
|
String |
getExternalSystemId()
The id of external system where the right got imported from
|
Set<Group> |
getGrantingGroups()
The groups which granted the role to the user because of the membership of the user in the
group and adding the group to the blog.
|
Long |
getId() |
int |
getNumericRole()
A numeric representation of the role the user has in the blog.
|
Long |
getUserId()
ID of the user.
|
int |
hashCode()
Returns a hash code based on this entity's identifiers.
|
boolean |
isGrantedByGroup()
whether the role was granted because of a membership of the user in a group that was added to
the blog
|
void |
setBlogId(Long blogId) |
void |
setExternalSystemId(String externalSystemId) |
void |
setGrantedByGroup(boolean grantedByGroup) |
void |
setGrantingGroups(Set<Group> grantingGroups) |
void |
setId(Long id) |
void |
setNumericRole(int numericRole) |
void |
setUserId(Long userId) |
public String attributesToString()
public boolean equals(Object object)
true
if the argument is an UserToBlogRoleMapping instance and all
identifiers for this entity equal the identifiers of the argument entity. Returns
false
otherwise.public Long getBlogId()
ID of the blog
public String getExternalSystemId()
The id of external system where the right got imported from
public Set<Group> getGrantingGroups()
The groups which granted the role to the user because of the membership of the user in the group and adding the group to the blog.
public Long getId()
public int getNumericRole()
A numeric representation of the role the user has in the blog.
public Long getUserId()
ID of the user.
public int hashCode()
public boolean isGrantedByGroup()
whether the role was granted because of a membership of the user in a group that was added to the blog
public void setBlogId(Long blogId)
public void setExternalSystemId(String externalSystemId)
public void setGrantedByGroup(boolean grantedByGroup)
public void setId(Long id)
public void setNumericRole(int numericRole)
public void setUserId(Long userId)
Copyright © 2019 Communote team. All rights reserved.