Class SpaceServiceImpl

java.lang.Object
org.exoplatform.social.core.space.impl.SpaceServiceImpl
All Implemented Interfaces:
org.exoplatform.social.core.space.spi.SpaceService

public class SpaceServiceImpl extends Object implements org.exoplatform.social.core.space.spi.SpaceService
SpaceService implementation.
Since:
August 29, 2008
Author:
dang.tung
  • Field Details

  • Constructor Details

    • SpaceServiceImpl

      public SpaceServiceImpl(org.exoplatform.social.core.storage.api.SpaceStorage spaceStorage, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.portal.config.UserACL userACL, org.exoplatform.services.security.IdentityRegistry identityRegistry, org.exoplatform.social.core.space.SpacesAdministrationService spacesAdministrationService, org.exoplatform.social.core.space.spi.SpaceTemplateService spaceTemplateService, org.exoplatform.container.xml.InitParams params)
  • Method Details

    • getAllSpaces

      public List<org.exoplatform.social.core.space.model.Space> getAllSpaces() throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      getAllSpaces in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • getAllSpacesWithListAccess

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getAllSpacesWithListAccess()
      Specified by:
      getAllSpacesWithListAccess in interface org.exoplatform.social.core.space.spi.SpaceService
    • getSpaceByDisplayName

      public org.exoplatform.social.core.space.model.Space getSpaceByDisplayName(String spaceDisplayName)
      Specified by:
      getSpaceByDisplayName in interface org.exoplatform.social.core.space.spi.SpaceService
    • getSpaceByName

      public org.exoplatform.social.core.space.model.Space getSpaceByName(String spaceName)
      Specified by:
      getSpaceByName in interface org.exoplatform.social.core.space.spi.SpaceService
    • getSpaceByPrettyName

      public org.exoplatform.social.core.space.model.Space getSpaceByPrettyName(String spacePrettyName)
      Specified by:
      getSpaceByPrettyName in interface org.exoplatform.social.core.space.spi.SpaceService
    • getSpacesBySearchCondition

      public List<org.exoplatform.social.core.space.model.Space> getSpacesBySearchCondition(String searchCondition) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      getSpacesBySearchCondition in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • getSpaceByGroupId

      public org.exoplatform.social.core.space.model.Space getSpaceByGroupId(String groupId)
      Specified by:
      getSpaceByGroupId in interface org.exoplatform.social.core.space.spi.SpaceService
    • getSpaceById

      public org.exoplatform.social.core.space.model.Space getSpaceById(String id)
      Specified by:
      getSpaceById in interface org.exoplatform.social.core.space.spi.SpaceService
    • getSpaceByUrl

      public org.exoplatform.social.core.space.model.Space getSpaceByUrl(String url)
      Specified by:
      getSpaceByUrl in interface org.exoplatform.social.core.space.spi.SpaceService
    • getSpaces

      public List<org.exoplatform.social.core.space.model.Space> getSpaces(String userId) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      getSpaces in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • getAccessibleSpaces

      public List<org.exoplatform.social.core.space.model.Space> getAccessibleSpaces(String userId) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      getAccessibleSpaces in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • getAccessibleSpacesWithListAccess

      public org.exoplatform.social.core.space.SpaceListAccess getAccessibleSpacesWithListAccess(String userId)
      Specified by:
      getAccessibleSpacesWithListAccess in interface org.exoplatform.social.core.space.spi.SpaceService
    • getVisibleSpaces

      public List<org.exoplatform.social.core.space.model.Space> getVisibleSpaces(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      getVisibleSpaces in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • getVisibleSpacesWithListAccess

      public org.exoplatform.social.core.space.SpaceListAccess getVisibleSpacesWithListAccess(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getVisibleSpacesWithListAccess in interface org.exoplatform.social.core.space.spi.SpaceService
    • getUnifiedSearchSpacesWithListAccess

      public org.exoplatform.social.core.space.SpaceListAccess getUnifiedSearchSpacesWithListAccess(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getUnifiedSearchSpacesWithListAccess in interface org.exoplatform.social.core.space.spi.SpaceService
    • getEditableSpaces

      public List<org.exoplatform.social.core.space.model.Space> getEditableSpaces(String userId) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      getEditableSpaces in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • getInvitedSpaces

      public List<org.exoplatform.social.core.space.model.Space> getInvitedSpaces(String userId) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      getInvitedSpaces in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • getPublicSpaces

      public List<org.exoplatform.social.core.space.model.Space> getPublicSpaces(String userId) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      getPublicSpaces in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • getPublicSpacesWithListAccess

      public org.exoplatform.social.core.space.SpaceListAccess getPublicSpacesWithListAccess(String userId)
      Specified by:
      getPublicSpacesWithListAccess in interface org.exoplatform.social.core.space.spi.SpaceService
    • getPendingSpaces

      public List<org.exoplatform.social.core.space.model.Space> getPendingSpaces(String userId) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      getPendingSpaces in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • getPendingSpacesWithListAccess

      public org.exoplatform.social.core.space.SpaceListAccess getPendingSpacesWithListAccess(String userId)
      Specified by:
      getPendingSpacesWithListAccess in interface org.exoplatform.social.core.space.spi.SpaceService
    • createSpace

      public org.exoplatform.social.core.space.model.Space createSpace(org.exoplatform.social.core.space.model.Space space, String creator)
      Specified by:
      createSpace in interface org.exoplatform.social.core.space.spi.SpaceService
    • createSpace

      @Deprecated public org.exoplatform.social.core.space.model.Space createSpace(org.exoplatform.social.core.space.model.Space space, String creator, String invitedGroupId)
      Deprecated.
      Specified by:
      createSpace in interface org.exoplatform.social.core.space.spi.SpaceService
    • createSpace

      public org.exoplatform.social.core.space.model.Space createSpace(org.exoplatform.social.core.space.model.Space space, String creator, List<org.exoplatform.social.core.identity.model.Identity> identitiesToInvite)
      Specified by:
      createSpace in interface org.exoplatform.social.core.space.spi.SpaceService
    • inviteIdentities

      public void inviteIdentities(org.exoplatform.social.core.space.model.Space space, List<org.exoplatform.social.core.identity.model.Identity> identitiesToInvite)
      Specified by:
      inviteIdentities in interface org.exoplatform.social.core.space.spi.SpaceService
    • isSpaceContainsExternals

      public boolean isSpaceContainsExternals(Long spaceId)
      Specified by:
      isSpaceContainsExternals in interface org.exoplatform.social.core.space.spi.SpaceService
    • saveSpace

      public void saveSpace(org.exoplatform.social.core.space.model.Space space, boolean isNew)
      Specified by:
      saveSpace in interface org.exoplatform.social.core.space.spi.SpaceService
    • renameSpace

      public void renameSpace(org.exoplatform.social.core.space.model.Space space, String newDisplayName)
      Specified by:
      renameSpace in interface org.exoplatform.social.core.space.spi.SpaceService
    • renameSpace

      public void renameSpace(String remoteId, org.exoplatform.social.core.space.model.Space space, String newDisplayName)
      Specified by:
      renameSpace in interface org.exoplatform.social.core.space.spi.SpaceService
    • deleteSpace

      public void deleteSpace(org.exoplatform.social.core.space.model.Space space)
      Specified by:
      deleteSpace in interface org.exoplatform.social.core.space.spi.SpaceService
    • deleteSpace

      public void deleteSpace(org.exoplatform.social.core.space.model.Space space, boolean deleteGroup)
      Specified by:
      deleteSpace in interface org.exoplatform.social.core.space.spi.SpaceService
    • deleteSpace

      public void deleteSpace(String spaceId)
      Specified by:
      deleteSpace in interface org.exoplatform.social.core.space.spi.SpaceService
    • initApp

      public void initApp(org.exoplatform.social.core.space.model.Space space) throws org.exoplatform.social.core.space.SpaceException
      Deprecated.
      Uses initApps(Space) instead.
      Specified by:
      initApp in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • initApps

      public void initApps(org.exoplatform.social.core.space.model.Space space) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      initApps in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • deInitApps

      public void deInitApps(org.exoplatform.social.core.space.model.Space space) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      deInitApps in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • addMember

      public void addMember(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      addMember in interface org.exoplatform.social.core.space.spi.SpaceService
    • addMember

      public void addMember(String spaceId, String userId)
      Specified by:
      addMember in interface org.exoplatform.social.core.space.spi.SpaceService
    • removeMember

      public void removeMember(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      removeMember in interface org.exoplatform.social.core.space.spi.SpaceService
    • removeMember

      public void removeMember(String spaceId, String userId)
      Specified by:
      removeMember in interface org.exoplatform.social.core.space.spi.SpaceService
    • getMembers

      public List<String> getMembers(org.exoplatform.social.core.space.model.Space space)
      Specified by:
      getMembers in interface org.exoplatform.social.core.space.spi.SpaceService
    • getMembers

      public List<String> getMembers(String spaceId)
      Specified by:
      getMembers in interface org.exoplatform.social.core.space.spi.SpaceService
    • setLeader

      public void setLeader(org.exoplatform.social.core.space.model.Space space, String userId, boolean isLeader)
      If isLeader == true, that user will be assigned "manager" membership and the "member" memberhship will be removed. Otherwise, that user will be assigned "member" membership and the "manager" membership will be removed. However, if that user is the only manager, that user is not allowed to be removed from the manager membership.
      Specified by:
      setLeader in interface org.exoplatform.social.core.space.spi.SpaceService
    • setLeader

      public void setLeader(String spaceId, String userId, boolean isLeader)
      If isLeader == true, that user will be assigned "manager" membership and the "member" membership will be removed. Otherwise, that user will be assigned "member" membership and the "manager" membership will be removed.
      Specified by:
      setLeader in interface org.exoplatform.social.core.space.spi.SpaceService
    • isLeader

      public boolean isLeader(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      isLeader in interface org.exoplatform.social.core.space.spi.SpaceService
    • isLeader

      public boolean isLeader(String spaceId, String userId)
      Specified by:
      isLeader in interface org.exoplatform.social.core.space.spi.SpaceService
    • isOnlyLeader

      public boolean isOnlyLeader(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      isOnlyLeader in interface org.exoplatform.social.core.space.spi.SpaceService
    • isOnlyLeader

      public boolean isOnlyLeader(String spaceId, String userId)
      Specified by:
      isOnlyLeader in interface org.exoplatform.social.core.space.spi.SpaceService
    • isMember

      public boolean isMember(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      isMember in interface org.exoplatform.social.core.space.spi.SpaceService
    • isMember

      public boolean isMember(String spaceId, String userId)
      Specified by:
      isMember in interface org.exoplatform.social.core.space.spi.SpaceService
    • hasAccessPermission

      public boolean hasAccessPermission(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      hasAccessPermission in interface org.exoplatform.social.core.space.spi.SpaceService
    • hasAccessPermission

      public boolean hasAccessPermission(String spaceId, String userId)
      Specified by:
      hasAccessPermission in interface org.exoplatform.social.core.space.spi.SpaceService
    • hasEditPermission

      public boolean hasEditPermission(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      hasEditPermission in interface org.exoplatform.social.core.space.spi.SpaceService
    • hasEditPermission

      public boolean hasEditPermission(String spaceId, String userId)
      Specified by:
      hasEditPermission in interface org.exoplatform.social.core.space.spi.SpaceService
    • isInvited

      public boolean isInvited(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      isInvited in interface org.exoplatform.social.core.space.spi.SpaceService
    • isInvited

      public boolean isInvited(String spaceId, String userId)
      Specified by:
      isInvited in interface org.exoplatform.social.core.space.spi.SpaceService
    • isPending

      public boolean isPending(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      isPending in interface org.exoplatform.social.core.space.spi.SpaceService
    • isPending

      public boolean isPending(String spaceId, String userId)
      Specified by:
      isPending in interface org.exoplatform.social.core.space.spi.SpaceService
    • isIgnored

      public boolean isIgnored(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      isIgnored in interface org.exoplatform.social.core.space.spi.SpaceService
    • setIgnored

      public void setIgnored(String spaceId, String userId)
      Specified by:
      setIgnored in interface org.exoplatform.social.core.space.spi.SpaceService
    • installApplication

      public void installApplication(String spaceId, String appId) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      installApplication in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • restoreSpacePageLayout

      public void restoreSpacePageLayout(String spaceId, String appId, org.exoplatform.services.security.Identity identity) throws IllegalAccessException, org.exoplatform.social.core.space.SpaceException
      Specified by:
      restoreSpacePageLayout in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      IllegalAccessException
      org.exoplatform.social.core.space.SpaceException
    • moveApplication

      public void moveApplication(String spaceId, String appId, int transition) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      moveApplication in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • installApplication

      public void installApplication(org.exoplatform.social.core.space.model.Space space, String appId) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      installApplication in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • activateApplication

      public void activateApplication(org.exoplatform.social.core.space.model.Space space, String appId) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      activateApplication in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • activateApplication

      public void activateApplication(String spaceId, String appId) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      activateApplication in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • deactivateApplication

      public void deactivateApplication(org.exoplatform.social.core.space.model.Space space, String appId) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      deactivateApplication in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • deactivateApplication

      public void deactivateApplication(String spaceId, String appId) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      deactivateApplication in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • removeApplication

      public void removeApplication(org.exoplatform.social.core.space.model.Space space, String appId, String appName) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      removeApplication in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • removeApplication

      public void removeApplication(String spaceId, String appId, String appName) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      removeApplication in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • requestJoin

      public void requestJoin(String spaceId, String userId)
      Specified by:
      requestJoin in interface org.exoplatform.social.core.space.spi.SpaceService
    • requestJoin

      public void requestJoin(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      requestJoin in interface org.exoplatform.social.core.space.spi.SpaceService
    • revokeRequestJoin

      public void revokeRequestJoin(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      revokeRequestJoin in interface org.exoplatform.social.core.space.spi.SpaceService
    • revokeRequestJoin

      public void revokeRequestJoin(String spaceId, String userId)
      Specified by:
      revokeRequestJoin in interface org.exoplatform.social.core.space.spi.SpaceService
    • inviteMember

      public void inviteMember(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      inviteMember in interface org.exoplatform.social.core.space.spi.SpaceService
    • inviteMember

      public void inviteMember(String spaceId, String userId)
      Specified by:
      inviteMember in interface org.exoplatform.social.core.space.spi.SpaceService
    • revokeInvitation

      public void revokeInvitation(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      revokeInvitation in interface org.exoplatform.social.core.space.spi.SpaceService
    • revokeInvitation

      public void revokeInvitation(String spaceId, String userId)
      Specified by:
      revokeInvitation in interface org.exoplatform.social.core.space.spi.SpaceService
    • acceptInvitation

      public void acceptInvitation(org.exoplatform.social.core.space.model.Space space, String userId) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      acceptInvitation in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • acceptInvitation

      public void acceptInvitation(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      acceptInvitation in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • denyInvitation

      public void denyInvitation(String spaceId, String userId)
      Specified by:
      denyInvitation in interface org.exoplatform.social.core.space.spi.SpaceService
    • denyInvitation

      public void denyInvitation(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      denyInvitation in interface org.exoplatform.social.core.space.spi.SpaceService
    • validateRequest

      public void validateRequest(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      validateRequest in interface org.exoplatform.social.core.space.spi.SpaceService
    • validateRequest

      public void validateRequest(String spaceId, String userId)
      Specified by:
      validateRequest in interface org.exoplatform.social.core.space.spi.SpaceService
    • declineRequest

      public void declineRequest(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      declineRequest in interface org.exoplatform.social.core.space.spi.SpaceService
    • declineRequest

      public void declineRequest(String spaceId, String userId)
      Specified by:
      declineRequest in interface org.exoplatform.social.core.space.spi.SpaceService
    • registerSpaceLifeCycleListener

      public void registerSpaceLifeCycleListener(org.exoplatform.social.core.space.spi.SpaceLifeCycleListener listener)
      Specified by:
      registerSpaceLifeCycleListener in interface org.exoplatform.social.core.space.spi.SpaceService
    • unregisterSpaceLifeCycleListener

      public void unregisterSpaceLifeCycleListener(org.exoplatform.social.core.space.spi.SpaceLifeCycleListener listener)
      Specified by:
      unregisterSpaceLifeCycleListener in interface org.exoplatform.social.core.space.spi.SpaceService
    • addSpaceListener

      public void addSpaceListener(org.exoplatform.social.core.space.SpaceListenerPlugin plugin)
    • setPortletsPrefsRequired

      public void setPortletsPrefsRequired(org.exoplatform.social.core.application.PortletPreferenceRequiredPlugin portletPrefsRequiredPlugin)
      Set portlet preferences from plug-in into local variable.
      Specified by:
      setPortletsPrefsRequired in interface org.exoplatform.social.core.space.spi.SpaceService
    • getPortletsPrefsRequired

      public String[] getPortletsPrefsRequired()
      Get portlet preferences required for using in create portlet application.
      Specified by:
      getPortletsPrefsRequired in interface org.exoplatform.social.core.space.spi.SpaceService
    • getStorage

      public org.exoplatform.social.core.storage.api.SpaceStorage getStorage()
      Deprecated.
      To be removed at 1.3.x.
      Returns:
    • setStorage

      public void setStorage(org.exoplatform.social.core.storage.api.SpaceStorage storage)
      Deprecated.
      To be removed at 1.3.x
      Parameters:
      storage -
    • addInvitedUser

      public void addInvitedUser(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      addInvitedUser in interface org.exoplatform.social.core.space.spi.SpaceService
    • addPendingUser

      public void addPendingUser(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      addPendingUser in interface org.exoplatform.social.core.space.spi.SpaceService
    • getAccessibleSpacesByFilter

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getAccessibleSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getAccessibleSpacesByFilter in interface org.exoplatform.social.core.space.spi.SpaceService
    • getAllSpacesByFilter

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getAllSpacesByFilter(org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getAllSpacesByFilter in interface org.exoplatform.social.core.space.spi.SpaceService
    • getInvitedSpacesByFilter

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getInvitedSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getInvitedSpacesByFilter in interface org.exoplatform.social.core.space.spi.SpaceService
    • getMemberSpaces

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getMemberSpaces(String userId)
      Specified by:
      getMemberSpaces in interface org.exoplatform.social.core.space.spi.SpaceService
    • getMemberSpacesIds

      public List<String> getMemberSpacesIds(String username, int offset, int limit)
      Specified by:
      getMemberSpacesIds in interface org.exoplatform.social.core.space.spi.SpaceService
    • getManagerSpacesIds

      public List<String> getManagerSpacesIds(String username, int offset, int limit)
      Specified by:
      getManagerSpacesIds in interface org.exoplatform.social.core.space.spi.SpaceService
    • getManagerSpacesByFilter

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getManagerSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getManagerSpacesByFilter in interface org.exoplatform.social.core.space.spi.SpaceService
    • getManagerSpaces

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getManagerSpaces(String userId)
      Specified by:
      getManagerSpaces in interface org.exoplatform.social.core.space.spi.SpaceService
    • getMemberSpacesByFilter

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getMemberSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getMemberSpacesByFilter in interface org.exoplatform.social.core.space.spi.SpaceService
    • getFavoriteSpacesByFilter

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getFavoriteSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getFavoriteSpacesByFilter in interface org.exoplatform.social.core.space.spi.SpaceService
    • getPendingSpacesByFilter

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getPendingSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getPendingSpacesByFilter in interface org.exoplatform.social.core.space.spi.SpaceService
    • getPublicSpacesByFilter

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getPublicSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getPublicSpacesByFilter in interface org.exoplatform.social.core.space.spi.SpaceService
    • getSettingableSpaces

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getSettingableSpaces(String userId)
      Specified by:
      getSettingableSpaces in interface org.exoplatform.social.core.space.spi.SpaceService
    • getSettingabledSpacesByFilter

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getSettingabledSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getSettingabledSpacesByFilter in interface org.exoplatform.social.core.space.spi.SpaceService
    • hasSettingPermission

      public boolean hasSettingPermission(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      hasSettingPermission in interface org.exoplatform.social.core.space.spi.SpaceService
    • isInvitedUser

      public boolean isInvitedUser(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      isInvitedUser in interface org.exoplatform.social.core.space.spi.SpaceService
    • isManager

      public boolean isManager(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      isManager in interface org.exoplatform.social.core.space.spi.SpaceService
    • isRedactor

      public boolean isRedactor(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      isRedactor in interface org.exoplatform.social.core.space.spi.SpaceService
    • isPublisher

      public boolean isPublisher(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      isPublisher in interface org.exoplatform.social.core.space.spi.SpaceService
    • hasRedactor

      public boolean hasRedactor(org.exoplatform.social.core.space.model.Space space)
      Specified by:
      hasRedactor in interface org.exoplatform.social.core.space.spi.SpaceService
    • canRedactOnSpace

      public boolean canRedactOnSpace(org.exoplatform.social.core.space.model.Space space, org.exoplatform.services.security.Identity viewer)
      Specified by:
      canRedactOnSpace in interface org.exoplatform.social.core.space.spi.SpaceService
    • isOnlyManager

      public boolean isOnlyManager(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      isOnlyManager in interface org.exoplatform.social.core.space.spi.SpaceService
    • isPendingUser

      public boolean isPendingUser(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      isPendingUser in interface org.exoplatform.social.core.space.spi.SpaceService
    • registerSpaceListenerPlugin

      public void registerSpaceListenerPlugin(org.exoplatform.social.core.space.SpaceListenerPlugin spaceListenerPlugin)
      Specified by:
      registerSpaceListenerPlugin in interface org.exoplatform.social.core.space.spi.SpaceService
    • removeInvitedUser

      public void removeInvitedUser(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      removeInvitedUser in interface org.exoplatform.social.core.space.spi.SpaceService
    • removePendingUser

      public void removePendingUser(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      removePendingUser in interface org.exoplatform.social.core.space.spi.SpaceService
    • addRedactor

      public void addRedactor(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      addRedactor in interface org.exoplatform.social.core.space.spi.SpaceService
    • removeRedactor

      public void removeRedactor(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      removeRedactor in interface org.exoplatform.social.core.space.spi.SpaceService
    • addPublisher

      public void addPublisher(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      addPublisher in interface org.exoplatform.social.core.space.spi.SpaceService
    • removePublisher

      public void removePublisher(org.exoplatform.social.core.space.model.Space space, String userId)
      Specified by:
      removePublisher in interface org.exoplatform.social.core.space.spi.SpaceService
    • setManager

      public void setManager(org.exoplatform.social.core.space.model.Space space, String userId, boolean isManager)
      Specified by:
      setManager in interface org.exoplatform.social.core.space.spi.SpaceService
    • unregisterSpaceListenerPlugin

      public void unregisterSpaceListenerPlugin(org.exoplatform.social.core.space.SpaceListenerPlugin spaceListenerPlugin)
      Specified by:
      unregisterSpaceListenerPlugin in interface org.exoplatform.social.core.space.spi.SpaceService
    • setSpaceApplicationConfigPlugin

      @Deprecated public void setSpaceApplicationConfigPlugin(org.exoplatform.social.core.space.SpaceApplicationConfigPlugin spaceApplicationConfigPlugin)
      Deprecated.
      Specified by:
      setSpaceApplicationConfigPlugin in interface org.exoplatform.social.core.space.spi.SpaceService
    • getSpaceApplicationConfigPlugin

      @Deprecated public org.exoplatform.social.core.space.SpaceApplicationConfigPlugin getSpaceApplicationConfigPlugin()
      Deprecated.
      Specified by:
      getSpaceApplicationConfigPlugin in interface org.exoplatform.social.core.space.spi.SpaceService
    • updateSpace

      public org.exoplatform.social.core.space.model.Space updateSpace(org.exoplatform.social.core.space.model.Space space, List<org.exoplatform.social.core.identity.model.Identity> identitiesToInvite)
      Specified by:
      updateSpace in interface org.exoplatform.social.core.space.spi.SpaceService
    • updateSpace

      public org.exoplatform.social.core.space.model.Space updateSpace(org.exoplatform.social.core.space.model.Space existingSpace)
      Specified by:
      updateSpace in interface org.exoplatform.social.core.space.spi.SpaceService
    • updateSpaceAvatar

      public org.exoplatform.social.core.space.model.Space updateSpaceAvatar(org.exoplatform.social.core.space.model.Space existingSpace)
      Specified by:
      updateSpaceAvatar in interface org.exoplatform.social.core.space.spi.SpaceService
    • updateSpaceBanner

      public org.exoplatform.social.core.space.model.Space updateSpaceBanner(org.exoplatform.social.core.space.model.Space existingSpace)
      Specified by:
      updateSpaceBanner in interface org.exoplatform.social.core.space.spi.SpaceService
    • getInvitedSpacesWithListAccess

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getInvitedSpacesWithListAccess(String userId)
      Specified by:
      getInvitedSpacesWithListAccess in interface org.exoplatform.social.core.space.spi.SpaceService
    • updateSpaceAccessed

      public void updateSpaceAccessed(String remoteId, org.exoplatform.social.core.space.model.Space space) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      updateSpaceAccessed in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • getLastAccessedSpace

      public List<org.exoplatform.social.core.space.model.Space> getLastAccessedSpace(String remoteId, String appId, int offset, int limit) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      getLastAccessedSpace in interface org.exoplatform.social.core.space.spi.SpaceService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • getLastSpaces

      public List<org.exoplatform.social.core.space.model.Space> getLastSpaces(int limit)
      Specified by:
      getLastSpaces in interface org.exoplatform.social.core.space.spi.SpaceService
    • getLastAccessedSpace

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getLastAccessedSpace(String remoteId, String appId)
      Specified by:
      getLastAccessedSpace in interface org.exoplatform.social.core.space.spi.SpaceService
    • getVisitedSpaces

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getVisitedSpaces(String remoteId, String appId)
      Specified by:
      getVisitedSpaces in interface org.exoplatform.social.core.space.spi.SpaceService
    • getPendingSpaceRequestsToManage

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getPendingSpaceRequestsToManage(String remoteId)
      Specified by:
      getPendingSpaceRequestsToManage in interface org.exoplatform.social.core.space.spi.SpaceService
    • findSpaceExternalInvitationsBySpaceId

      public List<org.exoplatform.social.core.model.SpaceExternalInvitation> findSpaceExternalInvitationsBySpaceId(String spaceId)
      Specified by:
      findSpaceExternalInvitationsBySpaceId in interface org.exoplatform.social.core.space.spi.SpaceService
    • saveSpaceExternalInvitation

      public void saveSpaceExternalInvitation(String spaceId, String email, String tokenId)
      Specified by:
      saveSpaceExternalInvitation in interface org.exoplatform.social.core.space.spi.SpaceService
    • getSpaceExternalInvitationById

      public org.exoplatform.social.core.model.SpaceExternalInvitation getSpaceExternalInvitationById(String invitationId)
      Specified by:
      getSpaceExternalInvitationById in interface org.exoplatform.social.core.space.spi.SpaceService
    • deleteSpaceExternalInvitation

      public void deleteSpaceExternalInvitation(String invitationId)
      Specified by:
      deleteSpaceExternalInvitation in interface org.exoplatform.social.core.space.spi.SpaceService
    • findExternalInvitationsSpacesByEmail

      public List<String> findExternalInvitationsSpacesByEmail(String email)
      Specified by:
      findExternalInvitationsSpacesByEmail in interface org.exoplatform.social.core.space.spi.SpaceService
    • deleteExternalUserInvitations

      public void deleteExternalUserInvitations(String email)
      Specified by:
      deleteExternalUserInvitations in interface org.exoplatform.social.core.space.spi.SpaceService
    • isSuperManager

      public boolean isSuperManager(String userId)
      Specified by:
      isSuperManager in interface org.exoplatform.social.core.space.spi.SpaceService
    • getCommonSpaces

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getCommonSpaces(String userId, String otherUserId)
      Specified by:
      getCommonSpaces in interface org.exoplatform.social.core.space.spi.SpaceService