Class Roles

java.lang.Object
com.genologics.ri.role.Roles
All Implemented Interfaces:
Batch<RoleLink>, Serializable, Iterable<RoleLink>

public class Roles extends Object implements Batch<RoleLink>, Serializable
The representation for a list of role links.
Since:
2.19
See Also:
  • Field Details

    • roles

      protected List<RoleLink> roles
      The list of role links.
    • uri

      protected URI uri
      The URI of the roles list.
  • Constructor Details

    • Roles

      public Roles()
      Default constructor.
    • Roles

      public Roles(URI uri)
      Constructor with URI.
      Parameters:
      uri - The URI of the roles list.
  • Method Details

    • getRoles

      public List<RoleLink> getRoles()
      Gets the list of role links.
      Returns:
      A list of role links.
    • getUri

      public URI getUri()
      Gets the URI of the roles list.
      Returns:
      The roles list URI.
    • setUri

      public void setUri(URI uri)
      Sets the URI of the roles list.
      Parameters:
      uri - The roles list URI.
    • getList

      public List<RoleLink> getList()
      Gets the list of role links for batch processing.
      Specified by:
      getList in interface Batch<RoleLink>
      Returns:
      A list of role links.
    • getSize

      public int getSize()
      Gets the size of the roles list.
      Specified by:
      getSize in interface Batch<RoleLink>
      Returns:
      The number of role links, or 0 if the list is null.