Class urn_perun_member_resource_attribute_def_virt_isBanned
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.MemberResourceAttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.MemberResourceVirtualAttributesModuleAbstract
cz.metacentrum.perun.core.impl.modules.attributes.urn_perun_member_resource_attribute_def_virt_isBanned
- All Implemented Interfaces:
AttributesModuleImplApi
,MemberResourceAttributesModuleImplApi
,MemberResourceVirtualAttributesModuleImplApi
,VirtualAttributesModuleImplApi
public class urn_perun_member_resource_attribute_def_virt_isBanned
extends MemberResourceVirtualAttributesModuleAbstract
implements MemberResourceVirtualAttributesModuleImplApi
Module for getting information if member is banned on resource.
Get true if exists ban of member on resource or his user on facility.
- Author:
- Michal Stava
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn attributes definition which is represented by the modulegetAttributeValue
(PerunSessionImpl sess, Member member, Resource resource, AttributeDefinition attributeDefinition) This method will return computed value.resolveVirtualAttributeValueChange
(PerunSessionImpl perunSession, AuditEvent message) Gets message from auditer and resolves if it is needed to add another messages to DB about virtualAttribute changes.Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.MemberResourceVirtualAttributesModuleAbstract
getStrongDependencies, removeAttributeValue, setAttributeValue
Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.MemberResourceAttributesModuleAbstract
changedAttributeHook, checkAttributeSemantics, checkAttributeSyntax, fillAttribute
Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
getAuthorizedRoles, getDependencies
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
Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.MemberResourceAttributesModuleImplApi
changedAttributeHook, checkAttributeSemantics, checkAttributeSyntax, fillAttribute
Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.MemberResourceVirtualAttributesModuleImplApi
removeAttributeValue, setAttributeValue
Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.VirtualAttributesModuleImplApi
getStrongDependencies
-
Constructor Details
-
urn_perun_member_resource_attribute_def_virt_isBanned
public urn_perun_member_resource_attribute_def_virt_isBanned()
-
-
Method Details
-
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
-
getAttributeValue
public Attribute getAttributeValue(PerunSessionImpl sess, Member member, Resource resource, AttributeDefinition attributeDefinition) Description copied from interface:MemberResourceVirtualAttributesModuleImplApi
This method will return computed value.- Specified by:
getAttributeValue
in interfaceMemberResourceVirtualAttributesModuleImplApi
- Overrides:
getAttributeValue
in classMemberResourceVirtualAttributesModuleAbstract
- Parameters:
sess
- perun sessionmember
- member which is needed for computing the valueresource
- resource which is needed for computing the valueattributeDefinition
- attribute to operate on- Returns:
-
resolveVirtualAttributeValueChange
public List<AuditEvent> resolveVirtualAttributeValueChange(PerunSessionImpl perunSession, AuditEvent message) throws AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesModuleImplApi
Gets message from auditer and resolves if it is needed to add another messages to DB about virtualAttribute changes.- Specified by:
resolveVirtualAttributeValueChange
in interfaceAttributesModuleImplApi
- Overrides:
resolveVirtualAttributeValueChange
in classMemberResourceVirtualAttributesModuleAbstract
- Returns:
- list of additional messages for auditer to log it
- Throws:
AttributeNotExistsException
WrongAttributeAssignmentException
-