Class UserPersistentShadowAttribute

All Implemented Interfaces:
AttributesModuleImplApi, UserAttributesModuleImplApi
Direct Known Subclasses:
urn_perun_user_attribute_def_def_login_namespace_bbmri_persistent_shadow, urn_perun_user_attribute_def_def_login_namespace_eduteams_acc_persistent_shadow, urn_perun_user_attribute_def_def_login_namespace_einfraid_persistent_shadow, urn_perun_user_attribute_def_def_login_namespace_elixir_persistent_shadow, urn_perun_user_attribute_def_def_login_namespace_envriid_persistent_shadow, UserPersistentShadowAttributeWithConfig

public abstract class UserPersistentShadowAttribute extends urn_perun_user_attribute_def_def_login_namespace
Abstract class that can be used to created persistent shadow modules.
Author:
Vojtech Sassmann <vojtech.sassmann@gmail.com>
  • Constructor Details

    • UserPersistentShadowAttribute

      public UserPersistentShadowAttribute()
  • Method Details

    • changedAttributeHook

      public void changedAttributeHook(PerunSessionImpl session, User user, Attribute attribute)
      ChangedAttributeHook() sets UserExtSource with following properties: - extSourceType is IdP - extSourceName is {getExtSourceName()} - user's extSource login is the same as his persistent attribute
      Specified by:
      changedAttributeHook in interface UserAttributesModuleImplApi
      Overrides:
      changedAttributeHook in class UserAttributesModuleAbstract
      Parameters:
      session - session
      user - the user
      attribute - the attribute
    • fillAttribute

      public Attribute fillAttribute(PerunSessionImpl perunSession, User user, AttributeDefinition attribute)
      Format is: "[hash]@{getDomainName()}" where [hash] represents sha1hash counted from user's id and perun instance id a login-namespace name.
      Specified by:
      fillAttribute in interface UserAttributesModuleImplApi
      Overrides:
      fillAttribute in class urn_perun_user_attribute_def_def_login_namespace
      Parameters:
      perunSession - PerunSession
      user - User to fill attribute for
      attribute - Attribute to fill value to
      Returns:
      Filled attribute
    • getAttributeDefinition

      public AttributeDefinition getAttributeDefinition()
      Description copied from interface: AttributesModuleImplApi
      Return attributes definition which is represented by the module
      Specified by:
      getAttributeDefinition in interface AttributesModuleImplApi
      Overrides:
      getAttributeDefinition in class AttributesModuleAbstract
      Returns:
      attribute definition
    • getDescription

      public abstract String getDescription()
      Get description of the attribute.
      Returns:
      attribute's description
    • getDisplayName

      public abstract String getDisplayName()
      Get attribute's display name.
      Returns:
      attribute's display name
    • getDomainName

      public abstract String getDomainName()
      Get domain name that is used to fill the attribute value
      Returns:
      domain name used in fill
    • getExtSourceName

      public abstract String getExtSourceName()
      Get name of the extSource where the login will be set.
      Returns:
      extSource name for the login
    • getFriendlyName

      public abstract String getFriendlyName()
      Get attribute's friendly name.
      Returns:
      attribute's friendly name
    • getFriendlyNameParameter

      public abstract String getFriendlyNameParameter()
      Get attribute's friendly name parameter.
      Returns:
      attribute's friendly name parameter.