Package vn.pyco.tinycms.model

Examples of vn.pyco.tinycms.model.Node


        if (path == null || path.isEmpty()) {
            return null;
        }
       
        // get directly page by path
        Node node = _nodeDao.getByPath(path, Node.class);
        if (!(node instanceof Page)) {
            // the path is site or section, get default page of it
            node = _nodeDao.getDefaultPage(path);
            if (node == null) {
                // no default page, get the first page
View Full Code Here


    public int vote(Authentication authentication, Object object, ConfigAttributeDefinition config) {
        if (!(object instanceof Node)) {
            return ACCESS_ABSTAIN;
        }
       
        Node node = (Node) object;
        if (!node.isSecured()) {
            return ACCESS_GRANTED;
        }
       
        UserDetailsImpl details = getUserDetails(authentication);
        if (details == null) {
View Full Code Here

    /*
     * @see vn.pyco.tinycms.dao.NodeDao#getDefaultPage(java.lang.String)
     */
    @Override
    public Page getDefaultPage(String parentPath) {
        Node node = getByPath(parentPath, Node.class);
        if (node == null) {
            return null;
        }
       
        Page result = null;
View Full Code Here

    /*
     * @see vn.pyco.tinycms.dao.NodeDao#getFirstPage(java.lang.String)
     */
    @Override
    public Page getFirstPage(String parentPath) {
        Node node = getByPath(parentPath, Node.class);
        if (node == null) {
            return null;
        }
       
        Page result = null;
View Full Code Here

     * @see vn.pyco.tinycms.dao.NodeDao#getByAlias(java.lang.String)
     */
    @SuppressWarnings("unchecked")
    @Override
    public <T extends Node> T getByAlias(String parentPath, String alias, Class<T> type) {
        Node parentNode = null;
        if (parentPath != null) {
            parentNode = getByPath(parentPath, Node.class);
        }
       
        T result = null;
View Full Code Here

     * @see vn.pyco.tinycms.dao.NodeDao#getAllChilds(java.lang.String)
     */
    @SuppressWarnings("unchecked")
    @Override
    public <T extends Node> List<T> getAllChilds(String parentPath) {
        Node parentNode = null;
        if (parentPath != null) {
            parentNode = getByPath(parentPath, Node.class);
        }
       
        List<T> result = null;
View Full Code Here

TOP

Related Classes of vn.pyco.tinycms.model.Node

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.