Package org.zanata.annotation

Examples of org.zanata.annotation.EntityRestrict


        }
    }

    private static boolean
            isEntityRestricted(Object entity, EntityAction action) {
        EntityRestrict entityRestrict =
                entity.getClass().getAnnotation(EntityRestrict.class);
        Restrict restrict = entity.getClass().getAnnotation(Restrict.class);
        if (restrict != null) {
            if (entityRestrict != null) {
                if (Arrays.asList(entityRestrict.value()).contains(action)) {
                    return true; // restricted
                } else {
                    return false; // not restricted
                }
            } else {
View Full Code Here

TOP

Related Classes of org.zanata.annotation.EntityRestrict

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.