Class LdapIdentity

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.Iterable<ExternalIdentityRef> getDeclaredGroups()
      Returns an iterable of the declared groups of this external identity.
      org.apache.directory.api.ldap.model.entry.Entry getEntry()  
      @NotNull ExternalIdentityRef getExternalId()
      Returns the id of this identity as used in the external system.
      @NotNull java.lang.String getId()
      Returns the local id of this identity as it would be used in this repository.
      java.lang.String getIntermediatePath()
      Returns the desired intermediate relative path of the authorizable to be created.
      @NotNull java.lang.String getPrincipalName()
      Returns the DN as principal name.
      @NotNull java.util.Map<java.lang.String,​java.lang.Object> getProperties()
      Returns a map of properties of this external identity.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • id

        protected final java.lang.String id
      • path

        protected final java.lang.String path
      • entry

        protected final org.apache.directory.api.ldap.model.entry.Entry entry
    • Constructor Detail

      • LdapIdentity

        protected LdapIdentity​(LdapIdentityProvider provider,
                               ExternalIdentityRef ref,
                               java.lang.String id,
                               java.lang.String path,
                               org.apache.directory.api.ldap.model.entry.Entry entry)
    • Method Detail

      • getEntry

        public org.apache.directory.api.ldap.model.entry.Entry getEntry()
      • getId

        @NotNull
        public @NotNull java.lang.String getId()
        Returns the local id of this identity as it would be used in this repository. This usually corresponds to Authorizable.getID()
        Specified by:
        getId in interface ExternalIdentity
        Returns:
        the internal id.
      • getPrincipalName

        @NotNull
        public @NotNull java.lang.String getPrincipalName()
        Returns the DN as principal name.
        Specified by:
        getPrincipalName in interface ExternalIdentity
        Returns:
        the DN
      • getIntermediatePath

        public java.lang.String getIntermediatePath()
        Returns the desired intermediate relative path of the authorizable to be created. For example, one could map an external hierarchy into the local users and groups hierarchy. The provider must escape all characters so that the path is a valid JCR path. The path is always considered relative, even if it starts with a '/'.
        Specified by:
        getIntermediatePath in interface ExternalIdentity
        Returns:
        the intermediate path or null or empty.
      • getProperties

        @NotNull
        public @NotNull java.util.Map<java.lang.String,​java.lang.Object> getProperties()
        Returns a map of properties of this external identity.
        Specified by:
        getProperties in interface ExternalIdentity
        Returns:
        the properties
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object