Package org.gatein.api.navigation

Examples of org.gatein.api.navigation.Visibility


            node.setName(nonNullString(nodeModel, "name"));
        }

        // Update visibility
        if (nodeModel.has("visibility")) {
            Visibility visibility = getVisibility(nodeModel, node.getVisibility());
            if (visibility != null) {
                node.setVisibility(visibility);
            }
        }
View Full Code Here


            // If status was set to PUBLICATION however no publication date was specified then throw exception
            if (!pubDateModel.isDefined()) {
                throw requiredFieldWhen("visibility status is " + status, "visibility", "publication-date");
            }
            PublicationDate publicationDate = getPublicationDate(nodeModel, original.getPublicationDate());
            return new Visibility(publicationDate);
        } else {
            return new Visibility(status);
        }
    }
View Full Code Here

TOP

Related Classes of org.gatein.api.navigation.Visibility

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.