Package org.appng.core.domain
Class PermissionImpl
- java.lang.Object
-
- org.appng.core.domain.PermissionImpl
-
- All Implemented Interfaces:
Serializable
,Identifiable<Integer>
,Nameable
,Named<Integer>
,Permission
,Versionable<Date>
,Auditable<Integer>
@Entity public class PermissionImpl extends Object implements Permission, Auditable<Integer>
DefaultPermission
-implementation- Author:
- Matthias Müller
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PermissionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
ApplicationImpl
getApplication()
Returns theApplication
thisPermission
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,}",message="{validation.permission}") String
getName()
Returns the name.Date
getVersion()
Returns the version.int
hashCode()
void
setApplication(ApplicationImpl application)
void
setDescription(String description)
void
setId(Integer id)
void
setName(String name)
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,}", message="{validation.permission}") public @NotNull(message="{validation.notNull}") @Pattern(regexp="[a-zA-Z0-9\\-\\.]{3,}",message="{validation.permission}") 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)
-
getApplication
public ApplicationImpl getApplication()
Description copied from interface:Permission
Returns theApplication
thisPermission
belongs to.- Specified by:
getApplication
in interfacePermission
- Returns:
- the
Application
thisPermission
belongs
-
setApplication
public void setApplication(ApplicationImpl application)
-
-