@Entity public class RoleImpl extends Object implements Role, Auditable<Integer>
Role
-implementationConstructor and Description |
---|
RoleImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Application |
getApplication()
Returns the
Application this Role belongs to. |
@Size(max=8192,message="{validation.string.max}") String |
getDescription()
Returns the description.
|
Integer |
getId()
Returns the id.
|
@NotNull(message="{validation.notNull}") @Pattern(regexp="([a-zA-Z0-9_\\.-]{3,}[ ]*)+([a-zA-Z0-9_\\.-][ ]*)+",message="{validation.name}") @Size(max=64,message="{validation.string.max}") String |
getName()
Returns the name.
|
Set<Permission> |
getPermissions()
|
Date |
getVersion()
Returns the version.
|
int |
hashCode() |
void |
setApplication(Application application) |
void |
setDescription(String description) |
void |
setId(Integer id) |
void |
setName(String name) |
void |
setPermissions(Set<Permission> permissions) |
void |
setVersion(Date version) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAuditName
public Integer getId()
Identifiable
getId
in interface Identifiable<Integer>
public void setId(Integer id)
@NotNull(message="{validation.notNull}") @Pattern(regexp="([a-zA-Z0-9_\\.-]{3,}[ ]*)+([a-zA-Z0-9_\\.-][ ]*)+", message="{validation.name}") @Size(max=64, message="{validation.string.max}") public @NotNull(message="{validation.notNull}") @Pattern(regexp="([a-zA-Z0-9_\\.-]{3,}[ ]*)+([a-zA-Z0-9_\\.-][ ]*)+",message="{validation.name}") @Size(max=64,message="{validation.string.max}") String getName()
Nameable
public void setName(String name)
@Size(max=8192, message="{validation.string.max}") public @Size(max=8192,message="{validation.string.max}") String getDescription()
Nameable
getDescription
in interface Nameable
public void setDescription(String description)
public Date getVersion()
Versionable
getVersion
in interface Versionable<Date>
public void setVersion(Date version)
public Set<Permission> getPermissions()
Role
getPermissions
in interface Role
Permission
spublic void setPermissions(Set<Permission> permissions)
public Application getApplication()
Role
Application
this Role
belongs to.getApplication
in interface Role
Application
public void setApplication(Application application)
Copyright © 2011–2020 aiticon GmbH. All rights reserved.