Class ConnectionFilterListAccess

java.lang.Object
org.exoplatform.social.core.identity.ConnectionFilterListAccess
All Implemented Interfaces:
org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity>

public class ConnectionFilterListAccess extends Object implements org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    The connection list access Type Enum.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConnectionFilterListAccess(org.exoplatform.social.core.storage.api.IdentityStorage identityStorage, org.exoplatform.social.core.storage.api.RelationshipStorage relationshipStorage, org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.profile.ProfileFilter filter)
    The constructor.
    ConnectionFilterListAccess(org.exoplatform.social.core.storage.api.IdentityStorage identityStorage, org.exoplatform.social.core.storage.api.RelationshipStorage relationshipStorage, org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.profile.ProfileFilter filter, ConnectionFilterListAccess.Type type)
    The constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the type of connection list access.
    org.exoplatform.social.core.identity.model.Identity[]
    load(int offset, int limit)
    void
    Sets the type of connection list access.

    Methods inherited from class java.lang.Object

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

    • ConnectionFilterListAccess

      public ConnectionFilterListAccess(org.exoplatform.social.core.storage.api.IdentityStorage identityStorage, org.exoplatform.social.core.storage.api.RelationshipStorage relationshipStorage, org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.profile.ProfileFilter filter)
      The constructor.
      Parameters:
      relationshipStorage - Storage object of Relationship.
      identity - Identity to get connection.
    • ConnectionFilterListAccess

      public ConnectionFilterListAccess(org.exoplatform.social.core.storage.api.IdentityStorage identityStorage, org.exoplatform.social.core.storage.api.RelationshipStorage relationshipStorage, org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.profile.ProfileFilter filter, ConnectionFilterListAccess.Type type)
      The constructor.
      Parameters:
      relationshipStorage -
      identity -
      type -
      Since:
      1.2.3
  • Method Details

    • load

      public org.exoplatform.social.core.identity.model.Identity[] load(int offset, int limit) throws Exception
      Specified by:
      load in interface org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity>
      Throws:
      Exception
    • getSize

      public int getSize() throws Exception
      Specified by:
      getSize in interface org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity>
      Throws:
      Exception
    • getType

      Gets the type of connection list access.
      Returns:
      Since:
      1.2.3
    • setType

      public void setType(ConnectionFilterListAccess.Type type)
      Sets the type of connection list access.
      Parameters:
      type -
      Since:
      1.2.3