Package org.svnadmin.service

Source Code of org.svnadmin.service.DefaultTreeService

/**
*
*/
package org.svnadmin.service;

import java.util.Map;

import org.springframework.stereotype.Service;
import org.svnadmin.entity.Ajax;
import org.tree.service.AbstractTreeService;
import org.tree.service.TreeFactory;

/**
* 默认的树服务层
* @author <a href="mailto:yuanhuiwu@gmail.com">Huiwu Yuan</a>
* @since 3.0.2
*
*/
@Service(DefaultTreeService.BEAN_NAME)
public class DefaultTreeService extends AbstractTreeService implements AjaxService{
 
  /**
   * Bean名称s
   */
  public static final String BEAN_NAME="ajaxTreeService";
 
  public TreeFactory getTreeFactory() {
    return DefaultTreeFactory.getInstance();
  }

  public Ajax execute(Map<String, Object> parameters) {
    Ajax result = new Ajax();
    result.setContentType(CONTENTTYPE_HTML);
    result.setResult(this.getHTML(parameters));
    return result;
  }

}
TOP

Related Classes of org.svnadmin.service.DefaultTreeService

TOP
Copyright © 2018 www.massapi.com. 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.