Class ProfileFilterListAccess

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

public class ProfileFilterListAccess extends Object implements org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity>
ListAccess is used in loading identity with the input profile filter. With this list we can manage the size of returned list by offset and limit.
Since:
1.2.0-GA
Author:
hanhvq (gmail dot com)
  • Constructor Details

    • ProfileFilterListAccess

      public ProfileFilterListAccess(org.exoplatform.social.core.storage.api.IdentityStorage identityStorage, String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter, boolean forceLoadProfile)
      Constructor.
      Parameters:
      identityStorage -
      providerId - Id of provider.
      profileFilter - Filter object as extract's condition.
      forceLoadProfile - True then force to load profile.
    • ProfileFilterListAccess

      public ProfileFilterListAccess(org.exoplatform.social.core.storage.api.IdentityStorage identityStorage, String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter, boolean forceLoadProfile, ProfileFilterListAccess.Type type)
      Constructor.
      Parameters:
      identityStorage - The identity storage
      providerId - Id of provider.
      profileFilter - Filter object as extract's condition.
      forceLoadProfile - True then force to load profile.
      type - Type of which list provide for
  • Method Details

    • getProviderId

      public String getProviderId()
      Gets provider id.
      Returns:
    • setProviderId

      public void setProviderId(String providerId)
      Sets provider id.
      Parameters:
      providerId -
    • load

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