public final class SecurityRole extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
SecurityRole()
Creates new instance.
|
|
SecurityRole(Long id,
Long entityVersion,
String name,
Collection<String> rights)
Creates new instance.
|
|
SecurityRole(String name)
Creates new instance.
|
|
SecurityRole(String name,
Collection<String> rights)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Long |
getEntityVersion()
Returns the entity version.
|
Long |
getId()
Returns the id of the role.
|
String |
getName()
Returns the name of the security role.
|
Set<String> |
getRights()
Returns the set of rights that belong to the security role.
|
int |
hashCode() |
String |
toString() |
protected SecurityRole()
public SecurityRole(String name)
name - NullPointerException - if name is nullIllegalArgumentException - (unchecked) If the name argument contains just whitespace characters.public SecurityRole(String name, Collection<String> rights)
name - rights - public SecurityRole(Long id, Long entityVersion, String name, Collection<String> rights)
id - entityVersion - name - The name of the security role (as their unique identifier).
Cannot be blank.rights - The set of rights that are about to belong to the security
role. Cannot be null.NullPointerException - (unchecked) If at least one from the arguments is null.IllegalArgumentException - (unchecked) If the name argument contains just
whitespace characters.public Long getId()
public Long getEntityVersion()
public String getName()
public Set<String> getRights()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.