Esempio n. 1
0
 /**
  * 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;
 }
Esempio n. 2
0
 /**
  * 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;
 }
Esempio n. 3
0
 @Override
 protected FinderPath finderPath() {
   return FinderPath.subsystemPath(statementContext.selectedProfile(), ROOT_TEMPLATE.lastValue());
 }