Interface HostAttributesModuleImplApi

All Superinterfaces:
AttributesModuleImplApi
All Known Implementing Classes:
HostAttributesModuleAbstract

public interface HostAttributesModuleImplApi extends AttributesModuleImplApi
Interface for checking and filling in host's attributes.
Author:
Peter Balcirak <peter.balcirak@gmail.com>
  • Method Details

    • changedAttributeHook

      void changedAttributeHook(PerunSessionImpl session, Host host, Attribute attribute)
      If you need to do some further work with other modules, this method do that
      Parameters:
      session - session
      host - Host
      attribute - the attribute
    • checkAttributeSemantics

      void checkAttributeSemantics(PerunSessionImpl session, Host host, Attribute attribute)
      Checks if value of assigned attribute to the host has valid semantics.
      Parameters:
      session - Perun session
      host - Host
      attribute - Attribute of the member.
    • checkAttributeSyntax

      void checkAttributeSyntax(PerunSessionImpl session, Host host, Attribute attribute) throws WrongAttributeValueException
      Checks if value of assigned attribute to the host has valid syntax.
      Parameters:
      session - Perun session
      host - Host
      attribute - Attribute of the host.
      Throws:
      InternalErrorException - if an exception is raised in particular implementation, the exception is wrapped in InternalErrorException
      WrongAttributeValueException - if the attribute value has wrong/illegal syntax
    • fillAttribute

      Attribute fillAttribute(PerunSessionImpl session, Host host, AttributeDefinition attribute)
      Tries to fill an attribute to the specified host.
      Parameters:
      session - Perun Session
      host - Host
      attribute - Attribute of the member
      Returns:
      Attribute which MAY be filled in