Class urn_perun_facility_attribute_def_def_passwdScpDestinationFile
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_passwdScpDestinationFile
- All Implemented Interfaces:
AttributesModuleImplApi,FacilityAttributesModuleImplApi
public class urn_perun_facility_attribute_def_def_passwdScpDestinationFile
extends FacilityAttributesModuleAbstract
implements FacilityAttributesModuleImplApi
Checks if the value is absolute unix way to file.
- Author:
- Michal Šťava invalid input: '<'stava.michal@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) Method for checking path of the file.fillAttribute(PerunSessionImpl perunSession, Facility facility, AttributeDefinition attribute) Method for filling path of the file.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_passwdScpDestinationFile
public urn_perun_facility_attribute_def_def_passwdScpDestinationFile()
-
-
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 Method for checking path of the file. Try to check if the path is equal to pattern ^(/[-_a-zA-Z0-9]+)+$- 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 perunSession, Facility facility, AttributeDefinition attribute) Method for filling path of the file. Return attribute with value equal null.- Specified by:
fillAttributein interfaceFacilityAttributesModuleImplApi- Overrides:
fillAttributein classFacilityAttributesModuleAbstract- Parameters:
perunSession- 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
-