public List<? extends Annotation> getRestrictionsForPhase(PhaseIdType currentPhase, String viewId) {
        List<? extends Annotation> allSecurityAnnotations = viewConfigStore.getAllQualifierData(viewId, SecurityBindingType.class);
        List<Annotation> applicableSecurityAnnotations = null;
        for (Annotation annotation : allSecurityAnnotations) {
            PhaseIdType[] defaultPhases = getDefaultPhases(viewId);
            if (isAnnotationApplicableToPhase(annotation, currentPhase, defaultPhases)) {
                if (applicableSecurityAnnotations == null) { // avoid spawning arrays at all phases of the lifecycle
                    applicableSecurityAnnotations = new ArrayList<Annotation>();
                }
                applicableSecurityAnnotations.add(annotation);
            }
        }
        return applicableSecurityAnnotations;
    }
public List < ? extends Annotation > getRestrictionsForPhase ( PhaseIdType currentPhase , String viewId ) { List < ? extends Annotation > allSecurityAnnotations = viewConfigStore . getAllQualifierData ( viewId , SecurityBindingType . class ) ; List < Annotation > applicableSecurityAnnotations = null ; for ( Annotation annotation : allSecurityAnnotations ) { PhaseIdType [ ] defaultPhases = getDefaultPhases ( viewId ) ; if ( isAnnotationApplicableToPhase ( annotation , currentPhase , defaultPhases ) ) { if ( applicableSecurityAnnotations == null ) { applicableSecurityAnnotations = new ArrayList < Annotation > ( ) ; } applicableSecurityAnnotations . add ( annotation ) ; } } return applicableSecurityAnnotations ; }
Retrieve all annotations from the ViewConfigStore for a given a JSF phase, and a view id,
and where the annotation is qualified by @SecurityBindingType

@param currentPhase
@param viewId
@return list of restrictions applicable to this viewId and PhaseTypeId