Class urn_perun_user_attribute_def_virt_voPersonExternalAffiliation
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.UserAttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.UserVirtualAttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.UserVirtualAttributeCollectedFromUserExtSource
cz.metacentrum.perun.core.impl.modules.attributes.urn_perun_user_attribute_def_virt_voPersonExternalAffiliation
- All Implemented Interfaces:
AttributesModuleImplApi
,UserAttributesModuleImplApi
,UserVirtualAttributesModuleImplApi
,VirtualAttributesModuleImplApi
public class urn_perun_user_attribute_def_virt_voPersonExternalAffiliation
extends UserVirtualAttributeCollectedFromUserExtSource
All affiliations collected from: - UserExtSources attributes -
urn:perun:user:attribute-def:def:voPersonExternalAffiliationManuallyAssigned -
urn:perun:group:attribute-def:def:groupAffiliations
- Author:
- Martin Kuba makub@ics.muni.cz, Dominik Frantisek Bucik invalid input: '<'bucik@ics.muni.cz>
-
Nested Class Summary
Nested classes/interfaces inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.UserVirtualAttributeCollectedFromUserExtSource
UserVirtualAttributeCollectedFromUserExtSource.AttributeHandleIdentifier, UserVirtualAttributeCollectedFromUserExtSource.ModifyValueContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributeValue
(PerunSessionImpl sess, User user, AttributeDefinition destinationAttributeDefinition) This method will return computed value.Specifies friendly (short) name of attribute from namespace urn:perun:user:attribute-def:virt where values will be storedGet friendly name of secondary source attributeGet name of secondary source attributeSpecifies friendly (short) name of attribute from namespace urn:perun:ues:attribute-def:def whose values are to be collected.Get friendly name of tertiary source attributeGet name of tertiary source attributeresolveVirtualAttributeValueChange
(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.UserVirtualAttributeCollectedFromUserExtSource
getAlsoExtLogin, getAttributeDefinition, getDestinationAttributeDescription, getDestinationAttributeDisplayName, getDestinationAttributeName, getExtSourceFilter, getSourceAttributeName, getValueFilter, initModifyValueContext, isLastAccessValid, modifyValue
Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.UserVirtualAttributesModuleAbstract
getStrongDependencies, removeAttributeValue, searchInAttributesValues, setAttributeValue
Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.UserAttributesModuleAbstract
changedAttributeHook, checkAttributeSemantics, checkAttributeSyntax, fillAttribute, getAnonymizedValue
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.UserAttributesModuleImplApi
changedAttributeHook, checkAttributeSemantics, checkAttributeSyntax, fillAttribute, getAnonymizedValue
-
Constructor Details
-
urn_perun_user_attribute_def_virt_voPersonExternalAffiliation
public urn_perun_user_attribute_def_virt_voPersonExternalAffiliation()
-
-
Method Details
-
getAttributeValue
public Attribute getAttributeValue(PerunSessionImpl sess, User user, AttributeDefinition destinationAttributeDefinition) Description copied from interface:UserVirtualAttributesModuleImplApi
This method will return computed value.- Specified by:
getAttributeValue
in interfaceUserVirtualAttributesModuleImplApi
- Overrides:
getAttributeValue
in classUserVirtualAttributeCollectedFromUserExtSource
- Parameters:
sess
- perun sessionuser
- user which is needed for computing the valuedestinationAttributeDefinition
- attribute to operate on- Returns:
-
getDestinationAttributeFriendlyName
Description copied from class:UserVirtualAttributeCollectedFromUserExtSource
Specifies friendly (short) name of attribute from namespace urn:perun:user:attribute-def:virt where values will be stored- Specified by:
getDestinationAttributeFriendlyName
in classUserVirtualAttributeCollectedFromUserExtSource
- Returns:
- short name of user attribute which is destination for collected values
-
getHandleIdentifiers
public List<UserVirtualAttributeCollectedFromUserExtSource.AttributeHandleIdentifier> getHandleIdentifiers()- Overrides:
getHandleIdentifiers
in classUserVirtualAttributeCollectedFromUserExtSource
-
getSecondarySourceAttributeFriendlyName
Get friendly name of secondary source attribute- Returns:
- friendly name of secondary source attribute
-
getSecondarySourceAttributeName
Get name of secondary source attribute- Returns:
- name of secondary source attribute
-
getSourceAttributeFriendlyName
Description copied from class:UserVirtualAttributeCollectedFromUserExtSource
Specifies friendly (short) name of attribute from namespace urn:perun:ues:attribute-def:def whose values are to be collected.- Specified by:
getSourceAttributeFriendlyName
in classUserVirtualAttributeCollectedFromUserExtSource
- Returns:
- short name of userExtSource attribute which is source of values
-
getTertiarySourceAttributeFriendlyName
Get friendly name of tertiary source attribute- Returns:
- friendly name of tertiary source attribute
-
getTertiarySourceAttributeName
Get name of tertiary source attribute- Returns:
- name of secondary source attribute
-
resolveVirtualAttributeValueChange
public List<AuditEvent> resolveVirtualAttributeValueChange(PerunSessionImpl perunSession, AuditEvent message) throws WrongReferenceAttributeValueException, 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 classUserVirtualAttributeCollectedFromUserExtSource
- Parameters:
perunSession
-message
-- Returns:
- list of additional messages for auditer to log it
- Throws:
WrongReferenceAttributeValueException
AttributeNotExistsException
WrongAttributeAssignmentException
-