public Object run(Application param) throws PropertyVetoException, TransactionFailure { if (!Boolean.parseBoolean(param.getEnabled())) { param.setEnabled(Boolean.TRUE.toString()); } return null; } }, app);
public boolean isAppEnabled(Application app) { if (Boolean.valueOf(app.getEnabled())) { ApplicationRef appRef = server.getApplicationRef(app.getName()); if (appRef != null && Boolean.valueOf(appRef.getEnabled())) { return true; } } return false; }
public boolean isAppEnabled(Application app) { if (Boolean.valueOf(app.getEnabled())) { ApplicationRef appRef = server.getApplicationRef(app.getName()); if (appRef != null && Boolean.valueOf(appRef.getEnabled())) { return true; } } return false; }
public boolean isEnabled(Application application){ if(application == null){ return false; } boolean appEnabled = Boolean.valueOf(application.getEnabled()); ApplicationRef appRef = getServer().getApplicationRef(application.getName()); boolean appRefEnabled = false; if(appRef != null ){ appRefEnabled = Boolean.valueOf(appRef.getEnabled()); } return appEnabled && appRefEnabled; }
public static boolean isAppEnabledInTarget( Domain me, String appName, String target) { Application application = me.getApplications().getApplication( appName); if (application != null && Boolean.valueOf(application.getEnabled())) { List<String> targets = new ArrayList<String>(); if (!target.equals("domain")) { targets.add(target); } else { targets = getAllReferencedTargetsForApplication(me, appName); } for (String tgt : targets) { if (!isAppRefEnabledInTarget(me, appName, tgt)) { return false; } } return true; } return false; }
public static boolean isAppEnabledInTarget( Domain me, String appName, String target) { Application application = me.getApplications().getApplication( appName); if (application != null && Boolean.valueOf(application.getEnabled())) { List<String> targets = new ArrayList<String>(); if (!target.equals("domain")) { targets.add(target); } else { targets = getAllReferencedTargetsForApplication(me, appName); } for (String tgt : targets) { if (!isAppRefEnabledInTarget(me, appName, tgt)) { return false; } } return true; } return false; }
deploymentParams.name = app.getName(); deploymentParams.description = app.getDescription(); if (Boolean.valueOf(app.getEnabled()) && appRef != null && Boolean.valueOf(appRef.getEnabled())) { deploymentParams.enabled = Boolean.TRUE;
for (Application next : lcms) { Properties props = next.getDeployProperties(); String enabled = next.getEnabled(); if ( isEnabled(next.getName(), enabled) ) { String strOrder = (String)props.remove(
deploymentParams.name = app.getName(); deploymentParams.description = app.getDescription(); if (Boolean.valueOf(app.getEnabled()) && appRef != null && Boolean.valueOf(appRef.getEnabled())) { deploymentParams.enabled = Boolean.TRUE;
previousEnabledAttributes.put(DeploymentUtils.DOMAIN_TARGET_NAME, app.getEnabled());
logger.log(Level.INFO, "app " + app.getName() + " is " + app.getEnabled() + " resulting in " + Boolean.parseBoolean(app.getEnabled())); if (Boolean.parseBoolean(app.getEnabled())) { logger.log(Level.INFO, "Disabling application " + app.getName()); enabledApps.add(app);
com.sun.enterprise.config.serverbeans.Application.class, appID); if ((appBean != null) && Boolean.valueOf(appBean.getEnabled())) { String location = appBean.getLocation(); String moduleDir = DeploymentUtils.getRelativeEmbeddedModulePath(
private boolean belongToEmbeddedRarAndEnabled(String resourceAdapterName) { String appName = getAppNameToken(resourceAdapterName); if(appName==null) return false; Applications apps = getDomain().getApplications(); Application app = apps.getApplication(appName); if(app == null || !ConnectorsUtil.parseBoolean(app.getEnabled())) return false; return isApplicationReferenceEnabled(appName); }
previousEnabledAttributes.put(DeploymentUtils.DOMAIN_TARGET_NAME, app.getEnabled());
if (app != null && Boolean.valueOf(app.getEnabled())) { isRAR = app.containsSnifferType(ConnectorConstants.CONNECTOR_MODULE);