Class urn_perun_facility_attribute_def_def_shells
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.FacilityAttributesModuleAbstract
cz.metacentrum.perun.core.impl.modules.attributes.urn_perun_facility_attribute_def_def_shells
- All Implemented Interfaces:
AttributesModuleImplApi,FacilityAttributesModuleImplApi
public class urn_perun_facility_attribute_def_def_shells
extends FacilityAttributesModuleAbstract
implements FacilityAttributesModuleImplApi
Checks if all the shells at specified facility are in proper format.
- Author:
- Lukáš Pravda invalid input: '<'luky.pravda@gmail.com>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAttributeSemantics(PerunSessionImpl perunSession, Facility facility, Attribute attribute) Checks if value of this facility attribute has valid semantics.voidcheckAttributeSyntax(PerunSessionImpl perunSession, Facility facility, Attribute attribute) Checks if the facility has properly set shells.fillAttribute(PerunSessionImpl session, Facility facility, AttributeDefinition attribute) Method for filling shells at specified facility is not implemented yet.Return attributes definition which is represented by the moduleMethods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.FacilityAttributesModuleAbstract
changedAttributeHookMethods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChangeMethods 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
getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChangeMethods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.FacilityAttributesModuleImplApi
changedAttributeHook
-
Constructor Details
-
urn_perun_facility_attribute_def_def_shells
public urn_perun_facility_attribute_def_def_shells()
-
-
Method Details
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSessionImpl perunSession, Facility facility, Attribute attribute) throws WrongReferenceAttributeValueException Description copied from interface:FacilityAttributesModuleImplApiChecks if value of this facility attribute has valid semantics.- Specified by:
checkAttributeSemanticsin interfaceFacilityAttributesModuleImplApi- Overrides:
checkAttributeSemanticsin classFacilityAttributesModuleAbstract- Parameters:
perunSession- perun sessionfacility- facility for which you want to check validity of attributeattribute- attribute to check- Throws:
WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSessionImpl perunSession, Facility facility, Attribute attribute) throws WrongAttributeValueException Checks if the facility has properly set shells. There must be at least one shell per facility which must match regular expression e.g. corretct unix path.- Specified by:
checkAttributeSyntaxin interfaceFacilityAttributesModuleImplApi- Overrides:
checkAttributeSyntaxin classFacilityAttributesModuleAbstract- Parameters:
perunSession- perun sessionfacility- string for which you want to check validity of attributeattribute- attribute to check- Throws:
WrongAttributeValueException- if the attribute value has wrong/illegal syntax
-
fillAttribute
public Attribute fillAttribute(PerunSessionImpl session, Facility facility, AttributeDefinition attribute) Method for filling shells at specified facility is not implemented yet. Probably it will not be neccessary.- Specified by:
fillAttributein interfaceFacilityAttributesModuleImplApi- Overrides:
fillAttributein classFacilityAttributesModuleAbstract- Parameters:
session- perun sessionfacility- facility for which you want to check validity of attributeattribute- attribute to fill in- Returns:
-
getAttributeDefinition
Description copied from interface:AttributesModuleImplApiReturn attributes definition which is represented by the module- Specified by:
getAttributeDefinitionin interfaceAttributesModuleImplApi- Overrides:
getAttributeDefinitionin classAttributesModuleAbstract- Returns:
- attribute definition
-