/** * Returns a place request builder for the specified token with parameters for the selected host * and server (when running domain mode). */ public PlaceRequest.Builder selectedServer(final String token) throws IllegalStateException { PlaceRequest.Builder builder = new PlaceRequest.Builder().nameToken(token); if (!environment.isStandalone()) { if (browseByServerGroups()) { builder.with(SERVER_GROUP, statementContext.selectedServerGroup()); } else { builder.with(HOST, statementContext.selectedHost()); } builder.with(SERVER, statementContext.selectedServer()); } return builder; }
/** * Returns a place request builder for the specified token with parameters for the selected * profile (when running domain mode). */ public PlaceRequest.Builder selectedProfile(final String token) throws IllegalStateException { PlaceRequest.Builder builder = new PlaceRequest.Builder().nameToken(token); if (!environment.isStandalone()) { builder.with(PROFILE, statementContext.selectedProfile()); } return builder; }
@Override protected FinderPath finderPath() { return FinderPath.subsystemPath(statementContext.selectedProfile(), ROOT_TEMPLATE.lastValue()); }