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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkAttributeSemantics
(PerunSessionImpl perunSession, Facility facility, Attribute attribute) Checks if value of this facility attribute has valid semantics.void
checkAttributeSyntax
(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
changedAttributeHook
Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChange
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
getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChange
Methods 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:FacilityAttributesModuleImplApi
Checks if value of this facility attribute has valid semantics.- Specified by:
checkAttributeSemantics
in interfaceFacilityAttributesModuleImplApi
- Overrides:
checkAttributeSemantics
in 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:
checkAttributeSyntax
in interfaceFacilityAttributesModuleImplApi
- Overrides:
checkAttributeSyntax
in 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:
fillAttribute
in interfaceFacilityAttributesModuleImplApi
- Overrides:
fillAttribute
in 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:AttributesModuleImplApi
Return attributes definition which is represented by the module- Specified by:
getAttributeDefinition
in interfaceAttributesModuleImplApi
- Overrides:
getAttributeDefinition
in classAttributesModuleAbstract
- Returns:
- attribute definition
-