Skip to content

Commit

Permalink
Merged in Cousjath/payara/PAYARA-3703-maint-4 (pull request payara#648)
Browse files Browse the repository at this point in the history
PAYARA-3703 Update-file-users command now works when there are instances with different configs

Approved-by: Patrik Duditš <patrik.dudits@payara.fish>
  • Loading branch information
Cousjava committed Jun 4, 2019
2 parents 1ac6635 + 81145fa commit 5571c8f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
holder.

-->
<!-- Portions Copyright [2019] Payara Foundation and/or affiliates -->

<!initPage
setResourceBundle(key="i18nc" bundle="org.glassfish.common.admingui.Strings")
Expand All @@ -57,7 +58,7 @@
method="get", result="#{requestScope.listUsersResult}");
setPageSessionAttribute(key="listOfRows", value="#{requestScope.listUsersResult.data.extraProperties.users}");
gf.restRequest(endpoint="#{sessionScope.REST_URL}/configs/config/#{pageSession.configName}/admin-service/jmx-connector/system.json", method="get", result="#{requestScope.result}");
setPageSessionAttribute(key="AuthRealmName" value="#{requestScope.result.entity['authRealmName']");
setPageSessionAttribute(key="AuthRealmName" value="#{requestScope.result.entity['authRealmName']}");
if ("#{pageSession.Name}=#{pageSession.authRealm}"){
setPageSessionAttribute(key="tableTitle", value="$resource{i18nc.manageAdminUsers.TableTitle}")
setPageSessionAttribute(key="helpKey", value="$resource{help_common.manageAdminUsers}" )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
* only if the new code is made subject to such option by the copyright
* holder.
*/
// Portions Copyright [2019] [Payara Foundation and/or its affiliates]

package com.sun.enterprise.security.cli;

Expand Down Expand Up @@ -90,8 +91,8 @@
@Service(name="create-file-user")
@PerLookup
@I18n("create.file.user")
@ExecuteOn({RuntimeType.ALL})
@TargetType({CommandTarget.DAS,CommandTarget.STANDALONE_INSTANCE,CommandTarget.CLUSTER, CommandTarget.CONFIG})
@ExecuteOn({ RuntimeType.INSTANCE, RuntimeType.DAS })
@RestEndpoints({
@RestEndpoint(configBean=AuthRealm.class,
opType=RestEndpoint.OpType.POST,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
* only if the new code is made subject to such option by the copyright
* holder.
*/
// Portions Copyright [2019] [Payara Foundation and/or its affiliates]

package com.sun.enterprise.security.cli;

Expand Down Expand Up @@ -87,8 +88,8 @@
@Service(name="delete-file-user")
@PerLookup
@I18n("delete.file.user")
@ExecuteOn({RuntimeType.ALL})
@TargetType({CommandTarget.DAS,CommandTarget.STANDALONE_INSTANCE,CommandTarget.CLUSTER, CommandTarget.CONFIG})
@ExecuteOn({ RuntimeType.DAS, RuntimeType.INSTANCE })
@TargetType({ CommandTarget.DAS, CommandTarget.STANDALONE_INSTANCE, CommandTarget.CLUSTER, CommandTarget.CONFIG })
@RestEndpoints({
@RestEndpoint(configBean=AuthRealm.class,
opType=RestEndpoint.OpType.DELETE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,13 @@
* only if the new code is made subject to such option by the copyright
* holder.
*/
// Portions Copyright [2019] [Payara Foundation and/or its affiliates]

package com.sun.enterprise.security.cli;

import org.glassfish.api.admin.RuntimeType;
import static org.glassfish.api.admin.RestEndpoint.OpType.POST;

import com.sun.enterprise.config.serverbeans.AdminService;
import java.util.List;

Expand Down Expand Up @@ -87,8 +91,8 @@
@Service(name="update-file-user")
@PerLookup
@I18n("update.file.user")
@ExecuteOn({RuntimeType.ALL})
@TargetType({CommandTarget.DAS,CommandTarget.STANDALONE_INSTANCE,CommandTarget.CLUSTER, CommandTarget.CONFIG})
@ExecuteOn({ RuntimeType.INSTANCE, RuntimeType.DAS })
@RestEndpoints({
@RestEndpoint(configBean=AuthRealm.class,
opType=RestEndpoint.OpType.POST,
Expand Down

0 comments on commit 5571c8f

Please sign in to comment.