Examples of PropertyList


Examples of com.adito.boot.PropertyList

    public ActionForward unspecified(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
                    throws Exception {
        MessageForm mf = (MessageForm)form;
        mf.setReferer(CoreUtil.getReferer(request));
        PropertyList selectedPolicies = new PropertyList();
        MultiSelectDataSource policies = new PolicyDataSource();
        SessionInfo session = LogonControllerFactory.getInstance().getSessionInfo(request);
     
        String users = request.getParameter("users");
       
View Full Code Here

Examples of com.adito.boot.PropertyList

     * @throws Exception
     */
    public ActionForward toogleShowPersonalPolicies(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
                throws Exception {
        MessageForm mf = (MessageForm)form;
        PropertyList selectedPolicies = new PropertyList();
       
        SessionInfo session = this.getSessionInfo(request);
       
        String users = request.getParameter("users");

View Full Code Here

Examples of com.adito.boot.PropertyList

     * @see com.adito.wizard.forms.AbstractWizardForm#reset(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest)
     */
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        super.reset(mapping, request);
        AbstractWizardSequence seq = getWizardSequence(request);
        selectedAccessRights = (PropertyList)seq.getAttribute(getAttributeKey(), new PropertyList())
        SessionInfo session = LogonControllerFactory.getInstance().getSessionInfo(request);
        String permissionClass = (String) seq.getAttribute(AccessRightsDetailsForm.ATTR_RESOURCE_PERMISSION_CLASS,
                        PolicyConstants.DELEGATION_CLASS);
        AccessRightsMultiSelectDataSource accessRightsMultiSelectDataSource = new AccessRightsMultiSelectDataSource(permissionClass);
        accessRightsModel = new MultiSelectSelectionModel(session, accessRightsMultiSelectDataSource, selectedAccessRights);
View Full Code Here

Examples of com.getperka.flatpack.policy.pst.PropertyList

      return false;
    }

    @Override
    public boolean visit(PropertyList x) {
      PropertyList n = new PropertyList();
      n.setPropertyNames(clone(x.getPropertyNames()));
      stack.push(n);
      return false;
    }
View Full Code Here

Examples of edu.stanford.smi.protege.util.PropertyList

  }
 
  // return true if sources are complete and 'ok' was pressed
  // copy/pasted from Protege code
    private void loadNewSources(Project project, KnowledgeBaseFactory factory) {
        PropertyList sources = project.getSources();
        File   dir = (File) info.get("directory");
       
        // send a flag to url
        String driver = ""+info.get("driver");
        String url = ""+info.get("url");
        if(driver.contains("mysql") && !url.contains("relaxAutoCommit")){
          url += ((url.lastIndexOf("?") > -1)?"&":"?")+"relaxAutoCommit=true";
        }
       
        // set project file
        File f = new File(dir,PUtils.getOntologyName(getURI())+".pprj");
        project.setProjectURI(f.toURI());
       
        // setup drivers
        OWLDatabaseKnowledgeBaseFactory.setDriver(sources,driver);
        OWLDatabaseKnowledgeBaseFactory.setURL(sources,url);
        OWLDatabaseKnowledgeBaseFactory.setTablename(sources,""+info.get("location"));
        OWLDatabaseKnowledgeBaseFactory.setUsername(sources,""+info.get("username"));
        OWLDatabaseKnowledgeBaseFactory.setPassword(sources,""+info.get("password"));
       
        sources.setString(KnowledgeBaseFactory.FACTORY_CLASS_NAME, factory.getClass().getName());
       
      
       
        //TODO: handle includes !!!
        Iterator i = Collections.EMPTY_LIST.iterator();//editor.getIncludedProjects().iterator();
View Full Code Here

Examples of mondrian.olap.Util.PropertyList

     */
    private void checkSchemaFile(File file) {
        try {
            // this connection parses the catalog file which if invalid will
            // throw exception
            PropertyList list = new PropertyList();
            list.put("Provider", "mondrian");
            list.put("Jdbc", jdbcConnectionUrl);
            list.put("Catalog", file.toURL().toString());
            list.put("JdbcDrivers", jdbcDriverClassName);
            if (jdbcUsername != null && jdbcUsername.length() > 0) {
                list.put("JdbcUser", jdbcUsername);
            }
            if (jdbcPassword != null && jdbcPassword.length() > 0) {
                list.put("JdbcPassword", jdbcPassword);
            }

            // clear cache before connecting
            AggregationManager.instance().getCacheControl(null)
                .flushSchemaCache();
View Full Code Here

Examples of net.fortuna.ical4j.model.PropertyList

      LastModified lastMod = new LastModified(new DateTime(kEvent.getLastModified()));
      vEvent.getProperties().add(lastMod);
    }

    // Uid
    PropertyList vEventProperties = vEvent.getProperties();
    vEventProperties.add(new Uid(kEvent.getID()));
   
    // clazz
    switch (kEvent.getClassification()) {
      case KalendarEvent.CLASS_PRIVATE: vEventProperties.add(ICAL_CLASS_PRIVATE); break;
      case KalendarEvent.CLASS_PUBLIC: vEventProperties.add(ICAL_CLASS_PUBLIC); break;
      case KalendarEvent.CLASS_X_FREEBUSY: vEventProperties.add(ICAL_CLASS_X_FREEBUSY); break;
      default: vEventProperties.add(ICAL_CLASS_PRIVATE); break;
    }

    // location
    if (kEvent.getLocation() != null) {
      vEventProperties.add(new Location(kEvent.getLocation()));
    }
   
    // event links
    List kalendarEventLinks = kEvent.getKalendarEventLinks();
    if ((kalendarEventLinks != null) && !kalendarEventLinks.isEmpty()) {
      for (Iterator iter = kalendarEventLinks.iterator(); iter.hasNext();) {
        KalendarEventLink link = (KalendarEventLink) iter.next();
        StringBuilder linkEncoded = new StringBuilder(200);
        linkEncoded.append(link.getProvider());
        linkEncoded.append("§");
        linkEncoded.append(link.getId());
        linkEncoded.append("§");
        linkEncoded.append(link.getDisplayName());
        linkEncoded.append("§");
        linkEncoded.append(link.getURI());
        linkEncoded.append("§");
        linkEncoded.append(link.getIconCssClass());
        XProperty linkProperty = new XProperty(ICAL_X_OLAT_LINK, linkEncoded.toString());
        vEventProperties.add(linkProperty);
      }
    }
   
    if (kEvent.getComment() != null) {
      vEventProperties.add(new XProperty(ICAL_X_OLAT_COMMENT, kEvent.getComment()));
    }
    if (kEvent.getNumParticipants() != null) {
      vEventProperties.add(new XProperty(ICAL_X_OLAT_NUMPARTICIPANTS, Integer.toString(kEvent.getNumParticipants())));
    }
    if (kEvent.getParticipants() != null) {
      StringBuffer strBuf = new StringBuffer();
      String[] participants = kEvent.getParticipants();
      for ( String participant : participants ) {
        strBuf.append(participant);
        strBuf.append("§");
      }
      vEventProperties.add(new XProperty(ICAL_X_OLAT_PARTICIPANTS, strBuf.toString()));
    }
    if (kEvent.getSourceNodeId() != null) {
      vEventProperties.add(new XProperty(ICAL_X_OLAT_SOURCENODEID, kEvent.getSourceNodeId()));
    }
   
    // recurrence
    String recurrence = kEvent.getRecurrenceRule();
    if(recurrence != null && !recurrence.equals("")) {
      try {
        Recur recur = new Recur(recurrence);
        RRule rrule = new RRule(recur);
        vEventProperties.add(rrule);
      } catch (ParseException e) {
        Tracing.createLoggerFor(getClass()).error("cannot create recurrence rule: " + recurrence.toString(), e);
      }
    }
    // recurrence exclusions
    String recurrenceExc = kEvent.getRecurrenceExc();
    if(recurrenceExc != null && !recurrenceExc.equals("")) {
      ExDate exdate = new ExDate();
      try {
        exdate.setValue(recurrenceExc);
        vEventProperties.add(exdate);
      } catch (ParseException e) {
        e.printStackTrace();
      }
    }
   
View Full Code Here

Examples of oasis.names.tc.wsrp.v1.types.PropertyList

        UserContext userCtx = getUserContext(userID);
        if (userCtx != null)
            request.setUserContext(userCtx);

        PropertyList response = null;

        try {

            response = portletPort.getPortletProperties(request);
            parameterChecker.check(response, Constants.NILLABLE_FALSE);
View Full Code Here

Examples of org.apache.fop.fo.PropertyList

        FOEventHandler foEventHandler = getFOEventHandler();
        // Push a new property list maker which will make MarkerPropertyLists.
        savePropertyListMaker = foEventHandler.getPropertyListMaker();
        foEventHandler.setPropertyListMaker(new PropertyListMaker() {
            public PropertyList make(FObj fobj, PropertyList parentPropertyList) {
                PropertyList pList = new MarkerPropertyList(fobj, parentPropertyList);
                descendantPropertyLists.put(fobj, pList);
                return pList;
            }
        });
    }
View Full Code Here

Examples of org.cipango.console.PropertyList

 
    for (int i = 0; i < connectors.length; i++)
    {
      final ObjectName objectName = connectors[i];
     
      PropertyList propertyList = new PropertyList(_mbsc, objectName, "http.statistics");
      propertyList.setTitle("Connector: " + (String) _mbsc.getAttribute(objectName, "name"));
      Iterator<Property> it = propertyList.iterator();
      while (it.hasNext())
      {
        Property property = (Property) it.next();
        String name = property.getName();
        int index = name.indexOf("since statsReset()");
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.