if (check.check(path,resource))
if (check.check(path,resource))
/** * @param path * the path to check the alias for * @param resource * the resource * @return True if the alias is OK */ public boolean checkAlias(String path, Resource resource) { // Is the resource aliased? if (resource.isAlias()) { if (LOG.isDebugEnabled()) LOG.debug("Aliased resource: " + resource + "~=" + resource.getAlias()); // alias checks for (Iterator<AliasCheck> i = _aliasChecks.iterator(); i.hasNext();) { AliasCheck check = i.next(); if (check.check(path,resource)) { if (LOG.isDebugEnabled()) LOG.debug("Aliased resource: " + resource + " approved by " + check); return true; } } return false; } return true; }
if (check.check(path,resource))
/** * @param path * @param resource * @return True if the alias is OK */ public boolean checkAlias(String path, Resource resource) { // Is the resource aliased? if (resource.getAlias() != null) { if (LOG.isDebugEnabled()) LOG.debug("Aliased resource: " + resource + "~=" + resource.getAlias()); // alias checks for (Iterator<AliasCheck> i=_aliasChecks.iterator();i.hasNext();) { AliasCheck check = i.next(); if (check.check(path,resource)) { if (LOG.isDebugEnabled()) LOG.debug("Aliased resource: " + resource + " approved by " + check); return true; } } return false; } return true; }
/** * @param path the path to check the alias for * @param resource the resource * @return True if the alias is OK */ public boolean checkAlias(String path, Resource resource) { // Is the resource aliased? if (resource.isAlias()) { if (LOG.isDebugEnabled()) LOG.debug("Aliased resource: " + resource + "~=" + resource.getAlias()); // alias checks for (Iterator<AliasCheck> i=_aliasChecks.iterator();i.hasNext();) { AliasCheck check = i.next(); if (check.check(path,resource)) { if (LOG.isDebugEnabled()) LOG.debug("Aliased resource: " + resource + " approved by " + check); return true; } } return false; } return true; }
public boolean checkAlias(String path, Resource resource) { // Is the resource aliased? if (!_aliasesAllowed && resource.getAlias() != null) { if (LOG.isDebugEnabled()) LOG.debug("Aliased resource: " + resource + "~=" + resource.getAlias()); // alias checks for (Iterator<AliasCheck> i=_aliasChecks.iterator();i.hasNext();) { AliasCheck check = i.next(); if (check.check(path,resource)) { if (LOG.isDebugEnabled()) LOG.debug("Aliased resource: " + resource + " approved by " + check); return true; } } return false; } return true; }
public boolean checkAlias(String path, Resource resource) { // Is the resource aliased? if (!_aliasesAllowed && resource.getAlias() != null) { if (LOG.isDebugEnabled()) LOG.debug("Aliased resource: " + resource + "~=" + resource.getAlias()); // alias checks for (Iterator<AliasCheck> i=_aliasChecks.iterator();i.hasNext();) { AliasCheck check = i.next(); if (check.check(path,resource)) { if (LOG.isDebugEnabled()) LOG.debug("Aliased resource: " + resource + " approved by " + check); return true; } } return false; } return true; }
public boolean checkAlias(String path, Resource resource) { // Is the resource aliased? if (!_aliasesAllowed && resource.getAlias() != null) { if (LOG.isDebugEnabled()) LOG.debug("Aliased resource: " + resource + "~=" + resource.getAlias()); // alias checks for (Iterator<AliasCheck> i=_aliasChecks.iterator();i.hasNext();) { AliasCheck check = i.next(); if (check.check(path,resource)) { if (LOG.isDebugEnabled()) LOG.debug("Aliased resource: " + resource + " approved by " + check); return true; } } return false; } return true; }
public boolean checkAlias(String path, Resource resource) { // Is the resource aliased? if (!_aliasesAllowed && resource.getAlias() != null) { if (LOG.isDebugEnabled()) LOG.debug("Aliased resource: " + resource + "~=" + resource.getAlias()); // alias checks for (Iterator<AliasCheck> i=_aliasChecks.iterator();i.hasNext();) { AliasCheck check = i.next(); if (check.check(path,resource)) { if (LOG.isDebugEnabled()) LOG.debug("Aliased resource: " + resource + " approved by " + check); return true; } } return false; } return true; }