Package com.opensymphony.module.propertyset

Examples of com.opensymphony.module.propertyset.PropertySet


 
  public void updateInterceptorConfiguration(Integer interceptorId, String configuration) throws Exception
  {
        Map args = new HashMap();
      args.put("globalKey", "infoglue");
      PropertySet ps = PropertySetManager.getInstance("jdbc", args);
     
      ps.setData("interceptor_" + interceptorId + "_Configuration", configuration.getBytes("utf-8"));
  }
View Full Code Here


  }
  */
 
  public PropertySet getPropertySet(InfoGluePrincipal userPrincipal, long workflowId)
  {
    PropertySet propertySet = null;
   
    Session session = null;
    net.sf.hibernate.Transaction tx = null;

    try
View Full Code Here

   * Returns the workflow property set for a particular user and workflow
   * @return the workflow property set for the workflow with workflowId and the user represented by userPrincipal
   */
  public PropertySet getPropertySet(InfoGluePrincipal userPrincipal, long workflowId, Session session)
  {
    PropertySet propertySet = null;
   
    try
    {
      WorkflowFacade wf = new WorkflowFacade(userPrincipal, workflowId, hibernateSessionFactory, session);
      propertySet = wf.getPropertySet();
View Full Code Here

    {
      session = hibernateSessionFactory.openSession();
      tx = session.beginTransaction();


      PropertySet propertySet = getPropertySet(userPrincipal, workflowId, session);
      for (Iterator keys = propertySet.getKeys().iterator(); keys.hasNext();)
      {
        String key = (String)keys.next();
        parameters.put(key, propertySet.getString(key));
      }

      session.flush();

      tx.commit();
View Full Code Here

     
      deleteEntity(ServerNodeImpl.class, serverNodeVO.getId());

      Map args = new HashMap();
      args.put("globalKey", "infoglue");
      PropertySet ps = PropertySetManager.getInstance("jdbc", args);
     
      Collection keys = ps.getKeys();
      Iterator keysIterator = keys.iterator();
      while(keysIterator.hasNext())
      {
        String key = (String)keysIterator.next();
        if(key.indexOf("serverNode_" + serverNodeId + "_") > -1)
          ps.remove(key);
      }
     
    try
    {
      CacheController.clearServerNodeProperty(true);
View Full Code Here

 
  public List getAllowedAdminIPList()
  {
      Map args = new HashMap();
      args.put("globalKey", "infoglue");
      PropertySet ps = PropertySetManager.getInstance("jdbc", args);
     
      String allowedAdminIP = ps.getString("allowedAdminIP");
      if(allowedAdminIP != null)
          return Arrays.asList(allowedAdminIP.split(","));
      else
          return new ArrayList();
  }
View Full Code Here

 
  public String getAllowedAdminIP()
  {
      Map args = new HashMap();
      args.put("globalKey", "infoglue");
      PropertySet ps = PropertySetManager.getInstance("jdbc", args);
     
      String allowedAdminIP = ps.getString("allowedAdminIP");
      return allowedAdminIP;
  }
View Full Code Here

  public void setAllowedAdminIP(String allowedAdminIP)
  {
      Map args = new HashMap();
      args.put("globalKey", "infoglue");
      PropertySet ps = PropertySetManager.getInstance("jdbc", args);
     
      ps.setString("allowedAdminIP", allowedAdminIP);
  }
View Full Code Here

 
  private String getPreferredLanguageCode(HttpServletRequest request)
  {
        Map args = new HashMap();
      args.put("globalKey", "infoglue");
      PropertySet ps = PropertySetManager.getInstance("jdbc", args);
      return ps.getString("principal_" + request.getRemoteUser() + "_languageCode");
  }
View Full Code Here

  private String getPreferredToolName(HttpServletRequest request)
  {
        Map args = new HashMap();
      args.put("globalKey", "infoglue");
      PropertySet ps = PropertySetManager.getInstance("jdbc", args);
     
      return ps.getString("principal_" + request.getRemoteUser() + "_defaultToolName");
  }
View Full Code Here

TOP

Related Classes of com.opensymphony.module.propertyset.PropertySet

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.