Class HostAttributesModuleAbstract
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.HostAttributesModuleAbstract
- All Implemented Interfaces:
AttributesModuleImplApi,HostAttributesModuleImplApi
public abstract class HostAttributesModuleAbstract
extends Object
implements HostAttributesModuleImplApi
Abstract class for Host Attributes modules.
----------------------------------------------------------------------------- Implements methods for modules to
perform default function. In the function that the method in the module does nothing, it is not necessary to
implement it, simply extend this abstract class.
- Author:
- Peter Balcirak invalid input: '<'peter.balcirak@gmail.com>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangedAttributeHook(PerunSessionImpl session, Host host, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidcheckAttributeSemantics(PerunSessionImpl session, Host host, Attribute attribute) Checks if value of assigned attribute to the host has valid semantics.voidcheckAttributeSyntax(PerunSessionImpl session, Host host, Attribute attribute) Checks if value of assigned attribute to the host has valid syntax.fillAttribute(PerunSessionImpl session, Host host, AttributeDefinition attribute) Tries to fill an attribute to the specified host.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleImplApi
getAttributeDefinition, getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChange
-
Constructor Details
-
HostAttributesModuleAbstract
public HostAttributesModuleAbstract()
-
-
Method Details
-
changedAttributeHook
Description copied from interface:HostAttributesModuleImplApiIf you need to do some further work with other modules, this method do that- Specified by:
changedAttributeHookin interfaceHostAttributesModuleImplApi- Parameters:
session- sessionhost- Hostattribute- the attribute
-
checkAttributeSemantics
Description copied from interface:HostAttributesModuleImplApiChecks if value of assigned attribute to the host has valid semantics.- Specified by:
checkAttributeSemanticsin interfaceHostAttributesModuleImplApi- Parameters:
session- Perun sessionhost- Hostattribute- Attribute of the member.
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSessionImpl session, Host host, Attribute attribute) throws WrongAttributeValueException Description copied from interface:HostAttributesModuleImplApiChecks if value of assigned attribute to the host has valid syntax.- Specified by:
checkAttributeSyntaxin interfaceHostAttributesModuleImplApi- Parameters:
session- Perun sessionhost- Hostattribute- Attribute of the host.- Throws:
WrongAttributeValueException- if the attribute value has wrong/illegal syntax
-
fillAttribute
Description copied from interface:HostAttributesModuleImplApiTries to fill an attribute to the specified host.- Specified by:
fillAttributein interfaceHostAttributesModuleImplApi- Parameters:
session- Perun Sessionhost- Hostattribute- Attribute of the member- Returns:
- Attribute which MAY be filled in
-