-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 12678 fixing workflow roles permission issue #13526
Changes from all commits
f4716b6
fe9c0a3
e0ed5d2
7cc31fb
5d714f2
ceff036
cb8dea8
d9218e3
2c8f658
32b5dfe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -242,10 +242,31 @@ public void reorderAction(final WorkflowAction action, | |
|
||
|
||
|
||
/** | ||
* Finds an action by Id and checking the user permissions over the workflow portlet. | ||
* The action will be validated against the user permissions. | ||
* @param id String action id | ||
* @param user User the user that makes the request | ||
* @return WorkflowAction | ||
* @throws DotDataException | ||
* @throws DotSecurityException | ||
*/ | ||
public WorkflowAction findAction(String id, User user) throws DotDataException, DotSecurityException; | ||
|
||
/** | ||
* Finds an action associated to the steps. | ||
* Finds an action by Id and checking the user permissions over the permissionable. | ||
* The action will be validated against the user permissions. | ||
* @param id String action id | ||
* @param permissionable Permissionable Content/Content Type against who is going to be validated the permissions | ||
* @param user User the user that makes the request | ||
* @return WorkflowAction | ||
* @throws DotDataException | ||
* @throws DotSecurityException | ||
*/ | ||
public WorkflowAction findActionRespectingPermissions(String id, Permissionable permissionable, User user) throws DotDataException, DotSecurityException; | ||
|
||
/** | ||
* Finds an action associated to the steps and user permissions over the workflow portlet. | ||
* The action will be validated against the user permissions. | ||
* @param actionId String action id | ||
* @param stepId String step id | ||
|
@@ -256,6 +277,19 @@ public void reorderAction(final WorkflowAction action, | |
*/ | ||
public WorkflowAction findAction(String actionId, String stepId, User user) throws DotDataException, DotSecurityException; | ||
|
||
/** | ||
* Finds an action associated to the steps and the user permissions over the permissionable. | ||
* The action will be validated against the user permissions. | ||
* @param actionId String action id | ||
* @param stepId String step id | ||
* @param permissionable Permissionable Content/Content Type against who is going to be validated the permissions | ||
* @param user User the user that makes the request | ||
* @return WorkflowAction | ||
* @throws DotDataException | ||
* @throws DotSecurityException | ||
*/ | ||
public WorkflowAction findActionRespectingPermissions(String actionId, String stepId, Permissionable permissionable, User user) throws DotDataException, DotSecurityException; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't be bad to add an integration test for this new API method There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. test included |
||
|
||
/** | ||
* Finds the available {@link WorkflowAction} for the contentlet to a user on any give | ||
* piece of content, based on how and who has the content locked and what workflow step the content | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.