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.services.security.Authenticator authenticator, org.exoplatform.social.core.space.SpacesAdministrationService spacesAdministrationService, org.exoplatform.social.core.space.spi.SpaceTemplateService spaceTemplateService, org.exoplatform.portal.mop.service.LayoutService layoutService) -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptInvitation(String spaceId, String username) voidacceptInvitation(org.exoplatform.social.core.space.model.Space space, String username) 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 username) voidvoidvoidaddPendingUser(org.exoplatform.social.core.space.model.Space space, String username) voidaddPublisher(org.exoplatform.social.core.space.model.Space space, String username) voidaddRedactor(org.exoplatform.social.core.space.model.Space space, String username) voidaddSpaceListener(org.exoplatform.social.core.space.SpaceListenerPlugin plugin) booleancanAccessSpacePublicSite(org.exoplatform.social.core.space.model.Space space, String username) 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 username, 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 username) voiddeclineRequest(org.exoplatform.social.core.space.model.Space space, String username) 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 username) voiddenyInvitation(org.exoplatform.social.core.space.model.Space space, String username) List<org.exoplatform.social.core.model.SpaceExternalInvitation> org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getAccessibleSpacesByFilter(String username, org.exoplatform.social.core.space.SpaceFilter spaceFilter) org.exoplatform.social.core.space.SpaceListAccessgetAccessibleSpacesWithListAccess(String username) 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 username, String otherUserId) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getFavoriteSpacesByFilter(String username, org.exoplatform.social.core.space.SpaceFilter spaceFilter) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getInvitedSpacesByFilter(String username, org.exoplatform.social.core.space.SpaceFilter spaceFilter) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getInvitedSpacesWithListAccess(String username) 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 username) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getManagerSpacesByFilter(String username, 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 username) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getMemberSpacesByFilter(String username, 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) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getPendingSpacesByFilter(String username, org.exoplatform.social.core.space.SpaceFilter spaceFilter) org.exoplatform.social.core.space.SpaceListAccessgetPendingSpacesWithListAccess(String username) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getPublicSpacesByFilter(String username, org.exoplatform.social.core.space.SpaceFilter spaceFilter) org.exoplatform.social.core.space.SpaceListAccessgetPublicSpacesWithListAccess(String username) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getSettingabledSpacesByFilter(String username, org.exoplatform.social.core.space.SpaceFilter spaceFilter) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getSettingableSpaces(String username) 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.SpacegetSpaceByPrettyName(String spacePrettyName) org.exoplatform.social.core.space.model.SpacegetSpaceByUrl(String url) org.exoplatform.social.core.model.SpaceExternalInvitationgetSpaceExternalInvitationById(String invitationId) getSpaceMembershipDate(long spaceId, String username) getSpacePublicSiteName(org.exoplatform.social.core.space.model.Space space) org.exoplatform.social.core.space.SpaceListAccessgetUnifiedSearchSpacesWithListAccess(String username, org.exoplatform.social.core.space.SpaceFilter spaceFilter) List<org.exoplatform.social.core.space.model.Space> getVisibleSpaces(String username, org.exoplatform.social.core.space.SpaceFilter spaceFilter) org.exoplatform.social.core.space.SpaceListAccessgetVisibleSpacesWithListAccess(String username, 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 username) booleanhasAccessPermission(org.exoplatform.social.core.space.model.Space space, String username) booleanhasEditPermission(String spaceId, String username) booleanhasEditPermission(org.exoplatform.social.core.space.model.Space space, String username) booleanhasRedactor(org.exoplatform.social.core.space.model.Space space) booleanhasSettingPermission(org.exoplatform.social.core.space.model.Space space, String username) 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 username) voidinviteMember(org.exoplatform.social.core.space.model.Space space, String username) booleanisContentManager(String username) booleanisContentPublisher(String username) booleanbooleanbooleanbooleanisInvitedUser(org.exoplatform.social.core.space.model.Space space, String username) booleanbooleanbooleanbooleanisOnlyManager(org.exoplatform.social.core.space.model.Space space, String username) booleanbooleanbooleanisPendingUser(org.exoplatform.social.core.space.model.Space space, String username) booleanisPublisher(org.exoplatform.social.core.space.model.Space space, String username) booleanisRedactor(org.exoplatform.social.core.space.model.Space space, String username) booleanisSpaceContainsExternals(Long spaceId) booleanisSuperManager(String username) 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 username) voidremoveMember(String spaceId, String username) voidremoveMember(org.exoplatform.social.core.space.model.Space space, String username) voidremovePendingUser(org.exoplatform.social.core.space.model.Space space, String username) voidremovePublisher(org.exoplatform.social.core.space.model.Space space, String username) voidremoveRedactor(org.exoplatform.social.core.space.model.Space space, String username) voidrenameSpace(org.exoplatform.social.core.space.model.Space space, String newDisplayName) voidrenameSpace(org.exoplatform.social.core.space.model.Space space, String newDisplayName, String username) voidrequestJoin(String spaceId, String username) voidrequestJoin(org.exoplatform.social.core.space.model.Space space, String username) voidrestoreSpacePageLayout(String spaceId, String appId, org.exoplatform.services.security.Identity identity) voidrevokeInvitation(String spaceId, String username) voidrevokeInvitation(org.exoplatform.social.core.space.model.Space space, String username) voidrevokeRequestJoin(String spaceId, String username) voidrevokeRequestJoin(org.exoplatform.social.core.space.model.Space space, String username) voidsaveSpace(org.exoplatform.social.core.space.model.Space space, boolean isNew) voidsaveSpaceExternalInvitation(String spaceId, String email, String tokenId) voidsaveSpacePublicSite(String spaceId, String publicSiteVisibility, String authenticatedUser) voidsaveSpacePublicSite(org.exoplatform.social.core.space.model.Space space, String publicSiteVisibility) voidsaveSpacePublicSite(org.exoplatform.social.core.space.model.Space space, String publicSiteVisibility, String authenticatedUser) voidsetIgnored(String spaceId, String username) voidsetManager(org.exoplatform.social.core.space.model.Space space, String username, boolean isManager) voidunregisterSpaceLifeCycleListener(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, String username) org.exoplatform.social.core.space.model.SpaceupdateSpaceBanner(org.exoplatform.social.core.space.model.Space existingSpace, String username) voidvalidateRequest(String spaceId, String username) voidvalidateRequest(org.exoplatform.social.core.space.model.Space space, String username) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.social.core.space.spi.SpaceService
canManageSpace, canPublishOnSpace, canRedactOnSpace, canRedactOnSpace, canViewSpace
-
Field Details
-
MEMBER
- See Also:
-
MANAGER
- 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.services.security.Authenticator authenticator, org.exoplatform.social.core.space.SpacesAdministrationService spacesAdministrationService, org.exoplatform.social.core.space.spi.SpaceTemplateService spaceTemplateService, org.exoplatform.portal.mop.service.LayoutService layoutService)
-
-
Method Details
-
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
-
getSpaceByPrettyName
- Specified by:
getSpaceByPrettyNamein interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getSpaceMembershipDate
- Specified by:
getSpaceMembershipDatein interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
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
-
getAccessibleSpacesWithListAccess
public org.exoplatform.social.core.space.SpaceListAccess getAccessibleSpacesWithListAccess(String username) - Specified by:
getAccessibleSpacesWithListAccessin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getVisibleSpaces
public List<org.exoplatform.social.core.space.model.Space> getVisibleSpaces(String username, 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 username, 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 username, org.exoplatform.social.core.space.SpaceFilter spaceFilter) - Specified by:
getUnifiedSearchSpacesWithListAccessin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getPublicSpacesWithListAccess
public org.exoplatform.social.core.space.SpaceListAccess getPublicSpacesWithListAccess(String username) - Specified by:
getPublicSpacesWithListAccessin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getPendingSpacesWithListAccess
public org.exoplatform.social.core.space.SpaceListAccess getPendingSpacesWithListAccess(String username) - 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
public org.exoplatform.social.core.space.model.Space createSpace(org.exoplatform.social.core.space.model.Space space, String username, List<org.exoplatform.social.core.identity.model.Identity> identitiesToInvite) throws org.exoplatform.social.core.space.SpaceException - Specified by:
createSpacein interfaceorg.exoplatform.social.core.space.spi.SpaceService- Throws:
org.exoplatform.social.core.space.SpaceException
-
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(org.exoplatform.social.core.space.model.Space space, String newDisplayName, String username) throws org.exoplatform.social.core.space.SpaceException - Specified by:
renameSpacein interfaceorg.exoplatform.social.core.space.spi.SpaceService- Throws:
org.exoplatform.social.core.space.SpaceException
-
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
-
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
-
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 username) - 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 username) - 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
-
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 username) 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 username) 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
-
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 username, 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 username, 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 username) - 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 username, 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 username) - 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 username, 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 username, 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 username, 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 username, 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 username) - 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 username, 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 username) - Specified by:
hasSettingPermissionin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
canAccessSpacePublicSite
public boolean canAccessSpacePublicSite(org.exoplatform.social.core.space.model.Space space, String username) - Specified by:
canAccessSpacePublicSitein interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getSpacePublicSiteName
- Specified by:
getSpacePublicSiteNamein 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
-
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 username, 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
-
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, String username) - 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, String username) - 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 username) - 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
-
saveSpacePublicSite
public void saveSpacePublicSite(String spaceId, String publicSiteVisibility, String authenticatedUser) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Specified by:
saveSpacePublicSitein interfaceorg.exoplatform.social.core.space.spi.SpaceService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
saveSpacePublicSite
public void saveSpacePublicSite(org.exoplatform.social.core.space.model.Space space, String publicSiteVisibility) - Specified by:
saveSpacePublicSitein 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
-
isContentManager
- Specified by:
isContentManagerin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
isContentPublisher
- Specified by:
isContentPublisherin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
getCommonSpaces
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getCommonSpaces(String username, String otherUserId) - Specified by:
getCommonSpacesin interfaceorg.exoplatform.social.core.space.spi.SpaceService
-
addSpaceListener
public void addSpaceListener(org.exoplatform.social.core.space.SpaceListenerPlugin plugin) -
saveSpacePublicSite
-