-
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4186 from dlubitz/feature-workspace-changes
FEATURE: Edit, delete and switch workspaces
- Loading branch information
Showing
20 changed files
with
672 additions
and
102 deletions.
There are no files selected for viewing
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
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
24 changes: 24 additions & 0 deletions
24
...tentRepository.Core/Classes/Feature/WorkspaceModification/Command/ChangeBaseWorkspace.php
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,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Neos\ContentRepository\Core\Feature\WorkspaceModification\Command; | ||
|
||
use Neos\ContentRepository\Core\CommandHandler\CommandInterface; | ||
use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; | ||
use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamId; | ||
|
||
/** | ||
* Changes the base workspace of a given workspace, identified by $workspaceName. | ||
* | ||
* @api commands are the write-API of the ContentRepository | ||
*/ | ||
final class ChangeBaseWorkspace implements CommandInterface | ||
{ | ||
public function __construct( | ||
public readonly WorkspaceName $workspaceName, | ||
public readonly WorkspaceName $baseWorkspaceName, | ||
public readonly ContentStreamId $newContentStreamId, | ||
) { | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...entRepository.Core/Classes/Feature/WorkspaceModification/Command/ChangeWorkspaceOwner.php
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,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Neos\ContentRepository\Core\Feature\WorkspaceModification\Command; | ||
|
||
use Neos\ContentRepository\Core\CommandHandler\CommandInterface; | ||
use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; | ||
|
||
/** | ||
* Change workspace owner of a workspace, identified by $workspaceName. | ||
* Setting $newWorkspaceOwner to null, removes the current workspace owner. | ||
* | ||
* @api commands are the write-API of the ContentRepository | ||
*/ | ||
final class ChangeWorkspaceOwner implements CommandInterface | ||
{ | ||
public function __construct( | ||
public readonly WorkspaceName $workspaceName, | ||
public readonly ?string $newWorkspaceOwner, | ||
) { | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
....ContentRepository.Core/Classes/Feature/WorkspaceModification/Command/DeleteWorkspace.php
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,21 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Neos\ContentRepository\Core\Feature\WorkspaceModification\Command; | ||
|
||
use Neos\ContentRepository\Core\CommandHandler\CommandInterface; | ||
use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; | ||
|
||
/** | ||
* Delete a workspace | ||
* | ||
* @api commands are the write-API of the ContentRepository | ||
*/ | ||
final class DeleteWorkspace implements CommandInterface | ||
{ | ||
public function __construct( | ||
public readonly WorkspaceName $workspaceName, | ||
) { | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
....ContentRepository.Core/Classes/Feature/WorkspaceModification/Command/RenameWorkspace.php
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,25 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Neos\ContentRepository\Core\Feature\WorkspaceModification\Command; | ||
|
||
use Neos\ContentRepository\Core\CommandHandler\CommandInterface; | ||
use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceDescription; | ||
use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; | ||
use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceTitle; | ||
|
||
/** | ||
* Change the title or description of a workspace | ||
* | ||
* @api commands are the write-API of the ContentRepository | ||
*/ | ||
final class RenameWorkspace implements CommandInterface | ||
{ | ||
public function __construct( | ||
public readonly WorkspaceName $workspaceName, | ||
public readonly WorkspaceTitle $workspaceTitle, | ||
public readonly WorkspaceDescription $workspaceDescription, | ||
) { | ||
} | ||
} |
Oops, something went wrong.