Class SpaceIdentityProvider

java.lang.Object
org.exoplatform.social.core.identity.IdentityProvider<org.exoplatform.social.core.space.model.Space>
org.exoplatform.social.core.identity.provider.SpaceIdentityProvider

public class SpaceIdentityProvider extends org.exoplatform.social.core.identity.IdentityProvider<org.exoplatform.social.core.space.model.Space>
Provides the identity for a space
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpaceIdentityProvider(org.exoplatform.social.core.space.spi.SpaceService spaceService)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    org.exoplatform.social.core.identity.model.Identity
    createIdentity(org.exoplatform.social.core.space.model.Space space)
     
    org.exoplatform.social.core.space.model.Space
    findByRemoteId(String spacePrettyName)
    Finds a space by its remote Id (pretty name or space id).
     
    void
    populateProfile(org.exoplatform.social.core.identity.model.Profile profile, org.exoplatform.social.core.space.model.Space space)
     

    Methods inherited from class org.exoplatform.social.core.identity.IdentityProvider

    getAllUserId, getIdentityByRemoteId, onSaveIdentity, onSaveProfile, onUpdateProfile

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SpaceIdentityProvider

      public SpaceIdentityProvider(org.exoplatform.social.core.space.spi.SpaceService spaceService)
      Constructor
      Parameters:
      spaceService -
  • Method Details

    • findByRemoteId

      public org.exoplatform.social.core.space.model.Space findByRemoteId(String spacePrettyName)
      Finds a space by its remote Id (pretty name or space id).
      Specified by:
      findByRemoteId in class org.exoplatform.social.core.identity.IdentityProvider<org.exoplatform.social.core.space.model.Space>
      Parameters:
      spacePrettyName - could be spacePrettyName or spaceId
      Returns:
    • getName

      public String getName()
      Specified by:
      getName in class org.exoplatform.social.core.identity.IdentityProvider<org.exoplatform.social.core.space.model.Space>
    • createIdentity

      public org.exoplatform.social.core.identity.model.Identity createIdentity(org.exoplatform.social.core.space.model.Space space)
      Specified by:
      createIdentity in class org.exoplatform.social.core.identity.IdentityProvider<org.exoplatform.social.core.space.model.Space>
    • populateProfile

      public void populateProfile(org.exoplatform.social.core.identity.model.Profile profile, org.exoplatform.social.core.space.model.Space space)
      Specified by:
      populateProfile in class org.exoplatform.social.core.identity.IdentityProvider<org.exoplatform.social.core.space.model.Space>