Package org.apache.manifoldcf.core.interfaces

Examples of org.apache.manifoldcf.core.interfaces.ConfigParams


    if (port == null)
      port = "8080";
    if (path == null)
      path = "/alfresco/api";
 
    ConfigParams newMap = new ConfigParams();
    newMap.setParameter(AlfrescoConfig.USERNAME_PARAM, username);
    newMap.setParameter(AlfrescoConfig.PASSWORD_PARAM, password);
    newMap.setParameter(AlfrescoConfig.PROTOCOL_PARAM, protocol);
    newMap.setParameter(AlfrescoConfig.SERVER_PARAM, server);
    newMap.setParameter(AlfrescoConfig.PORT_PARAM, port);
    newMap.setParameter(AlfrescoConfig.PATH_PARAM, path);
   
    if(ALFRESCO_SERVER_TAB_NAME.equals(tabName)){
      outputResource(EDIT_CONFIG_FORWARD, out, newMap)
    } else {
      outputResource(HIDDEN_CONFIG_FORWARD, out, newMap);
View Full Code Here


  @Override
  public void viewSpecification(IHTTPOutput out, DocumentSpecification ds)
      throws ManifoldCFException, IOException {
    int i = 0;
    boolean seenAny = false;
    ConfigParams specificationParams = new ConfigParams();
    while (i < ds.getChildCount()) {
      SpecificationNode sn = ds.getChild(i);
      if (sn.getType().equals(JOB_STARTPOINT_NODE_TYPE)) {
        if (seenAny == false) {
          seenAny = true;
        }
        specificationParams.setParameter(
            AlfrescoConfig.LUCENE_QUERY_PARAM.toUpperCase(),
            sn.getAttributeValue(AlfrescoConfig.LUCENE_QUERY_PARAM));
      }
      i++;
    }
View Full Code Here

        break;
      }
      i++;
    }
   
    ConfigParams params = new ConfigParams();
    params.setParameter(AlfrescoConfig.LUCENE_QUERY_PARAM, luceneQuery);
    if (tabName.equals(TAB_LABEL_LUCENE_QUERY)) {
      outputResource(EDIT_SPEC_FORWARD, out, params);
    } else {
      outputResource(HIDDEN_SPEC_FORWARD, out, params);
    }
View Full Code Here

    if(repositoryId == null)
      repositoryId = StringUtils.EMPTY;
    if(binding == null)
      binding = CmisConfig.BINDING_ATOM_VALUE;
     
    ConfigParams newMap = new ConfigParams();
    newMap.setParameter(CmisConfig.USERNAME_PARAM, username);
    newMap.setParameter(CmisConfig.PASSWORD_PARAM, password);
    newMap.setParameter(CmisConfig.PROTOCOL_PARAM, protocol);
    newMap.setParameter(CmisConfig.SERVER_PARAM, server);
    newMap.setParameter(CmisConfig.PORT_PARAM, port);
    newMap.setParameter(CmisConfig.PATH_PARAM, path);
    newMap.setParameter(CmisConfig.REPOSITORY_ID_PARAM, repositoryId);
    newMap.setParameter(CmisConfig.BINDING_PARAM, binding);
    if(CMIS_SERVER_TAB_NAME.equals(tabName)){
      outputResource(EDIT_CONFIG_FORWARD, out, newMap);
    } else {
      outputResource(HIDDEN_CONFIG_FORWARD, out, newMap);
    }
View Full Code Here

  @Override
  public void viewSpecification(IHTTPOutput out, DocumentSpecification ds)
      throws ManifoldCFException, IOException {
    int i = 0;
    boolean seenAny = false;
    ConfigParams specificationParams = new ConfigParams();
    while (i < ds.getChildCount()) {
      SpecificationNode sn = ds.getChild(i);
      if (sn.getType().equals(JOB_STARTPOINT_NODE_TYPE)) {
        if (seenAny == false) {
          seenAny = true;
        }
        specificationParams.setParameter(
            CmisConfig.CMIS_QUERY_PARAM.toUpperCase(), sn.getAttributeValue(CmisConfig.CMIS_QUERY_PARAM));
      }
      i++;
    }
    outputResource(VIEW_SPEC_FORWARD, out, specificationParams);
View Full Code Here

        break;
      }
      i++;
    }
   
    ConfigParams params = new ConfigParams();
    params.setParameter(CmisConfig.CMIS_QUERY_PARAM, cmisQuery);
    if (tabName.equals(TAB_LABEL_CMIS_QUERY)) {
      outputResource(EDIT_SPEC_FORWARD, out, params);
    } else {
      outputResource(HIDDEN_SPEC_FORWARD, out, params);
    }
View Full Code Here

TOP

Related Classes of org.apache.manifoldcf.core.interfaces.ConfigParams

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.