Package org.appng.core.domain
Class RoleImpl
- java.lang.Object
-
- org.appng.core.domain.RoleImpl
-
- All Implemented Interfaces:
Serializable
,Identifiable<Integer>
,Nameable
,Named<Integer>
,Role
,Versionable<Date>
,Auditable<Integer>
@Entity public class RoleImpl extends Object implements Role, Auditable<Integer>
DefaultRole
-implementation- Author:
- Matthias Müller
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RoleImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Application
getApplication()
Returns theApplication
thisRole
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()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.appng.core.domain.Auditable
getAuditName
-
-
-
-
Method Detail
-
getId
public Integer getId()
Description copied from interface:Identifiable
Returns the id.- Specified by:
getId
in interfaceIdentifiable<Integer>
- Returns:
- the id
-
setId
public void setId(Integer id)
-
getName
@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()
Description copied from interface:Nameable
Returns the name.
-
setName
public void setName(String name)
-
getDescription
@Size(max=8192, message="{validation.string.max}") public @Size(max=8192,message="{validation.string.max}") String getDescription()
Description copied from interface:Nameable
Returns the description.- Specified by:
getDescription
in interfaceNameable
- Returns:
- the description
-
setDescription
public void setDescription(String description)
-
getVersion
public Date getVersion()
Description copied from interface:Versionable
Returns the version.- Specified by:
getVersion
in interfaceVersionable<Date>
- Returns:
- the version
-
setVersion
public void setVersion(Date version)
-
getPermissions
public Set<Permission> getPermissions()
Description copied from interface:Role
- Specified by:
getPermissions
in interfaceRole
- Returns:
- the
Permission
s
-
setPermissions
public void setPermissions(Set<Permission> permissions)
-
getApplication
public Application getApplication()
Description copied from interface:Role
Returns theApplication
thisRole
belongs to.- Specified by:
getApplication
in interfaceRole
- Returns:
- the
Application
-
setApplication
public void setApplication(Application application)
-
-