Package org.osforce.connect.service.system

Examples of org.osforce.connect.service.system.PermissionService


 
  @Override
  public int doStartTag() throws JspException {
    WebApplicationContext webApplicationContext = RequestContextUtils
        .getWebApplicationContext(pageContext.getRequest());
    PermissionService permissionService = webApplicationContext.getBean(PermissionService.class);
    Project project = (Project) pageContext.getRequest().getAttribute(PROJECT_KEY);
    User user = (User) pageContext.getRequest().getAttribute(USER_KEY);
    if(permissionService.hasPermission(project, user, code)) {
      return EVAL_BODY_INCLUDE;
    }
    return SKIP_BODY;
  }
View Full Code Here

TOP

Related Classes of org.osforce.connect.service.system.PermissionService

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.