diff --git a/assemblies/pentaho-solutions/src/main/resources/pentaho-solutions/system/repository.spring.xml b/assemblies/pentaho-solutions/src/main/resources/pentaho-solutions/system/repository.spring.xml index 365cd8a4a68..9c166d6f3c9 100644 --- a/assemblies/pentaho-solutions/src/main/resources/pentaho-solutions/system/repository.spring.xml +++ b/assemblies/pentaho-solutions/src/main/resources/pentaho-solutions/system/repository.spring.xml @@ -779,6 +779,13 @@ + + + + + + + diff --git a/extensions/src/it/resources/repository.spring.xml b/extensions/src/it/resources/repository.spring.xml index f018541fb7c..a2cab0f839e 100644 --- a/extensions/src/it/resources/repository.spring.xml +++ b/extensions/src/it/resources/repository.spring.xml @@ -561,6 +561,13 @@ + + + + + + + @@ -588,6 +595,7 @@ + diff --git a/extensions/src/test/resources/repository.spring.xml b/extensions/src/test/resources/repository.spring.xml index 85565a3853a..f0853996ca0 100644 --- a/extensions/src/test/resources/repository.spring.xml +++ b/extensions/src/test/resources/repository.spring.xml @@ -561,6 +561,13 @@ + + + + + + + @@ -588,6 +595,7 @@ + diff --git a/extensions/src/test/resources/solution1-no-config/system/repository.spring.xml b/extensions/src/test/resources/solution1-no-config/system/repository.spring.xml index a13e096acc8..20fd00a9cc8 100644 --- a/extensions/src/test/resources/solution1-no-config/system/repository.spring.xml +++ b/extensions/src/test/resources/solution1-no-config/system/repository.spring.xml @@ -737,6 +737,11 @@ + + + + + diff --git a/repository/src/main/java/org/pentaho/platform/security/policy/rolebased/actions/SchedulerExecuteAction.java b/repository/src/main/java/org/pentaho/platform/security/policy/rolebased/actions/SchedulerExecuteAction.java new file mode 100644 index 00000000000..7027023d64f --- /dev/null +++ b/repository/src/main/java/org/pentaho/platform/security/policy/rolebased/actions/SchedulerExecuteAction.java @@ -0,0 +1,39 @@ +/*! + * + * This program is free software; you can redistribute it and/or modify it under the + * terms of the GNU General Public License, version 2 as published by the Free Software + * Foundation. + * + * You should have received a copy of the GNU General Public License along with this + * program; if not, you can obtain a copy at http://www.gnu.org/licenses/gpl-2.0.html + * or from the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * 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 General Public License for more details. + * + * + * Copyright (c) 2024 Hitachi Vantara. All rights reserved. + * + */ + +package org.pentaho.platform.security.policy.rolebased.actions; + +import java.util.ResourceBundle; + +public class SchedulerExecuteAction extends AbstractAuthorizationAction { + public static final String NAME = "org.pentaho.scheduler.execute"; + ResourceBundle resourceBundle; + + @Override + public String getName() { + return NAME; + } + + @Override + public String getLocalizedDisplayName( String localeString ) { + resourceBundle = getResourceBundle( localeString ); + return resourceBundle.getString( NAME ); + } +} diff --git a/repository/src/main/resources/org/pentaho/platform/security/policy/rolebased/messages/messages.properties b/repository/src/main/resources/org/pentaho/platform/security/policy/rolebased/messages/messages.properties index 85e975f3597..9ef0625144a 100644 --- a/repository/src/main/resources/org/pentaho/platform/security/policy/rolebased/messages/messages.properties +++ b/repository/src/main/resources/org/pentaho/platform/security/policy/rolebased/messages/messages.properties @@ -24,5 +24,6 @@ org.pentaho.security.administerSecurity=Administer Security org.pentaho.security.administerSystem=Manage System org.pentaho.security.publish=Publish Content org.pentaho.scheduler.manage=Schedule Content +org.pentaho.scheduler.execute=Execute Schedules RepositoryTenantManager.publicFolderDisplayName=Public RepositoryTenantManager.usersFolderDisplayName=Home diff --git a/repository/src/main/resources/org/pentaho/platform/security/userroledao/messages/messages.properties b/repository/src/main/resources/org/pentaho/platform/security/userroledao/messages/messages.properties index c3e19cd60bb..c58aab0fe44 100644 --- a/repository/src/main/resources/org/pentaho/platform/security/userroledao/messages/messages.properties +++ b/repository/src/main/resources/org/pentaho/platform/security/userroledao/messages/messages.properties @@ -45,6 +45,7 @@ org.pentaho.security.administerSecurity=Manage Tenant org.pentaho.security.administerSystem=Manage System org.pentaho.security.publish=Publish Content org.pentaho.scheduler.manage=Schedule Content +org.pentaho.scheduler.execute=Execute Schedules AbstractJcrBackedUserRoleDao.ERROR_0001_LAST_ADMIN_ROLE=Removing last admin user from role {0} is not allowed. AbstractJcrBackedUserRoleDao.ERROR_0002_ROLE_NOT_FOUND=Role not found. diff --git a/repository/src/main/resources/repository.spring.xml b/repository/src/main/resources/repository.spring.xml index 21382a6113b..ace1fa1bd1b 100644 --- a/repository/src/main/resources/repository.spring.xml +++ b/repository/src/main/resources/repository.spring.xml @@ -563,6 +563,13 @@ + + + + + + + @@ -590,6 +597,7 @@ +