Changeset 33176


Ignore:
Timestamp:
06/21/19 14:24:37 (19 months ago)
Author:
kjdon
Message:

changing some strings for constants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/collection/Collection.java

    r33113 r33176  
    326326        String defaultAccess = securityBlock.getAttribute(GSXML.DEFAULT_ACCESS_ATT);
    327327
    328         if (defaultAccess.toLowerCase().equals("public"))
     328        if (defaultAccess.toLowerCase().equals(GSXML.ACCESS_PUBLIC))
    329329        {
    330330            _publicAccess = true;
    331331        }
    332         else if (defaultAccess.toLowerCase().equals("private"))
     332        else if (defaultAccess.toLowerCase().equals(GSXML.ACCESS_PRIVATE))
    333333        {
    334334            _publicAccess = false;
     
    339339        }
    340340
    341         String humanVerify = securityBlock.getAttribute("humanVerify");
     341        String humanVerify = securityBlock.getAttribute(GSXML.VERIFY_ATT);
    342342        if (humanVerify.equals("true")) {
    343343          _humanVerify = true;
    344344        }
    345345
    346         String useRecaptcha = securityBlock.getAttribute("useRecaptcha");
     346        String useRecaptcha = securityBlock.getAttribute(GSXML.USE_RECAPTCHA_ATT);
    347347        if (useRecaptcha.equals("true")) {
    348348
     
    361361          }
    362362        }
    363         if (scope.toLowerCase().equals("collection"))
     363        if (scope.toLowerCase().equals(GSXML.SCOPE_COLLECTION))
    364364        {
    365365            _securityScopeCollection = true;
    366366        }
    367         else if (scope.toLowerCase().equals("documents") || scope.toLowerCase().equals("document"))
     367        else if (scope.toLowerCase().equals(GSXML.SCOPE_DOCUMENT))
    368368        {
    369369            _securityScopeCollection = false;
Note: See TracChangeset for help on using the changeset viewer.