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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changedAttributeHook
(PerunSessionImpl session, Host host, Attribute attribute) If you need to do some further work with other modules, this method do thatvoid
checkAttributeSemantics
(PerunSessionImpl session, Host host, Attribute attribute) Checks if value of assigned attribute to the host has valid semantics.void
checkAttributeSyntax
(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, wait
Methods 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:HostAttributesModuleImplApi
If you need to do some further work with other modules, this method do that- Specified by:
changedAttributeHook
in interfaceHostAttributesModuleImplApi
- Parameters:
session
- sessionhost
- Hostattribute
- the attribute
-
checkAttributeSemantics
Description copied from interface:HostAttributesModuleImplApi
Checks if value of assigned attribute to the host has valid semantics.- Specified by:
checkAttributeSemantics
in 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:HostAttributesModuleImplApi
Checks if value of assigned attribute to the host has valid syntax.- Specified by:
checkAttributeSyntax
in 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:HostAttributesModuleImplApi
Tries to fill an attribute to the specified host.- Specified by:
fillAttribute
in interfaceHostAttributesModuleImplApi
- Parameters:
session
- Perun Sessionhost
- Hostattribute
- Attribute of the member- Returns:
- Attribute which MAY be filled in
-