Skip to content

Commit

Permalink
Renamed Utils to avoid conflicts.
Browse files Browse the repository at this point in the history
The Utils classes in com.netscape.cms.publish.publishers
and com.netscape.cms.servlet.common packages have been renamed
to PublisherUtils and ServletUtils to avoid conflicts with
com.netscape.cmsutil.util.Utils.

Ticket #90
  • Loading branch information
edewata committed Feb 24, 2012
1 parent 84ba9e3 commit 34496a3
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions pki/base/common/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ set(pki-cms_java_SRCS
com/netscape/cms/publish/publishers/FileBasedPublisher.java
com/netscape/cms/publish/publishers/LdapCrlPublisher.java
com/netscape/cms/publish/publishers/LdapCertificatePairPublisher.java
com/netscape/cms/publish/publishers/Utils.java
com/netscape/cms/publish/publishers/PublisherUtils.java
com/netscape/cms/publish/publishers/OCSPPublisher.java
com/netscape/cms/publish/publishers/LdapCertSubjPublisher.java
com/netscape/cms/policy/constraints/UniqueSubjectNameConstraints.java
Expand Down Expand Up @@ -487,7 +487,7 @@ set(pki-cms_java_SRCS
com/netscape/cms/servlet/common/CMSRequest.java
com/netscape/cms/servlet/common/CMSFile.java
com/netscape/cms/servlet/common/IRawJS.java
com/netscape/cms/servlet/common/Utils.java
com/netscape/cms/servlet/common/ServletUtils.java
com/netscape/cms/servlet/common/GenPendingTemplateFiller.java
com/netscape/cms/servlet/common/CMSGWResources.java
com/netscape/cms/servlet/common/GenUnexpectedErrorTemplateFiller.java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public void unpublish(LDAPConnection conn, String dn, Object certObj)

while (vals.hasMoreElements()) {
val = vals.nextElement();
if (Utils.byteArraysAreEqual(certEnc, val)) {
if (PublisherUtils.byteArraysAreEqual(certEnc, val)) {
hasCert = true;
continue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public static boolean ByteValueExists(LDAPAttribute attr, byte[] bval) {

while (vals.hasMoreElements()) {
val = (byte[]) vals.nextElement();
if (Utils.byteArraysAreEqual(val, bval)) {
if (PublisherUtils.byteArraysAreEqual(val, bval)) {
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public static boolean ByteValueExists(LDAPAttribute attr, byte[] bval) {
val = vals.nextElement();
if (val.length == 0)
continue;
if (Utils.byteArraysAreEqual(val, bval)) {
if (PublisherUtils.byteArraysAreEqual(val, bval)) {
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*
* @version $Revision$, $Date$
*/
public class Utils {
public class PublisherUtils {
public static void checkHost(String hostname) throws UnknownHostException {
InetAddress.getByName(hostname);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
import com.netscape.cms.servlet.common.GenSvcPendingTemplateFiller;
import com.netscape.cms.servlet.common.GenUnexpectedErrorTemplateFiller;
import com.netscape.cms.servlet.common.ICMSTemplateFiller;
import com.netscape.cms.servlet.common.Utils;
import com.netscape.cms.servlet.common.ServletUtils;
import com.netscape.cmsutil.xml.XMLObject;

/**
Expand Down Expand Up @@ -274,7 +274,7 @@ public void init(ServletConfig sc) throws ServletException {
mId = sc.getInitParameter(PROP_ID);

try {
mAclMethod = Utils.initializeAuthz(sc, mAuthz, mId);
mAclMethod = ServletUtils.initializeAuthz(sc, mAuthz, mId);
} catch (ServletException e) {
log(ILogger.LL_FAILURE, e.toString());
throw e;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*
* @version $Revision$, $Date$
*/
public class Utils {
public class ServletUtils {

public final static String AUTHZ_SRC_LDAP = "ldap";
public final static String AUTHZ_SRC_TYPE = "sourceType";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import com.netscape.cms.servlet.base.CMSServlet;
import com.netscape.cms.servlet.base.UserInfo;
import com.netscape.cms.servlet.common.CMSRequest;
import com.netscape.cms.servlet.common.Utils;
import com.netscape.cms.servlet.common.ServletUtils;

/**
* This servlet is the base class of all profile servlets.
Expand Down Expand Up @@ -184,7 +184,7 @@ public void init(ServletConfig sc) throws ServletException {
mId = sc.getInitParameter(PROP_ID);

try {
mAclMethod = Utils.initializeAuthz(sc, mAuthz, mId);
mAclMethod = ServletUtils.initializeAuthz(sc, mAuthz, mId);
} catch (ServletException e) {
log(ILogger.LL_FAILURE, e.toString());
throw e;
Expand Down

0 comments on commit 34496a3

Please sign in to comment.