Package com.opensymphony.module.propertyset

Examples of com.opensymphony.module.propertyset.PropertySet


    {
      logger.info("SubscriptionsJob...");
       
      Map args = new HashMap();
        args.put("globalKey", "infoglueSubscriptions");
        PropertySet ps = PropertySetManager.getInstance("jdbc", args);

        int numberOfDays = 30;
       
        cleanPropertySet(ps, numberOfDays);
       
View Full Code Here


   
    public String doExecute() throws Exception
    {
        Map args = new HashMap();
      args.put("globalKey", "infoglue");
      PropertySet ps = PropertySetManager.getInstance("jdbc", args);
     
      if(languageCode != null)
        ps.setString("principal_" + this.getInfoGluePrincipal().getName() + "_languageCode", languageCode);
      ps.setString("principal_" + this.getInfoGluePrincipal().getName() + "_defaultToolName", defaultToolName);
      ps.setString("principal_" + this.getInfoGluePrincipal().getName() + "_defaultRepositoryId", defaultRepositoryId);
      if(defaultGUI != null)
        ps.setString("principal_" + this.getInfoGluePrincipal().getName() + "_defaultGUI", defaultGUI);
      if(theme != null)
        ps.setString("principal_" + this.getInfoGluePrincipal().getName() + "_theme", theme);
      if(toolbarVariant != null)
        ps.setString("principal_" + this.getInfoGluePrincipal().getName() + "_toolbarVariant", toolbarVariant);
     
    NotificationMessage notificationMessage = new NotificationMessage("UpdateMySettingsAction.doExecute():", "ServerNodeProperties", this.getInfoGluePrincipal().getName(), NotificationMessage.SYSTEM, "0", "MySettings");
    ChangeNotificationController.getInstance().addNotificationMessage(notificationMessage);
   
        return "success";
View Full Code Here

      //List<AccessRight> allAccessRights = AccessRightController.getController().getAllAccessRightListForExportReadOnly(db);
     
      //TEST
      Map args = new HashMap();
        args.put("globalKey", "infoglue");
        PropertySet ps = PropertySetManager.getInstance("jdbc", args);
        //END TEST
     
      String names = "";
      String[] repositories = getRequest().getParameterValues("repositoryId");
      for(int i=0; i<repositories.length; i++)
View Full Code Here

        if(this.WYSIWYGProperties == null || this.WYSIWYGProperties.equalsIgnoreCase("") && this.repositoryId != null)
        {
            logger.info("Getting WYSIWYGProperties for repository...");
        Map args = new HashMap();
          args.put("globalKey", "infoglue");
          PropertySet ps = PropertySetManager.getInstance("jdbc", args);
         
          byte[] WYSIWYGConfigBytes = ps.getData("repository_" + this.repositoryId + "_WYSIWYGConfig");
          logger.info("WYSIWYGConfigBytes:" + WYSIWYGConfigBytes);
          if(WYSIWYGConfigBytes != null)
          {
            this.WYSIWYGProperties = new String(WYSIWYGConfigBytes, "UTF-8");
            if(!this.WYSIWYGProperties.trim().equals(""))
View Full Code Here

        if(this.StylesXML == null || this.StylesXML.equalsIgnoreCase("") && this.repositoryId != null)
        {
            logger.info("Getting StylesXML for repository...");
        Map args = new HashMap();
          args.put("globalKey", "infoglue");
          PropertySet ps = PropertySetManager.getInstance("jdbc", args);
         
          byte[] StylesXMLBytes = ps.getData("repository_" + this.repositoryId + "_StylesXML");
          if(StylesXMLBytes != null)
          {
            this.StylesXML = new String(StylesXMLBytes, "UTF-8");
          }
        }
View Full Code Here

     
        if ( newContentVO.getIsBranch().booleanValue() )
        {
            Map args = new HashMap();
            args.put("globalKey", "infoglue");
            PropertySet ps = PropertySetManager.getInstance("jdbc", args);
   
            String allowedContentTypeNames  = ps.getString("content_" + this.getParentContentId() + "_allowedContentTypeNames");
            String defaultContentTypeName = ps.getString("content_" + this.getParentContentId() + "_defaultContentTypeName");
            String initialLanguageId  = ps.getString("content_" + this.getParentContentId() + "_initialLanguageId");
           
            if ( allowedContentTypeNames != null )
            {
                ps.setString("content_" + this.getContentId() + "_allowedContentTypeNames", allowedContentTypeNames );
            }
            if ( defaultContentTypeName != null )
            {
            ps.setString("content_" + this.getContentId() + "_defaultContentTypeName", defaultContentTypeName );
            }
            if ( initialLanguageId != null )
            {
                ps.setString("content_" + this.getContentId() + "_initialLanguageId", initialLanguageId );
            }
        }       
      return "success";
    }
View Full Code Here

    if(protectedContentId != null && !AccessRightController.getController().getIsPrincipalAuthorized(this.getInfoGluePrincipal(), "Content.Create", protectedContentId.toString()))
      ceb.add(new AccessConstraintException("Content.contentId", "1002"));
   
    Map args = new HashMap();
      args.put("globalKey", "infoglue");
      PropertySet ps = PropertySetManager.getInstance("jdbc", args);

    if(this.getIsBranch().booleanValue())
    {
        this.defaultFolderContentTypeName = ps.getString("repository_" + this.getRepositoryId() + "_defaultFolderContentTypeName");
        if(this.defaultFolderContentTypeName == null || this.defaultFolderContentTypeName.equals(""))
          this.defaultFolderContentTypeName = "Folder";
    }
    else
    {
        this.defaultContentTypeName = ps.getString("content_" + this.parentContentId + "_defaultContentTypeName");
    }
        if ( ps.exists( "content_" + this.parentContentId + "_allowedContentTypeNames" ) )
        {
            this.allowedContentTypeNames = ps.getString("content_" + this.parentContentId + "_allowedContentTypeNames");
        }
    ceb.throwIfNotEmpty();
   
    return "input";
    }
View Full Code Here

    if(protectedContentId != null && !AccessRightController.getController().getIsPrincipalAuthorized(this.getInfoGluePrincipal(), "Content.Create", protectedContentId.toString()))
      ceb.add(new AccessConstraintException("Content.contentId", "1002"));
   
    Map args = new HashMap();
      args.put("globalKey", "infoglue");
      PropertySet ps = PropertySetManager.getInstance("jdbc", args);

      this.defaultFolderContentTypeName = ps.getString("repository_" + this.getRepositoryId() + "_defaultFolderContentTypeName");
      if(this.defaultFolderContentTypeName == null || this.defaultFolderContentTypeName.equals(""))
      {
        this.defaultFolderContentTypeName = "Folder";
      }
     
    this.defaultContentTypeName = ps.getString("content_" + this.parentContentId + "_defaultContentTypeName");
   
    if (ps.exists("content_" + this.parentContentId + "_allowedContentTypeNames"))
        {
            this.allowedContentTypeNames = ps.getString("content_" + this.parentContentId + "_allowedContentTypeNames");
        }
   
        userSessionKey = "" + System.currentTimeMillis();

    parentContentVO = ContentControllerProxy.getController().getContentVOWithId(parentContentId);
View Full Code Here

         
            if ( newContentVO.getIsBranch().booleanValue() )
            {
                Map args = new HashMap();
                args.put("globalKey", "infoglue");
                PropertySet ps = PropertySetManager.getInstance("jdbc", args);
       
                String allowedContentTypeNames  = ps.getString("content_" + this.getParentContentId() + "_allowedContentTypeNames");
                String defaultContentTypeName = ps.getString("content_" + this.getParentContentId() + "_defaultContentTypeName");
                String initialLanguageId  = ps.getString("content_" + this.getParentContentId() + "_initialLanguageId");
               
                if ( allowedContentTypeNames != null )
                {
                    ps.setString("content_" + this.getContentId() + "_allowedContentTypeNames", allowedContentTypeNames );
                }
                if ( defaultContentTypeName != null )
                {
                ps.setString("content_" + this.getContentId() + "_defaultContentTypeName", defaultContentTypeName );
                }
                if ( initialLanguageId != null )
                {
                    ps.setString("content_" + this.getContentId() + "_initialLanguageId", initialLanguageId );
                }
            }       
           
            commitTransaction(db);
View Full Code Here

   
    String propertyValue = null;
   
        Map args = new HashMap();
      args.put("globalKey", "infoglue");
      PropertySet ps = PropertySetManager.getInstance("jdbc", args);
     
      propertyValue = ps.getString("repository_" + repositoryId + "_" + propertyName);
         logger.info("propertyValue:" + propertyValue);
     
      if(propertyValue != null)
          CacheController.cacheObject("parentRepository", key, propertyValue);
      else
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.