Package org.beangle.security

Examples of org.beangle.security.Resource


    resourceMap = new HashMap();
    publicResources = new HashSet();
    protectedResourceIds = new HashSet();
    List resources = resourceService.getResources();
    for (Iterator iter = resources.iterator(); iter.hasNext();) {
      Resource resource = (Resource) iter.next();
      switch (resource.getScope()) {
      case Resource.PUBLIC:
        publicResources.add(resource.getName());
        break;
      case Resource.PROTECTED:
        protectedResourceIds.add(resource.getId());
        break;
      }
      resourceMap.put(resource.getName(), resource.getId());
    }
    expired = false;
    logger.info("public resources loaded:{}",publicResources);
  }
View Full Code Here

TOP

Related Classes of org.beangle.security.Resource

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.