Examples of ParameterSet


Examples of org.apache.pluto.om.common.ParameterSet

        if ( name == null )
        {
            throw new IllegalArgumentException("Required parameter name is null");
        }
        //if (log.isDebugEnabled()) log.debug("Getting init parameter for: " + name);
        ParameterSet parameters = portletDefinition.getInitParameterSet();
        Parameter param = parameters.get(name);

        if (param != null)
        {
            // if (log.isDebugEnabled()) log.debug("Param: [[name," + name + "], [value, " + param.getValue() + "]]");
            return param.getValue();
View Full Code Here

Examples of org.apache.pluto.om.common.ParameterSet

        return new PortletPreferencesImpl(org.apache.pluto.Constants.METHOD_NOOP, this.portletWindow.getPortletEntity());
    }
   
    public String getInitParameter( String name )
    {
        ParameterSet iParamSet = this.initParamSet;
        if ( iParamSet == null )
        {
            iParamSet = this.portletWindow.getPortletEntity().getPortletDefinition().getInitParameterSet();
            this.initParamSet = iParamSet;
        }
        if ( iParamSet != null )
        {
            Parameter initParam = iParamSet.get( name );
            if ( initParam != null )
            {
                return initParam.getValue();
            }
        }
View Full Code Here

Examples of org.apache.pluto.om.common.ParameterSet

          if ( layoutName != null && layoutName.length() > 0 )
          {
            // logic below is copied from org.apache.jetspeed.portlets.MultiColumnPortlet
            PortletDefinition portletDef = registry.getPortletDefinitionByUniqueName( layoutName );
                   
            ParameterSet paramSet = portletDef.getInitParameterSet();
            Parameter sizesParam = paramSet.get( "sizes" );
            String sizesParamVal = ( sizesParam == null ) ? null : sizesParam.getValue();
            if ( sizesParamVal != null && sizesParamVal.length() > 0 )
            {
              fragSizes.put( frag.getId(), sizesParamVal );
              //log.info( "GetPageAction settings sizes for " + frag.getId() + " to " + sizesParamVal);
            }
            else
            {
              Parameter colsParam = paramSet.get( "columns" );
              String colsParamVal = ( colsParam == null ) ? null : colsParam.getValue();
              if ( colsParamVal != null && colsParamVal.length() > 0 )
              {
                int cols = 0;
                try
                {
                  cols = Integer.parseInt( colsParamVal );
                }
                catch ( NumberFormatException ex )
                {
                }
                if ( cols < 1 )
                {
                  cols = 2;
                }
                switch (cols)
                      {
                        case 1: sizesParamVal = "100%"; break;
                        case 2: sizesParamVal = "50%,50%"; break;
                        case 3: sizesParamVal = "34%,33%,33%"; break;
                        default: sizesParamVal = "50%,50%"; break;
                      }
                fragSizes.put( frag.getId(), sizesParamVal );
                //log.info( "GetPageAction defaulting sizes for " + frag.getId() + " to " + sizesParamVal);
              }
            }
          }
        }
        List childFragments = frag.getFragments();
        if ( childFragments != null )
        {
          Iterator childFragIter = childFragments.iterator();
          while ( childFragIter.hasNext() )
          {
            Fragment childFrag = (Fragment)childFragIter.next();
                    retrieveFragmentSpecialProperties( requestContext, childFrag, fragSizes, portletIcons );
          }
        }
      }
        else if ( portletIcons != null && "portlet".equals( frag.getType() ) )
        {   // get portlet icon and locale specific portlet display name
            String portletName = frag.getName();
            if ( portletName != null && portletName.length() > 0 )
            {
                PortletDefinition portletDef = registry.getPortletDefinitionByUniqueName( portletName );
               
                if ( portletDef != null && portletIcons != null )
                {
                    ParameterSet paramSet = portletDef.getInitParameterSet();
                    Parameter iconParam = paramSet.get( "portlet-icon" );
                    String iconParamVal = ( iconParam == null ) ? null : iconParam.getValue();
                    if ( iconParamVal != null && iconParamVal.length() > 0 )
                    {
                        portletIcons.put( frag.getId(), iconParamVal );
                    }
View Full Code Here

Examples of org.apache.pluto.om.common.ParameterSet

            {
                PortletDefinition portletDef = registry.getPortletDefinitionByUniqueName( portletName );
               
                if ( portletDef != null && portletIcons != null )
                {
                    ParameterSet paramSet = portletDef.getInitParameterSet();
                    Parameter iconParam = paramSet.get( "portlet-icon" );
                    String iconParamVal = ( iconParam == null ) ? null : iconParam.getValue();
                    if ( iconParamVal != null && iconParamVal.length() > 0 )
                    {
                        portletIcons.put( frag.getId(), iconParamVal );
                    }
View Full Code Here

Examples of org.apache.pluto.om.common.ParameterSet

    else
      {   // get layout fragment sizes
        String sizesVal = layoutFragment.getProperty( "sizes" );
        String layoutName = layoutFragment.getName();
        layoutName = ( (layoutName != null && layoutName.length() > 0) ? layoutName : (String)null );
        ParameterSet paramSet = null;
        PortletDefinition portletDef = null;
        if ( sizesVal == null || sizesVal.length() == 0 )
        {
          if ( layoutName != null )
          {
            // logic below is copied from org.apache.jetspeed.portlets.MultiColumnPortlet
            portletDef = registry.getPortletDefinitionByUniqueName( layoutName );
                    if ( portletDef != null )
                    {
                      paramSet = portletDef.getInitParameterSet();
                      if ( paramSet != null )
                      {
                        Parameter sizesParam = paramSet.get( "sizes" );
                        sizesVal = ( sizesParam == null ) ? null : sizesParam.getValue();
                      }
                    }
          }
        }
        if ( sizesVal != null && sizesVal.length() > 0 )
        {
          if ( fragSizes != null )
            fragSizes.put( layoutFragment.getId(), sizesVal );
         
        int sepPos = -1, startPos = 0, sizesLen = sizesVal.length();
        columnCount = 0;
        do
        {
          sepPos = sizesVal.indexOf( ',', startPos );
          if ( sepPos != -1 )
          {
            if ( sepPos > startPos )
              columnCount++;
            startPos = sepPos +1;
          }
          else if ( startPos < sizesLen )
          {
            columnCount++;
          }
        } while ( startPos < sizesLen && sepPos != -1 );
        if ( ! suppressErrorLogging && columnCount <= 0 )
          log.error( "getColumnCountAndSizes invalid columnCount - " + layoutFragment.getId() + " / " + layoutName + " count=" + columnCount + " sizes=" + sizesVal );
      }
      else if ( paramSet == null )
      {
        if ( ! suppressErrorLogging )
        {
          if ( layoutName == null )
            log.error( "getColumnCountAndSizes null sizes, null layoutName - " + layoutFragment.getId() );
          else if ( portletDef == null )
            log.error( "getColumnCountAndSizes null sizes, null PortletDefinition - " + layoutFragment.getId() + " / " + layoutName );
          else
            log.error( "getColumnCountAndSizes null sizes, null ParameterSet - " + layoutFragment.getId() + " / " + layoutName );
        }
      }
      else
      {
        Parameter colsParam = paramSet.get( "columns" );
        String colsParamVal = ( colsParam == null ) ? null : colsParam.getValue();
        if ( colsParamVal != null && colsParamVal.length() > 0 )
        {
          try
          {
View Full Code Here

Examples of org.cytoscape.ClusterViz.internal.ParameterSet

                     final CyNetwork inputNet,
                     final int resultId) {
    // This method is similar to the finding method with the exception of the filtering so that the decrease of the cluster size
    // can produce a single node, also the use of the node seen hash map is differentially applied...
    final Map<Long, NodeInfo> nodeInfoHashMap = nodeInfoResultsMap.get(resultId);
    final ParameterSet params = mcodeUtil.getCurrentParameters().getResultParams(cluster.getResultId());
    final Map<Long, Boolean> nodeSeenHashMap;

    // If the size slider is below the set node score cutoff we use the node seen hash map so that clusters
    // with higher scoring seeds have priority, however when the slider moves higher than the node score cutoff
    // we allow the cluster to accrue nodes from all around without the priority restriction
    if (nodeScoreCutoff <= params.getNodeScoreCutoff())
      nodeSeenHashMap = new HashMap<Long, Boolean>(cluster.getNodeSeenHashMap());
    else
      nodeSeenHashMap = new HashMap<Long, Boolean>();

    final Long seedNode = cluster.getSeedNode();

    final List<Long> alCluster = getClusterCore(seedNode, nodeSeenHashMap, nodeScoreCutoff, params
        .getMaxDepthFromStart(), nodeInfoHashMap);

    // Make sure seed node is part of cluster, if not already in there
    if (!alCluster.contains(seedNode))
      alCluster.add(seedNode);

    // Create an input graph for the filter and haircut methods
    ClusterGraph clusterGraph = createClusterGraph(alCluster, inputNet);

    if (params.isHaircut())
      haircutCluster(clusterGraph, alCluster);

    if (params.isFluff())
      fluffClusterBoundary(alCluster, nodeSeenHashMap, nodeInfoHashMap);

    clusterGraph = createClusterGraph(alCluster, inputNet);
    final double score = scoreCluster(clusterGraph);
   
View Full Code Here

Examples of org.eclipse.uml2.uml.ParameterSet

   * <!-- begin-user-doc --> <!-- end-user-doc -->
   *
   * @generated
   */
  public void setBase_ParameterSet(ParameterSet newBase_ParameterSet) {
    ParameterSet oldBase_ParameterSet = base_ParameterSet;
    base_ParameterSet = newBase_ParameterSet;
    if(eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ActivitiesPackage.PROBABILITY__BASE_PARAMETER_SET, oldBase_ParameterSet, base_ParameterSet));
  }
View Full Code Here

Examples of org.hibernate.search.backend.LuceneIndexingParameters.ParameterSet

  public synchronized IndexWriter getIndexWriter(boolean batchmode, ErrorContextBuilder errorContextBuilder) {
    if ( writer != null )
      return writer;
    try {
      if ( batchmode ) {
        ParameterSet indexingParameters = indexingParams.getBatchIndexParameters();
        writer = createNewIndexWriter( directoryProvider, this.batchWriterConfig, indexingParameters );
        log.trace( "IndexWriter opened using batch configuration" );
      }
      else {
        ParameterSet indexingParameters = indexingParams.getTransactionIndexParameters();
        writer = createNewIndexWriter( directoryProvider, this.writerConfig, indexingParameters );
        log.trace( "IndexWriter opened using default configuration" );
      }
    }
    catch ( IOException ioe ) {
View Full Code Here

Examples of org.hibernate.search.backend.spi.LuceneIndexingParameters.ParameterSet

      Assert.assertTrue(extended.getDataCache().getCacheManager() == embeddedCacheManager);
   }

   private void verifyIndexWriterOptions(NRTIndexManager nrtIM, Integer expectedRAMBuffer, Integer expectedMaxMergeSize, Integer expectedMergeFactor) {
      LuceneIndexingParameters indexingParameters = nrtIM.getIndexingParameters();
      ParameterSet indexParameters = indexingParameters.getIndexParameters();
      Assert.assertEquals(indexParameters.getCurrentValueFor(IndexWriterSetting.RAM_BUFFER_SIZE), expectedRAMBuffer);
      Assert.assertEquals(indexParameters.getCurrentValueFor(IndexWriterSetting.MERGE_MAX_SIZE), expectedMaxMergeSize);
      Assert.assertEquals(indexParameters.getCurrentValueFor(IndexWriterSetting.MERGE_FACTOR), expectedMergeFactor);
   }
View Full Code Here

Examples of org.locationtech.geogig.web.api.ParameterSet

        WebAPICommand command = null;
        Form options = getRequest().getResourceRef().getQueryAsForm();
        String commandName = (String) getRequest().getAttributes().get("command");
        MediaType format = resolveFormat(options, variant);
        try {
            ParameterSet params = new FormParams(options);
            command = CommandBuilder.build(commandName, params);
            assert command != null;
        } catch (CommandSpecException ex) {
            rep = formatException(ex, format);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.