Interface HostAttributesModuleImplApi
- All Superinterfaces:
AttributesModuleImplApi
- All Known Implementing Classes:
HostAttributesModuleAbstract
Interface for checking and filling in host's attributes.
- Author:
- Peter Balcirak invalid input: '<'peter.balcirak@gmail.com>
-
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 interface cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleImplApi
getAttributeDefinition, getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChange
-
Method Details
-
changedAttributeHook
If you need to do some further work with other modules, this method do that- Parameters:
session
- sessionhost
- Hostattribute
- the attribute
-
checkAttributeSemantics
Checks if value of assigned attribute to the host has valid semantics.- Parameters:
session
- Perun sessionhost
- Hostattribute
- 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 sessionhost
- Hostattribute
- Attribute of the host.- Throws:
InternalErrorException
- if an exception is raised in particular implementation, the exception is wrapped in InternalErrorExceptionWrongAttributeValueException
- if the attribute value has wrong/illegal syntax
-
fillAttribute
Tries to fill an attribute to the specified host.- Parameters:
session
- Perun Sessionhost
- Hostattribute
- Attribute of the member- Returns:
- Attribute which MAY be filled in
-