-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge Spaces Management - Meeds-io/MIPs#160 (#4191)
- Loading branch information
Showing
248 changed files
with
6,813 additions
and
4,893 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
component/api/src/main/java/io/meeds/social/space/model/SpacePermissions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* This file is part of the Meeds project (https://meeds.io/). | ||
* | ||
* Copyright (C) 2020 - 2024 Meeds Association [email protected] | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 3 of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this program; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
*/ | ||
package io.meeds.social.space.model; | ||
|
||
import java.util.List; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class SpacePermissions { | ||
|
||
private List<String> layoutPermissions; | ||
|
||
private List<String> publicSitePermissions; | ||
|
||
private List<String> deletePermissions; | ||
|
||
} |
42 changes: 42 additions & 0 deletions
42
component/api/src/main/java/io/meeds/social/space/model/SpaceTemplatePatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* This file is part of the Meeds project (https://meeds.io/). | ||
* | ||
* Copyright (C) 2020 - 2024 Meeds Association [email protected] | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 3 of the License, or (at your option) any later version. | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this program; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
*/ | ||
package io.meeds.social.space.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class SpaceTemplatePatch { | ||
|
||
private long templateId; | ||
|
||
private boolean accessRules; | ||
|
||
private boolean editorialMode; | ||
|
||
private boolean layoutPermissions; | ||
|
||
private boolean publicSitePermissions; | ||
|
||
private boolean deletePermissions; | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
component/api/src/main/java/io/meeds/social/space/service/SpaceAdministrationService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package io.meeds.social.space.service; | ||
|
||
import org.exoplatform.commons.exception.ObjectNotFoundException; | ||
import org.exoplatform.social.core.space.model.Space; | ||
|
||
import io.meeds.social.space.model.SpacePermissions; | ||
import io.meeds.social.space.model.SpaceTemplatePatch; | ||
|
||
public interface SpaceAdministrationService { | ||
|
||
/** | ||
* @param spaceId {@link Space} technical id | ||
* @return Space permissions with layoutPermissions, deletePermissions and | ||
* publicSitePermissions | ||
* @throws ObjectNotFoundException when the space doesn't exist | ||
*/ | ||
SpacePermissions getSpacePermissions(long spaceId) throws ObjectNotFoundException; | ||
|
||
/** | ||
* @param spaceId {@link Space} technical id | ||
* @param permissions Space permissions with layoutPermissions, | ||
* deletePermissions and publicSitePermissions | ||
* @throws ObjectNotFoundException when the space doesn't exist | ||
*/ | ||
void updateSpacePermissions(long spaceId, SpacePermissions permissions) throws ObjectNotFoundException; | ||
|
||
/** | ||
* @param spaceId {@link Space} technical id | ||
* @param templatePatch SpaceTemplate properties to apply | ||
* @throws ObjectNotFoundException when the space doesn't exist | ||
*/ | ||
void applySpaceTemplate(long spaceId, SpaceTemplatePatch templatePatch) throws ObjectNotFoundException; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
...nent/api/src/main/java/org/exoplatform/social/core/space/SpacesAdministrationService.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.