Class SpaceListAccess
java.lang.Object
org.exoplatform.social.core.space.SpaceListAccess
- All Implemented Interfaces:
org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space>
public class SpaceListAccess
extends Object
implements org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe unified-search content type of spaces, as the Spaces connector declares it. -
Constructor Summary
ConstructorsConstructorDescriptionSpaceListAccess(SpaceStorage spaceStorage, SpaceSearchConnector spaceSearchConnector, SpaceTemplateService spaceTemplateService, String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter, SpaceListAccessType type) SpaceListAccess(SpaceStorage spaceStorage, SpaceSearchConnector spaceSearchConnector, SpaceTemplateService spaceTemplateService, String userId, SpaceListAccessType type) SpaceListAccess(SpaceStorage spaceStorage, SpaceSearchConnector spaceSearchConnector, SpaceTemplateService spaceTemplateService, org.exoplatform.social.core.space.SpaceFilter spaceFilter, SpaceListAccessType type) SpaceListAccess(SpaceStorage spaceStorage, SpaceSearchConnector spaceSearchConnector, String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter, SpaceListAccessType type) SpaceListAccess(SpaceStorage spaceStorage, SpaceSearchConnector spaceSearchConnector, String userId, SpaceListAccessType type) SpaceListAccess(SpaceStorage spaceStorage, SpaceSearchConnector spaceSearchConnector, SpaceListAccessType type) SpaceListAccess(SpaceStorage spaceStorage, SpaceSearchConnector spaceSearchConnector, SpaceListAccessType type, String userId, String otherUserId) -
Method Summary
Modifier and TypeMethodDescriptionWhat matched in the form values of each space a search contributor found, per space id, for the spaces this listing returns; empty when the listing collected none.intgetSize()The number of spaces of this listing.org.exoplatform.social.core.space.model.Space[]load(int offset, int limit) One page of this listing.
-
Field Details
-
SPACE_CONTENT_TYPE
The unified-search content type of spaces, as the Spaces connector declares it.- See Also:
-
-
Constructor Details
-
SpaceListAccess
public SpaceListAccess(SpaceStorage spaceStorage, SpaceSearchConnector spaceSearchConnector, SpaceTemplateService spaceTemplateService, String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter, SpaceListAccessType type) -
SpaceListAccess
public SpaceListAccess(SpaceStorage spaceStorage, SpaceSearchConnector spaceSearchConnector, String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter, SpaceListAccessType type) -
SpaceListAccess
public SpaceListAccess(SpaceStorage spaceStorage, SpaceSearchConnector spaceSearchConnector, SpaceListAccessType type) -
SpaceListAccess
public SpaceListAccess(SpaceStorage spaceStorage, SpaceSearchConnector spaceSearchConnector, String userId, SpaceListAccessType type) -
SpaceListAccess
public SpaceListAccess(SpaceStorage spaceStorage, SpaceSearchConnector spaceSearchConnector, SpaceTemplateService spaceTemplateService, String userId, SpaceListAccessType type) -
SpaceListAccess
public SpaceListAccess(SpaceStorage spaceStorage, SpaceSearchConnector spaceSearchConnector, SpaceTemplateService spaceTemplateService, org.exoplatform.social.core.space.SpaceFilter spaceFilter, SpaceListAccessType type) -
SpaceListAccess
public SpaceListAccess(SpaceStorage spaceStorage, SpaceSearchConnector spaceSearchConnector, SpaceListAccessType type, String userId, String otherUserId)
-
-
Method Details
-
getSize
public int getSize()The number of spaces of this listing. On the search index, it counts the same query asload(int, int), contributed ids included; when the size is read before any page, the contributions are collected for a page of 10.- Specified by:
getSizein interfaceorg.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space>- Returns:
- the number of spaces
-
load
public org.exoplatform.social.core.space.model.Space[] load(int offset, int limit) One page of this listing. On the search index, the contributions, when the listing asks for them, are collected once foroffset + limitresults and kept forgetSize().- Specified by:
loadin interfaceorg.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space>- Parameters:
offset- the first spacelimit- the number of spaces- Returns:
- the spaces, never null
-
getFieldMatches
What matched in the form values of each space a search contributor found, per space id, for the spaces this listing returns; empty when the listing collected none.- Returns:
- the match lines, per space id, never null
-