Class Authorizations

java.lang.Object
com.uc4.api.objects.Authorizations
All Implemented Interfaces:
Iterable<Authorizations.Entry>

public class Authorizations extends Object implements Iterable<Authorizations.Entry>
Authorizations of Agents.
  • Constructor Details

    • Authorizations

      protected Authorizations(com.uc4.util.XMLDocument doc, String haclElementName, boolean isAssignment)
  • Method Details

    • size

      public int size()
      Returns:
      Number of authorization entries encapsulated by this class
    • store

      protected void store(com.uc4.util.XMLDocument doc, Element request)
    • setHostAuthorization

      public boolean setHostAuthorization(int client, boolean read, boolean write, boolean execute)
      Sets the authorizations for a client.
      Parameters:
      client - Number of the client
      read - Read permission
      write - Write permission
      execute - Execute permission
      Returns:
      true if the modification was successful, false if the client was not found
    • setHostAuthorization

      public boolean setHostAuthorization(int client, boolean read, boolean write, boolean execute, boolean selection)
      Sets the authorizations in case of Agent assignments. This method has an additional parameter for the selection field.
      Parameters:
      client - Number of the client
      read - Read permission
      write - Write permission
      execute - Execute permission
      selection - Selection
      Returns:
      true if the modification was successful, false if the client was not found
    • iterator

      public Iterator<Authorizations.Entry> iterator()
      Returns an iterator over AuthorizationItem.
      Specified by:
      iterator in interface Iterable<Authorizations.Entry>
      Returns:
      Iterator
    • clear

      public void clear()
      Sets the Read, Write and Execute permission for each client to false.