Package de.innovationgate.wga.common.beans.csconfig.v1

Examples of de.innovationgate.wga.common.beans.csconfig.v1.RemoteAction


            }

        }

        // Prevent HDB enabling with Non-WGA4-Compatibility
        PublisherOption option = _csConfig.findPublisherOption("isHDB");
        boolean hdbEnabled = (option != null && option.getValue().equals("true"));
        if (hdbEnabled) {
            if (_csConfig.getVersionCompliance().equals(CSConfig.VERSIONCOMPLIANCE_WGA3)) {
                errors.add(new ValidationError("HDB interface can only be enabled with WGA4 compatibility or higher.", new String[] { "versionCompliance", "usesHDB" }));
            }
        }
View Full Code Here


    }
  }
 
  @SuppressWarnings("unchecked")
  private void handleAddRemoteAction() {
    RemoteAction action = new RemoteAction();
    action.setModuleName("<module name>");
    action.setCallerLevel(AccessLevel.LEVEL_MANAGER);
    action.setCallers(new ArrayList());
    _remoteActionsModel.add(action);
  }
View Full Code Here

        bind(form, SWTBinder.BINDING_STRATEGY_AS_YOU_TYPE);
  }

  @SuppressWarnings("unchecked")
  private void handleAddRemoteAction() {
    RemoteAction action = new RemoteAction();
    action.setModuleName("<module name>");
    action.setCallerLevel(AccessLevel.LEVEL_MANAGER);
    action.setCallers(new ArrayList());
    _remoteActionsModel.add(action);
  }
View Full Code Here

        // No cs config: All designers are permitted
        if (csConfig == null) {
            return db.getSessionContext().isDesigner();           
        }
       
        RemoteAction action = csConfig.findRemoteAction(actionID);
        if (action == null) {
            return false;
        }
       
        if (db.isMemberOfUserList(action.getCallers())) {
            return true;
        }
       
        if (db.getSessionContext().getAccessLevel() >= action.getCallerLevel()) {
            return true;
        }
       
        return false
    }
View Full Code Here

    }

    @Override
    public boolean isFeatureSupported(String featureID) {
        if (featureID.equals(FEATURE_SCHEMADEFINITION)) {           
            Version version = VersionCompliance.toWGAVersion(getVersionCompliance());
            return (version != null && version.isAtLeast(5, 2)) || (getSchemaDefinitionFile() != null && getSchemaDefinitionFile().exists());
        }
        return super.isFeatureSupported(featureID);
    }
View Full Code Here

  public String getName() {
    return "Deployment [" + _deployment.getName() + "]";
  }

  public String[] getDependencies() {
    Version version = _deployment.getWGAVersion();
    if (version != null) {
      if (version.isAtLeast(5, 0)) {
        return new String[] {WGADesignerPlugin.LIBRARY_SET_J2EE_1_4};
      } else if (version.isAtLeast(4, 1)) {
        return new String[] {WGADesignerPlugin.LIBRARY_SET_J2EE_1_4};
      } else if (version.isAtLeast(4, 0)) {
        return new String[] {WGADesignerPlugin.LIBRARY_SET_J2EE_1_4};
      } else if (version.isAtLeast(3, 3)) {
        return new String[] {WGADesignerPlugin.LIBRARY_SET_J2EE_1_3};
      }
    }   
    return null;
  }
View Full Code Here

          while (it.hasNext()) {
            TMLTag tag = it.next();
            proposals.addAll(createTagProposals(alreadyTyped, tag, _document, _cursorAbsolute,activeFile));
          }
        } else {
          Version wgaVersion = (Version) WGADesignConfigurationModel.VERSIONCOMPLIANCE_TO_WGA_VERSION.get(WGADesignStructureHelper.getWGAVersionCompliance(activeFile).getKey())
          if (wgaVersion.isAtLeast(4, 1)) {
            proposals.addAll(createIncludeModuleProposals(alreadyTyped, _document, _cursorAbsolute, activeFile));
          }
        }
      }     
    } else if (!isCursorInAttributeValue()) {
View Full Code Here

 
  public static VersionCompliance wgaVersionToVersionCompliance(Version version){     
      if(version!=null){
          Set<String> keySet = WGADesignConfigurationModel.VERSIONCOMPLIANCE_TO_WGA_VERSION.keySet();
          for(String currentKey : keySet){
              Version currentVersion = (Version)WGADesignConfigurationModel.VERSIONCOMPLIANCE_TO_WGA_VERSION.get(currentKey);
              if(currentVersion.getMajorVersion() == version.getMajorVersion() && currentVersion.getMinorVersion() == version.getMinorVersion()){
                  return WGADesignConfigurationModel.VERSIONCOMPLIANCES.get(currentKey);           
              }             
          }     
      }     
      return null;
View Full Code Here

    _versionCompliance = versionCompliance;
 

  protected boolean wgaVersionIsAtLeast(int major, int minor) {
    if (_versionCompliance != null) {
      Version wgaVersion = (Version) WGADesignConfigurationModel.VERSIONCOMPLIANCE_TO_WGA_VERSION.get(_versionCompliance.getKey());
      return wgaVersion.isAtLeast(major, minor);
    }
    return false;
  }
View Full Code Here

 
  private static String retrieveTagInfoURL(String tagname, VersionCompliance versionCompliance) {
      StringBuffer url = new StringBuffer();
      url.append(TAG_INFO_URL);
      url.append("&tag=" + tagname);
      Version version = VersionCompliance.toWGAVersion(versionCompliance);
        if (version != null) {
            url.append("&version=" +  Integer.toString(version.getMajorVersion()) + Integer.toString(version.getMinorVersion()));
        }
      return url.toString();
  }
View Full Code Here

TOP

Related Classes of de.innovationgate.wga.common.beans.csconfig.v1.RemoteAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.