Package org.apache.tiles.Attribute

Examples of org.apache.tiles.Attribute.AttributeType


                        + attr.getRoles() + "'");
            }
            return;
        }

        AttributeType type = attr.getType();
        if (type == null) {
            type = calculateType(attr, request);
            attr.setType(type);
        }
View Full Code Here


     * @return The calculated attribute type.
     * @throws TilesException If the type is not recognized.
     */
    private AttributeType calculateType(Attribute attr,
            TilesRequestContext request) throws TilesException {
        AttributeType type;
        Object valueContent = attr.getValue();
        if (valueContent instanceof String) {
            String valueString = (String) valueContent;
            if (isValidDefinition(request, valueString)) {
                type = AttributeType.DEFINITION;
View Full Code Here

            LOG.info("Access to attribute '" + attr.getName()
                    + "' denied.  User not in role '" + attr.getRole());
            return;
        }

        AttributeType type = attr.getType();
        if (type == null) {
            type = calculateType(attr, request);
            attr.setType(type);
        }
View Full Code Here

     * @return The calculated attribute type.
     * @throws TilesException If the type is not recognized.
     */
    private AttributeType calculateType(Attribute attr,
            TilesRequestContext request) throws TilesException {
        AttributeType type;
        Object valueContent = attr.getValue();
        if (valueContent instanceof String) {
            String valueString = (String) valueContent;
            if (isValidDefinition(request, valueString)) {
                type = AttributeType.DEFINITION;
View Full Code Here

        if (attr == null) {
            throw new TilesException("Cannot render a null attribute");
        }

        AttributeType type = attr.getType();
        if (type == null) {
            type = calculateType(attr, request);
            attr.setType(type);
        }
View Full Code Here

     * @return The calculated attribute type.
     * @throws TilesException If the type is not recognized.
     */
    private AttributeType calculateType(Attribute attr,
            TilesRequestContext request) throws TilesException {
        AttributeType type;
        Object valueContent = attr.getValue();
        if (valueContent instanceof String) {
            String valueString = (String) valueContent;
            if (isValidDefinition(request, valueString)) {
                type = AttributeType.DEFINITION;
View Full Code Here

TOP

Related Classes of org.apache.tiles.Attribute.AttributeType

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.