Class GroupResourceAttributesModuleAbstract
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.GroupResourceAttributesModuleAbstract
- All Implemented Interfaces:
AttributesModuleImplApi,GroupResourceAttributesModuleImplApi
- Direct Known Subclasses:
GroupResourceVirtualAttributesModuleAbstract,urn_perun_group_resource_attribute_def_def_adName,urn_perun_group_resource_attribute_def_def_drupalGroupType,urn_perun_group_resource_attribute_def_def_isSystemUnixGroup,urn_perun_group_resource_attribute_def_def_o365EmailAddresses_mu,urn_perun_group_resource_attribute_def_def_projectDataLimit,urn_perun_group_resource_attribute_def_def_projectDataQuota,urn_perun_group_resource_attribute_def_def_projectDirPermissions,urn_perun_group_resource_attribute_def_def_projectName,urn_perun_group_resource_attribute_def_def_projectOwnerLogin,urn_perun_group_resource_attribute_def_def_systemUnixGID,urn_perun_group_resource_attribute_def_def_systemUnixGroupName,urn_perun_group_resource_attribute_def_def_vomsGroupName,urn_perun_group_resource_attribute_def_def_vomsRoles
public abstract class GroupResourceAttributesModuleAbstract
extends AttributesModuleAbstract
implements GroupResourceAttributesModuleImplApi
Abstract class for Resource Group 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:
- Michal Stava invalid input: '<'stavamichal@gmail.com>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangedAttributeHook(PerunSessionImpl session, Group group, Resource resource, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidcheckAttributeSemantics(PerunSessionImpl perunSession, Group group, Resource resource, Attribute attribute) Checks if value of this group-resource attribute has valid semantics.voidcheckAttributeSyntax(PerunSessionImpl perunSession, Group group, Resource resource, Attribute attribute) Checks if value of this group-resource attribute has valid syntax.fillAttribute(PerunSessionImpl session, Group group, Resource resource, AttributeDefinition attribute) This method MAY fill an attribute at the specified resource.Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
getAttributeDefinition, 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
getAttributeDefinition, getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChange
-
Constructor Details
-
GroupResourceAttributesModuleAbstract
public GroupResourceAttributesModuleAbstract()
-
-
Method Details
-
changedAttributeHook
public void changedAttributeHook(PerunSessionImpl session, Group group, Resource resource, Attribute attribute) Description copied from interface:GroupResourceAttributesModuleImplApiIf you need to do some further work with other modules, this method do that- Specified by:
changedAttributeHookin interfaceGroupResourceAttributesModuleImplApi- Parameters:
session- sessiongroup- the groupresource- the resourceattribute- the attribute
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSessionImpl perunSession, Group group, Resource resource, Attribute attribute) throws WrongReferenceAttributeValueException, WrongAttributeAssignmentException Description copied from interface:GroupResourceAttributesModuleImplApiChecks if value of this group-resource attribute has valid semantics.- Specified by:
checkAttributeSemanticsin interfaceGroupResourceAttributesModuleImplApi- Parameters:
perunSession- perun sessiongroup- groupresource- resource for which you want to check validity of attributeattribute- attribute to check- Throws:
WrongAttributeAssignmentExceptionWrongReferenceAttributeValueException
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSessionImpl perunSession, Group group, Resource resource, Attribute attribute) throws WrongAttributeValueException Description copied from interface:GroupResourceAttributesModuleImplApiChecks if value of this group-resource attribute has valid syntax.- Specified by:
checkAttributeSyntaxin interfaceGroupResourceAttributesModuleImplApi- Parameters:
perunSession- perun sessiongroup- groupresource- resource 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, Group group, Resource resource, AttributeDefinition attribute) throws WrongAttributeAssignmentException Description copied from interface:GroupResourceAttributesModuleImplApiThis method MAY fill an attribute at the specified resource.- Specified by:
fillAttributein interfaceGroupResourceAttributesModuleImplApi- Parameters:
session- perun sessiongroup- groupresource- resource for which you want to check validity of attributeattribute- attribute to fill in- Returns:
- Throws:
WrongAttributeAssignmentException
-