Package org.vosao.service

Examples of org.vosao.service.ServiceException


  public ServiceResponse save(Map<String, String> vo) {
    try {
      GroupEntity group = getDao().getGroupDao().getById(Long.valueOf((
        vo.get("groupId"))));
      if (group == null) {
        throw new ServiceException(Messages.get("group_not_found"));
      }
      String url = vo.get("url");
      ContentPermissionType perm = ContentPermissionType.valueOf(
        vo.get("permission"));
      String languages = StringUtils.isEmpty(vo.get("languages")) ? null :
View Full Code Here


  public ServiceResponse save(Map<String, String> vo) {
    try {
      GroupEntity group = getDao().getGroupDao().getById(Long.valueOf((
        vo.get("groupId"))));
      if (group == null) {
        throw new ServiceException(Messages.get("group_not_found"));
      }
      FolderEntity folder = getDao().getFolderDao().getById(
          Long.valueOf(vo.get("folderId")));
      if (folder == null) {
        throw new ServiceException(Messages.get("folder.not_found",
            vo.get("folderId")));
      }
      FolderPermissionType perm = FolderPermissionType.valueOf(
        vo.get("permission"));
      getBusiness().getFolderPermissionBusiness().setPermission(
View Full Code Here

 
  private void addComment(String name, String content, String pageUrl)
      throws ServiceException {
    PageEntity page = getDao().getPageDao().getByUrl(pageUrl);
    if (page == null) {
      throw new ServiceException(Messages.get("page_not_found", pageUrl));
    }
    getBusiness().getCommentBusiness().addComment(name, content, page);
  }
View Full Code Here

TOP

Related Classes of org.vosao.service.ServiceException

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.