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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpaceServiceImpl(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 Summary
Modifier and TypeMethodDescriptionvoidacceptInvitation(String spaceId, String userId) voidacceptInvitation(org.exoplatform.social.core.space.model.Space space, String userId) voidactivateApplication(String spaceId, String appId) voidactivateApplication(org.exoplatform.social.core.space.model.Space space, String appId) voidaddInvitedUser(org.exoplatform.social.core.space.model.Space space, String userId) voidvoidvoidaddPendingUser(org.exoplatform.social.core.space.model.Space space, String userId) voidaddPublisher(org.exoplatform.social.core.space.model.Space space, String userId) voidaddRedactor(org.exoplatform.social.core.space.model.Space space, String userId) voidaddSpaceListener(org.exoplatform.social.core.space.SpaceListenerPlugin plugin) booleancanRedactOnSpace(org.exoplatform.social.core.space.model.Space space, org.exoplatform.services.security.Identity viewer) org.exoplatform.social.core.space.model.SpacecreateSpace(org.exoplatform.social.core.space.model.Space space, String creator) org.exoplatform.social.core.space.model.SpacecreateSpace(org.exoplatform.social.core.space.model.Space space, String creator, String invitedGroupId) Deprecated.org.exoplatform.social.core.space.model.SpacecreateSpace(org.exoplatform.social.core.space.model.Space space, String creator, List<org.exoplatform.social.core.identity.model.Identity> identitiesToInvite) voiddeactivateApplication(String spaceId, String appId) voiddeactivateApplication(org.exoplatform.social.core.space.model.Space space, String appId) voiddeclineRequest(String spaceId, String userId) voiddeclineRequest(org.exoplatform.social.core.space.model.Space space, String userId) voiddeInitApps(org.exoplatform.social.core.space.model.Space space) voidvoiddeleteSpace(String spaceId) voiddeleteSpace(org.exoplatform.social.core.space.model.Space space) voiddeleteSpace(org.exoplatform.social.core.space.model.Space space, boolean deleteGroup) voiddeleteSpaceExternalInvitation(String invitationId) voiddenyInvitation(String spaceId, String userId) voiddenyInvitation(org.exoplatform.social.core.space.model.Space space, String userId) List<org.exoplatform.social.core.model.SpaceExternalInvitation> List<org.exoplatform.social.core.space.model.Space> getAccessibleSpaces(String userId) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getAccessibleSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) org.exoplatform.social.core.space.SpaceListAccessList<org.exoplatform.social.core.space.model.Space> org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getAllSpacesByFilter(org.exoplatform.social.core.space.SpaceFilter spaceFilter) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getCommonSpaces(String userId, String otherUserId) List<org.exoplatform.social.core.space.model.Space> getEditableSpaces(String userId) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getFavoriteSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) List<org.exoplatform.social.core.space.model.Space> getInvitedSpaces(String userId) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getInvitedSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getInvitedSpacesWithListAccess(String userId) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getLastAccessedSpace(String remoteId, String appId) List<org.exoplatform.social.core.space.model.Space> getLastAccessedSpace(String remoteId, String appId, int offset, int limit) List<org.exoplatform.social.core.space.model.Space> getLastSpaces(int limit) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getManagerSpaces(String userId) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getManagerSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) getManagerSpacesIds(String username, int offset, int limit) getMembers(String spaceId) getMembers(org.exoplatform.social.core.space.model.Space space) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getMemberSpaces(String userId) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getMemberSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) getMemberSpacesIds(String username, int offset, int limit) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getPendingSpaceRequestsToManage(String remoteId) List<org.exoplatform.social.core.space.model.Space> getPendingSpaces(String userId) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getPendingSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) org.exoplatform.social.core.space.SpaceListAccessgetPendingSpacesWithListAccess(String userId) String[]Get portlet preferences required for using in create portlet application.List<org.exoplatform.social.core.space.model.Space> getPublicSpaces(String userId) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getPublicSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) org.exoplatform.social.core.space.SpaceListAccessgetPublicSpacesWithListAccess(String userId) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getSettingabledSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getSettingableSpaces(String userId) org.exoplatform.social.core.space.SpaceApplicationConfigPluginDeprecated.org.exoplatform.social.core.space.model.SpacegetSpaceByDisplayName(String spaceDisplayName) org.exoplatform.social.core.space.model.SpacegetSpaceByGroupId(String groupId) org.exoplatform.social.core.space.model.SpacegetSpaceById(String id) org.exoplatform.social.core.space.model.SpacegetSpaceByName(String spaceName) org.exoplatform.social.core.space.model.SpacegetSpaceByPrettyName(String spacePrettyName) org.exoplatform.social.core.space.model.SpacegetSpaceByUrl(String url) org.exoplatform.social.core.model.SpaceExternalInvitationgetSpaceExternalInvitationById(String invitationId) List<org.exoplatform.social.core.space.model.Space> List<org.exoplatform.social.core.space.model.Space> getSpacesBySearchCondition(String searchCondition) org.exoplatform.social.core.storage.api.SpaceStorageDeprecated.To be removed at 1.3.x.org.exoplatform.social.core.space.SpaceListAccessgetUnifiedSearchSpacesWithListAccess(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) List<org.exoplatform.social.core.space.model.Space> getVisibleSpaces(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) org.exoplatform.social.core.space.SpaceListAccessgetVisibleSpacesWithListAccess(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getVisitedSpaces(String remoteId, String appId) booleanhasAccessPermission(String spaceId, String userId) booleanhasAccessPermission(org.exoplatform.social.core.space.model.Space space, String userId) booleanhasEditPermission(String spaceId, String userId) booleanhasEditPermission(org.exoplatform.social.core.space.model.Space space, String userId) booleanhasRedactor(org.exoplatform.social.core.space.model.Space space) booleanhasSettingPermission(org.exoplatform.social.core.space.model.Space space, String userId) voidinitApp(org.exoplatform.social.core.space.model.Space space) Deprecated.UsesinitApps(Space)instead.voidinitApps(org.exoplatform.social.core.space.model.Space space) voidinstallApplication(String spaceId, String appId) voidinstallApplication(org.exoplatform.social.core.space.model.Space space, String appId) voidinviteIdentities(org.exoplatform.social.core.space.model.Space space, List<org.exoplatform.social.core.identity.model.Identity> identitiesToInvite) voidinviteMember(String spaceId, String userId) voidinviteMember(org.exoplatform.social.core.space.model.Space space, String userId) booleanbooleanbooleanbooleanisInvitedUser(org.exoplatform.social.core.space.model.Space space, String userId) booleanbooleanbooleanbooleanbooleanbooleanisOnlyLeader(String spaceId, String userId) booleanisOnlyLeader(org.exoplatform.social.core.space.model.Space space, String userId) booleanisOnlyManager(org.exoplatform.social.core.space.model.Space space, String userId) booleanbooleanbooleanisPendingUser(org.exoplatform.social.core.space.model.Space space, String userId) booleanisPublisher(org.exoplatform.social.core.space.model.Space space, String userId) booleanisRedactor(org.exoplatform.social.core.space.model.Space space, String userId) booleanisSpaceContainsExternals(Long spaceId) booleanisSuperManager(String userId) voidmoveApplication(String spaceId, String appId, int transition) voidregisterSpaceLifeCycleListener(org.exoplatform.social.core.space.spi.SpaceLifeCycleListener listener) voidregisterSpaceListenerPlugin(org.exoplatform.social.core.space.SpaceListenerPlugin spaceListenerPlugin) voidremoveApplication(String spaceId, String appId, String appName) voidremoveApplication(org.exoplatform.social.core.space.model.Space space, String appId, String appName) voidremoveInvitedUser(org.exoplatform.social.core.space.model.Space space, String userId) voidremoveMember(String spaceId, String userId) voidremoveMember(org.exoplatform.social.core.space.model.Space space, String userId) voidremovePendingUser(org.exoplatform.social.core.space.model.Space space, String userId) voidremovePublisher(org.exoplatform.social.core.space.model.Space space, String userId) voidremoveRedactor(org.exoplatform.social.core.space.model.Space space, String userId) voidrenameSpace(String remoteId, org.exoplatform.social.core.space.model.Space space, String newDisplayName) voidrenameSpace(org.exoplatform.social.core.space.model.Space space, String newDisplayName) voidrequestJoin(String spaceId, String userId) voidrequestJoin(org.exoplatform.social.core.space.model.Space space, String userId) voidrestoreSpacePageLayout(String spaceId, String appId, org.exoplatform.services.security.Identity identity) voidrevokeInvitation(String spaceId, String userId) voidrevokeInvitation(org.exoplatform.social.core.space.model.Space space, String userId) voidrevokeRequestJoin(String spaceId, String userId) voidrevokeRequestJoin(org.exoplatform.social.core.space.model.Space space, String userId) voidsaveSpace(org.exoplatform.social.core.space.model.Space space, boolean isNew) voidsaveSpaceExternalInvitation(String spaceId, String email, String tokenId) voidsetIgnored(String spaceId, String userId) voidIf isLeader == true, that user will be assigned "manager" membership and the "member" membership will be removed.voidIf isLeader == true, that user will be assigned "manager" membership and the "member" memberhship will be removed.voidsetManager(org.exoplatform.social.core.space.model.Space space, String userId, boolean isManager) voidsetPortletsPrefsRequired(org.exoplatform.social.core.application.PortletPreferenceRequiredPlugin portletPrefsRequiredPlugin) Set portlet preferences from plug-in into local variable.voidsetSpaceApplicationConfigPlugin(org.exoplatform.social.core.space.SpaceApplicationConfigPlugin spaceApplicationConfigPlugin) Deprecated.voidsetStorage(org.exoplatform.social.core.storage.api.SpaceStorage storage) Deprecated.To be removed at 1.3.xvoidunregisterSpaceLifeCycleListener(org.exoplatform.social.core.space.spi.SpaceLifeCycleListener listener) voidunregisterSpaceListenerPlugin(org.exoplatform.social.core.space.SpaceListenerPlugin spaceListenerPlugin) org.exoplatform.social.core.space.model.SpaceupdateSpace(org.exoplatform.social.core.space.model.Space existingSpace) org.exoplatform.social.core.space.model.SpaceupdateSpace(org.exoplatform.social.core.space.model.Space space, List<org.exoplatform.social.core.identity.model.Identity> identitiesToInvite) voidupdateSpaceAccessed(String remoteId, org.exoplatform.social.core.space.model.Space space) org.exoplatform.social.core.space.model.SpaceupdateSpaceAvatar(org.exoplatform.social.core.space.model.Space existingSpace) org.exoplatform.social.core.space.model.SpaceupdateSpaceBanner(org.exoplatform.social.core.space.model.Space existingSpace) voidvalidateRequest(String spaceId, String userId) voidvalidateRequest(org.exoplatform.social.core.space.model.Space space, String userId)
-
Field Details
-
MEMBER
- See Also:
-
MANAGER
- See Also:
-
DEFAULT_APP_CATEGORY
- See Also:
-
-
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:
getAllSpacesin interfaceorg.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:
getAllSpacesWithListAccessin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getSpaceByDisplayName
- Specified by:
getSpaceByDisplayNamein interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getSpaceByName
- Specified by:
getSpaceByNamein interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getSpaceByPrettyName
- Specified by:
getSpaceByPrettyNamein interfaceorg.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:
getSpacesBySearchConditionin interfaceorg.exoplatform.social.core.space.spi.SpaceService- Throws:
org.exoplatform.social.core.space.SpaceException
-
getSpaceByGroupId
- Specified by:
getSpaceByGroupIdin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getSpaceById
- Specified by:
getSpaceByIdin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getSpaceByUrl
- Specified by:
getSpaceByUrlin interfaceorg.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:
getSpacesin interfaceorg.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:
getAccessibleSpacesin interfaceorg.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:
getAccessibleSpacesWithListAccessin interfaceorg.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:
getVisibleSpacesin interfaceorg.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:
getVisibleSpacesWithListAccessin interfaceorg.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:
getUnifiedSearchSpacesWithListAccessin interfaceorg.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:
getEditableSpacesin interfaceorg.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:
getInvitedSpacesin interfaceorg.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:
getPublicSpacesin interfaceorg.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:
getPublicSpacesWithListAccessin interfaceorg.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:
getPendingSpacesin interfaceorg.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:
getPendingSpacesWithListAccessin interfaceorg.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:
createSpacein interfaceorg.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:
createSpacein interfaceorg.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:
createSpacein interfaceorg.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:
inviteIdentitiesin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isSpaceContainsExternals
- Specified by:
isSpaceContainsExternalsin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
saveSpace
public void saveSpace(org.exoplatform.social.core.space.model.Space space, boolean isNew) - Specified by:
saveSpacein interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
renameSpace
- Specified by:
renameSpacein interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
renameSpace
public void renameSpace(String remoteId, org.exoplatform.social.core.space.model.Space space, String newDisplayName) - Specified by:
renameSpacein interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
deleteSpace
public void deleteSpace(org.exoplatform.social.core.space.model.Space space) - Specified by:
deleteSpacein interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
deleteSpace
public void deleteSpace(org.exoplatform.social.core.space.model.Space space, boolean deleteGroup) - Specified by:
deleteSpacein interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
deleteSpace
- Specified by:
deleteSpacein interfaceorg.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.UsesinitApps(Space)instead.- Specified by:
initAppin interfaceorg.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:
initAppsin interfaceorg.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:
deInitAppsin interfaceorg.exoplatform.social.core.space.spi.SpaceService- Throws:
org.exoplatform.social.core.space.SpaceException
-
addMember
- Specified by:
addMemberin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
addMember
- Specified by:
addMemberin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
removeMember
- Specified by:
removeMemberin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
removeMember
- Specified by:
removeMemberin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getMembers
- Specified by:
getMembersin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getMembers
- Specified by:
getMembersin interfaceorg.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:
setLeaderin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
setLeader
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:
setLeaderin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isLeader
- Specified by:
isLeaderin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isLeader
- Specified by:
isLeaderin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isOnlyLeader
- Specified by:
isOnlyLeaderin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isOnlyLeader
- Specified by:
isOnlyLeaderin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isMember
- Specified by:
isMemberin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isMember
- Specified by:
isMemberin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
hasAccessPermission
public boolean hasAccessPermission(org.exoplatform.social.core.space.model.Space space, String userId) - Specified by:
hasAccessPermissionin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
hasAccessPermission
- Specified by:
hasAccessPermissionin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
hasEditPermission
public boolean hasEditPermission(org.exoplatform.social.core.space.model.Space space, String userId) - Specified by:
hasEditPermissionin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
hasEditPermission
- Specified by:
hasEditPermissionin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isInvited
- Specified by:
isInvitedin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isInvited
- Specified by:
isInvitedin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isPending
- Specified by:
isPendingin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isPending
- Specified by:
isPendingin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isIgnored
- Specified by:
isIgnoredin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
setIgnored
- Specified by:
setIgnoredin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
installApplication
public void installApplication(String spaceId, String appId) throws org.exoplatform.social.core.space.SpaceException - Specified by:
installApplicationin interfaceorg.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:
restoreSpacePageLayoutin interfaceorg.exoplatform.social.core.space.spi.SpaceService- Throws:
IllegalAccessExceptionorg.exoplatform.social.core.space.SpaceException
-
moveApplication
public void moveApplication(String spaceId, String appId, int transition) throws org.exoplatform.social.core.space.SpaceException - Specified by:
moveApplicationin interfaceorg.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:
installApplicationin interfaceorg.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:
activateApplicationin interfaceorg.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:
activateApplicationin interfaceorg.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:
deactivateApplicationin interfaceorg.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:
deactivateApplicationin interfaceorg.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:
removeApplicationin interfaceorg.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:
removeApplicationin interfaceorg.exoplatform.social.core.space.spi.SpaceService- Throws:
org.exoplatform.social.core.space.SpaceException
-
requestJoin
- Specified by:
requestJoinin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
requestJoin
- Specified by:
requestJoinin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
revokeRequestJoin
- Specified by:
revokeRequestJoinin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
revokeRequestJoin
- Specified by:
revokeRequestJoinin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
inviteMember
- Specified by:
inviteMemberin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
inviteMember
- Specified by:
inviteMemberin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
revokeInvitation
- Specified by:
revokeInvitationin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
revokeInvitation
- Specified by:
revokeInvitationin interfaceorg.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:
acceptInvitationin interfaceorg.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:
acceptInvitationin interfaceorg.exoplatform.social.core.space.spi.SpaceService- Throws:
org.exoplatform.social.core.space.SpaceException
-
denyInvitation
- Specified by:
denyInvitationin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
denyInvitation
- Specified by:
denyInvitationin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
validateRequest
- Specified by:
validateRequestin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
validateRequest
- Specified by:
validateRequestin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
declineRequest
- Specified by:
declineRequestin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
declineRequest
- Specified by:
declineRequestin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
registerSpaceLifeCycleListener
public void registerSpaceLifeCycleListener(org.exoplatform.social.core.space.spi.SpaceLifeCycleListener listener) - Specified by:
registerSpaceLifeCycleListenerin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
unregisterSpaceLifeCycleListener
public void unregisterSpaceLifeCycleListener(org.exoplatform.social.core.space.spi.SpaceLifeCycleListener listener) - Specified by:
unregisterSpaceLifeCycleListenerin interfaceorg.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:
setPortletsPrefsRequiredin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getPortletsPrefsRequired
Get portlet preferences required for using in create portlet application.- Specified by:
getPortletsPrefsRequiredin interfaceorg.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
- Specified by:
addInvitedUserin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
addPendingUser
- Specified by:
addPendingUserin interfaceorg.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:
getAccessibleSpacesByFilterin interfaceorg.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:
getAllSpacesByFilterin interfaceorg.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:
getInvitedSpacesByFilterin interfaceorg.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:
getMemberSpacesin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getMemberSpacesIds
- Specified by:
getMemberSpacesIdsin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getManagerSpacesIds
- Specified by:
getManagerSpacesIdsin interfaceorg.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:
getManagerSpacesByFilterin interfaceorg.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:
getManagerSpacesin interfaceorg.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:
getMemberSpacesByFilterin interfaceorg.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:
getFavoriteSpacesByFilterin interfaceorg.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:
getPendingSpacesByFilterin interfaceorg.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:
getPublicSpacesByFilterin interfaceorg.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:
getSettingableSpacesin interfaceorg.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:
getSettingabledSpacesByFilterin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
hasSettingPermission
public boolean hasSettingPermission(org.exoplatform.social.core.space.model.Space space, String userId) - Specified by:
hasSettingPermissionin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isInvitedUser
- Specified by:
isInvitedUserin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isManager
- Specified by:
isManagerin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isRedactor
- Specified by:
isRedactorin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isPublisher
- Specified by:
isPublisherin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
hasRedactor
public boolean hasRedactor(org.exoplatform.social.core.space.model.Space space) - Specified by:
hasRedactorin interfaceorg.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:
canRedactOnSpacein interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isOnlyManager
- Specified by:
isOnlyManagerin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isPendingUser
- Specified by:
isPendingUserin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
registerSpaceListenerPlugin
public void registerSpaceListenerPlugin(org.exoplatform.social.core.space.SpaceListenerPlugin spaceListenerPlugin) - Specified by:
registerSpaceListenerPluginin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
removeInvitedUser
- Specified by:
removeInvitedUserin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
removePendingUser
- Specified by:
removePendingUserin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
addRedactor
- Specified by:
addRedactorin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
removeRedactor
- Specified by:
removeRedactorin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
addPublisher
- Specified by:
addPublisherin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
removePublisher
- Specified by:
removePublisherin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
setManager
public void setManager(org.exoplatform.social.core.space.model.Space space, String userId, boolean isManager) - Specified by:
setManagerin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
unregisterSpaceListenerPlugin
public void unregisterSpaceListenerPlugin(org.exoplatform.social.core.space.SpaceListenerPlugin spaceListenerPlugin) - Specified by:
unregisterSpaceListenerPluginin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
setSpaceApplicationConfigPlugin
@Deprecated public void setSpaceApplicationConfigPlugin(org.exoplatform.social.core.space.SpaceApplicationConfigPlugin spaceApplicationConfigPlugin) Deprecated.- Specified by:
setSpaceApplicationConfigPluginin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getSpaceApplicationConfigPlugin
@Deprecated public org.exoplatform.social.core.space.SpaceApplicationConfigPlugin getSpaceApplicationConfigPlugin()Deprecated.- Specified by:
getSpaceApplicationConfigPluginin interfaceorg.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:
updateSpacein interfaceorg.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:
updateSpacein interfaceorg.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:
updateSpaceAvatarin interfaceorg.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:
updateSpaceBannerin interfaceorg.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:
getInvitedSpacesWithListAccessin interfaceorg.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:
updateSpaceAccessedin interfaceorg.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:
getLastAccessedSpacein interfaceorg.exoplatform.social.core.space.spi.SpaceService- Throws:
org.exoplatform.social.core.space.SpaceException
-
getLastSpaces
- Specified by:
getLastSpacesin interfaceorg.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:
getLastAccessedSpacein interfaceorg.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:
getVisitedSpacesin interfaceorg.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:
getPendingSpaceRequestsToManagein interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
findSpaceExternalInvitationsBySpaceId
public List<org.exoplatform.social.core.model.SpaceExternalInvitation> findSpaceExternalInvitationsBySpaceId(String spaceId) - Specified by:
findSpaceExternalInvitationsBySpaceIdin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
saveSpaceExternalInvitation
- Specified by:
saveSpaceExternalInvitationin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getSpaceExternalInvitationById
public org.exoplatform.social.core.model.SpaceExternalInvitation getSpaceExternalInvitationById(String invitationId) - Specified by:
getSpaceExternalInvitationByIdin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
deleteSpaceExternalInvitation
- Specified by:
deleteSpaceExternalInvitationin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
findExternalInvitationsSpacesByEmail
- Specified by:
findExternalInvitationsSpacesByEmailin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
deleteExternalUserInvitations
- Specified by:
deleteExternalUserInvitationsin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isSuperManager
- Specified by:
isSuperManagerin interfaceorg.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:
getCommonSpacesin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-