Package de.desy.tine.server.properties

Examples of de.desy.tine.server.properties.TExportProperty


      if (strValue == null || strValue.length() == 0) return 0;
      // parse access mode according to convention
      String accessString = strValue.trim().toUpperCase();
      short ta = 0;
      int idx = -1;
      TExportProperty txp = rHndlr.getExportProperty();
      if (txp == null) return TErrorList.code_failure;
      if ((idx=accessString.indexOf("XREAD")) >= 0)
      { // remove this from the accessString for further comparisons
        txp.hasExclusiveRead = true;
        String s = accessString.substring(0, idx);
        s += accessString.substring(idx+5, accessString.length());
        accessString = s;
      }
      if (accessString.indexOf("WRITE") >= 0) ta |=  TAccess.CA_WRITE;
      if (accessString.indexOf("READ") >= 0) ta |=  TAccess.CA_READ;
      if (accessString.indexOf("NETWORK") >= 0) ta |=  TAccess.CA_READ|TAccess.CA_NETWORK;
      if (accessString.indexOf("ASYNC") >= 0)
      {
        ta &= ~(TAccess.CA_WRITE);
        ta |=  TAccess.CA_READ|TAccess.CA_NOSYNC;     
      }
      if (accessString.indexOf("SAVERESTORE") >= 0) ta |=  TAccess.CA_SAVERESTORE;
      if (accessString.indexOf("HIST") >= 0) ta |=  TAccess.CA_HIST;
      if (accessString.indexOf("FORCEOUTPUT") >= 0) ta |=  TAccess.CA_FORCEOUTPUT;
      txp.setAccessMode(ta);
      if (txp.hasExclusiveRead && !TAccess.isRead((byte)ta))
      { // force read calls thru the security layer for this property !
        txp.hasUnlockedExclusiveRead = true;
      }
      return 0;
View Full Code Here


    private boolean isXaxis = false;
    expMaxValueHndlr(expRowHndlr rowHndlr,boolean xaxis) {rHndlr = rowHndlr; isXaxis = xaxis;}
    public int process(String strValue,int index)
    {
      if (strValue == null || strValue.length() == 0) return 0;
      TExportProperty txp = rHndlr.getExportProperty();
      if (txp == null) return TErrorList.code_failure;
      if (isXaxis)
        txp.setMaximumXValue(Float.valueOf(strValue).floatValue());
      else
        txp.setMaximumValue(Float.valueOf(strValue).floatValue());
      return 0;
    }
View Full Code Here

    private boolean isXaxis = false;
    expMinValueHndlr(expRowHndlr rowHndlr,boolean xaxis) {rHndlr = rowHndlr; isXaxis = xaxis;}
    public int process(String strValue,int index)
    {
      if (strValue == null || strValue.length() == 0) return 0;
      TExportProperty txp = rHndlr.getExportProperty();
      if (txp == null) return TErrorList.code_failure;
      if (isXaxis)
        txp.setMinimumXValue(Float.valueOf(strValue).floatValue());
      else
        txp.setMinimumValue(Float.valueOf(strValue).floatValue());
      return 0;
    }
View Full Code Here

    private boolean isXaxis = false;
    expUnitsHndlr(expRowHndlr rowHndlr,boolean xaxis) {rHndlr = rowHndlr; isXaxis = xaxis;}
    public int process(String strValue,int index)
    {
      if (strValue == null) return 0;
      TExportProperty txp = rHndlr.getExportProperty();
      if (txp == null) return TErrorList.code_failure;
      if (isXaxis)
        txp.setXUnits(strValue);
      else
        txp.setUnits(strValue);
      return 0;
    }
View Full Code Here

TOP

Related Classes of de.desy.tine.server.properties.TExportProperty

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.