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>

  Default `Role`-implementation
  Author:
    Matthias Müller
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RoleImpl()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    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()` Returns the `Permission`s for this `Role`, which are a subset of all `Permission`s of the `Application`.
    `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`

- - ### Constructor Detail

    - #### RoleImpl

          public RoleImpl()

  - ### Method Detail

    - #### getId

          public Integer getId()

      Description copied from interface: `Identifiable`
      Returns the id.
      Specified by:
        `getId` in interface `Identifiable<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.
      Specified by:
        `getName` in 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 interface `Nameable`
      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 interface `Versionable<Date>`
      Returns:
        the version

    - #### setVersion

          public void setVersion(Date version)

    - #### getPermissions

          public Set<Permission> getPermissions()

      Description copied from interface: `Role`
      Returns the `Permission`s for this `Role`, which are a subset of all `Permission`s of the `Application`.
      Specified by:
        `getPermissions` in interface `Role`
      Returns:
        the `Permission`s

    - #### setPermissions

          public void setPermissions(Set<Permission> permissions)

    - #### getApplication

          public Application getApplication()

      Description copied from interface: `Role`
      Returns the `Application` this `Role` belongs to.
      Specified by:
        `getApplication` in interface `Role`
      Returns:
        the `Application`

    - #### setApplication

          public void setApplication(Application application)

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2011–2023 aiticon GmbH. All rights reserved.