Is this a Global Role.

@return <code>true</code> if global role type, else <code>false</code>
506026
public boolean isLocal()
    {
        return CIAdminUser.RoleLocal.getType() == null ? false
                        : CIAdminUser.RoleLocal.getType().getId() == this.typeId;
    }
635235
public boolean isUserInRole(String role)
    {
        if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
            checkRequestObjectInUse();
        }
        boolean userInRole;

        IWebAppSecurityCollaborator webAppSec = CollaboratorHelperImpl.getCurrentSecurityCollaborator();
        if (webAppSec != null) {
            userInRole = webAppSec.isUserInRole(role, this);
        } else {
            // No IWebAppSecurityCollaborator means no security, so not authenticated 
            userInRole = false;
        }

        if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {  //306998.15
            logger.logp(Level.FINE, CLASS_NAME,"isUserInRole", " role --> " + role + " result --> " + String.valueOf(userInRole));
        }
        return userInRole;
    }
1292870
public boolean hasRoleGrant(Grant grant,String role){
        if (grant == null) throw new IllegalArgumentException("grant cannot be null");
        if (role == null) throw new IllegalArgumentException("role cannot be null");
        Set<String> roles = rolesGrants.get(grant);
        return roles!=null&&roles.contains(role);
    }
298298
public boolean isCallerInRole(String roleName, Object bean)
    {
        final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
        if (isTraceOn && tc.isEntryEnabled())
        {
            Tr.entry(tc, "isCallerInRole, role = " + roleName
                         + " EJB = " + bean); //182011
        }

        // Check whether security is enabled or not. Note, the subclasses
        // do override this method to do additional processing and then they
        // call super.isCallerInRole which usually causes this code to
        // execute.  However, the subclass will throw IllegalStateException
        // (e.g. MessageDrivenBeanO) if not valid to call isCallerInRole.
        boolean inRole; //d444696.2
        EJBSecurityCollaborator<?> securityCollaborator = container.ivSecurityCollaborator;
        if (securityCollaborator == null) //d444696.2
        {
            // Security is disabled, so return false for 1.x and 2.x modules to
            // ensure pre EJB 3 applications see no behavior change. For EJB 3 modules
            // or later, return true so that we are consistent with web container.
            BeanMetaData bmd = home.beanMetaData;
            if (isTraceOn && tc.isDebugEnabled())
            {
                Tr.debug(tc, "isCallerInRole called with security disabled for EJB module version = "
                             + bmd.ivModuleVersion);
            }
            inRole = (bmd.ivModuleVersion >= BeanMetaData.J2EE_EJB_VERSION_3_0);
        }
        else //d444696.2
        {
            // Pass null EJSDeployedSupport for callback methods.            d739835
            EJSDeployedSupport s = bean == null ? null : EJSContainer.getMethodContext();

            try
            {
                inRole = isCallerInRole(securityCollaborator, roleName, s);
            } catch (RuntimeException ex)
            {
                FFDCFilter.processException(ex, CLASS_NAME + ".isCallerInRole", "982", this);
                if (isTraceOn && tc.isEntryEnabled())
                    Tr.exit(tc, "isCallerInRole collaborator throwing", ex);
                throw ex;
            }
        }

        if (isTraceOn && tc.isEntryEnabled()) //d444696.2
        {
            Tr.exit(tc, "isCallerInRole returning " + inRole);
        }
        return inRole; //d444696.2
    }
696778
public boolean isUserInRole(String role) {
        for (String assRole : getRoles()) {
            if (assRole.equalsIgnoreCase(role)) {
                return true;
            }
        }
        return false;
    }
322815
public boolean isGlobalVariable(@Nullable final String variableName) {
    boolean result = false;
    if (variableName != null) {
      final String normalized = PreprocessorUtils.normalizeVariableName(variableName);
      result = this.globalVarTable.containsKey(normalized) || mapVariableNameToSpecialVarProcessor.containsKey(normalized);
    }
    return result;
  }
1093103
private boolean hasRoleForApp(I_CmsWorkplaceAppConfiguration app) {

        if (m_user != null) {
            return OpenCms.getRoleManager().hasRole(m_cms, m_user.getName(), app.getRequiredRole());
        }

        if (!CmsStringUtil.isEmptyOrWhitespaceOnly(m_group.getValue())) {
            try {
                CmsGroup group = m_cms.readGroup(m_group.getValue());
                CmsRole roleFromGroup = CmsRole.valueOf(group);
                CmsRole roleFromField = (CmsRole)m_role.getValue();
                if (!roleFromGroup.getChildren(true).contains(roleFromField)) {
                    roleFromGroup = roleFromField;
                }
                if (roleFromGroup == null) {
                    return false;
                }
                List<CmsRole> groupRoles = roleFromGroup.getChildren(true);
                groupRoles.add(roleFromGroup);
                List<String> roleNames = new ArrayList<String>();
                for (CmsRole gr : groupRoles) {
                    roleNames.add(gr.getRoleName());
                }
                return roleNames.contains(app.getRequiredRole().getRoleName());
            } catch (CmsException e) {
                LOG.error("Unable to read group", e);
            }
        }
        return true;
    }
1207585
function(role, view, template_arguments) {

		var result = false;

		if (role in this._role_handlers) {

			this[this._role_handlers[role]](view, template_arguments);
			result = true;

		}

		return result;

	}
759782
private boolean globalWebAppSecurityConfigHasFormLogin() {
        WebAppSecurityConfig globalConfig = WebAppSecurityCollaboratorImpl.getGlobalWebAppSecurityConfig();
        return globalConfig != null &&
               globalConfig.getLoginFormURL() != null;
    }
595011
public boolean isRoleMapped(Long pRoleId){
       if(userRoles == null || userRoles.length == 0){
            return false;
        }
        for(int i=0; i<userRoles.length; i++){
            if(userRoles[i].getId().longValue() == pRoleId.longValue()){
                return true;
            }
        }
        return false;
    }
442795
@Override
    public Role getRole() {
        return is(NodeFlag.MASTER) ? Role.MASTER : Role.SLAVE;
    }
1033695
public boolean hasRoleForUser(String name, String role) {
        List<String> roles = getRolesForUser(name);

        boolean hasRole = false;
        for (String r : roles) {
            if (r.equals(role)) {
                hasRole = true;
                break;
            }
        }

        return hasRole;
    }
1098551
@Override
    public boolean isCallerInRole(String role) {

        Subject callerSubject = getCallerSubject();
        AuthorizationService authService = SecurityContextHelper.getAuthorizationService();
        if (authService != null) {
            String appName = getApplicationName();
            List<String> roles = new ArrayList<String>();
            roles.add(role);

            return authService.isAuthorized(appName, roles, callerSubject);
        }
        return false;
    }
813953
public static boolean isClientContainer()
    {
        String processType = AccessController.doPrivileged(new PrivilegedAction<String>() {
            @Override
            public String run() {
                return bundleContext.getProperty(WsLocationConstants.LOC_PROCESS_TYPE);
            }
        });
        return Boolean.valueOf(WsLocationConstants.LOC_PROCESS_TYPE_CLIENT.equals(processType));
    }
731730
public Context getGlobal()
	{
		Context op = this;

		while (op.outer != null)
		{
			op = op.outer;
		}

		return op;
	}
1336056
public boolean isLocal()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "isLocal");
    
    boolean isLocal = false;
    if (foreignDest.getResolvedDestinationHandler().getLocalLocalizationPoint() != null)
      isLocal = true;
      
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "isLocal", new Boolean(isLocal));
    
    return isLocal;
  }
737021
public synchronized boolean isUserInRole(Principal user, String roleName)
    {
        if (user instanceof WrappedUser)
            return ((WrappedUser)user).isUserInRole(roleName);
         
        if (user==null || ((User)user).getUserRealm()!=this)
            return false;
        
        HashSet userSet = (HashSet)_roles.get(roleName);
        return userSet!=null && userSet.contains(user.getName());
    }