Project

General

Profile

« Previous | Next » 

Revision 2663

Added by sgarg over 18 years ago

Replacing MetaCatUtil.debugMessage or MetaCatUtil.logMetacat call with logMetacat (private Logger object) call

View differences:

AccessRule.java
29 29
package edu.ucsb.nceas.metacat;
30 30

  
31 31
import java.util.Vector;
32

  
32
import org.apache.log4j.Logger;
33 33
/**
34 34
 * A Class that represents an XML access rule. It include principal and 
35 35
 * permission
......
39 39
  private String permissionType = null;
40 40
  private Vector principal = new Vector();
41 41
  private int permission = 0;
42
  private Logger logMetacat = Logger.getLogger(AccessRule.class);
42 43
  
43 44
  /** Set the permssionType */
44 45
  public void setPermissionType(String type)
......
87 88
    // create a new object
88 89
    AccessRule newRule = new AccessRule();
89 90
    // set permissiontype
90
    MetaCatUtil.logMetacat.info("copy permission type: "+
91
    logMetacat.info("copy permission type: "+
91 92
                              this.getPermissionType());
92 93
    newRule.setPermissionType(this.getPermissionType());
93 94
    // set permission
94
    MetaCatUtil.logMetacat.info("copy permission: "+
95
    logMetacat.info("copy permission: "+
95 96
                              this.getPermission());
96 97
    newRule.setPermission(this.getPermission());
97 98
    // walk through all the principals
......
99 100
    for (int i=0; i<principalVector.size(); i++)
100 101
    {
101 102
      String name = (String)principalVector.elementAt(i);
102
      MetaCatUtil.logMetacat.info("copy principle: "+ name);
103
      logMetacat.info("copy principle: "+ name);
103 104
      // Add this name to newrules
104 105
      newRule.addPrincipal(name);
105 106
    }

Also available in: Unified diff