Package net.sourceforge.ztail.core.services

Examples of net.sourceforge.ztail.core.services.ServiceException


   
    if (ent.isRegx()) {
      try {
        rs = compileRegexSearch(ent);
      } catch (PatternSyntaxException e) {
        throw new ServiceException(e);
      }
    } else if (ent.isCaseSensitive()) {
      rs = compileCaseSensitiveSearch(ent);
    } else {
      rs = compileRegularSearch(ent);
View Full Code Here


 
  public void save(BookmarkFolder folder) throws ServiceException {
    try {
      dao.save(folder);
    } catch (SQLException e) {
      throw new ServiceException(e);
    }
  }
View Full Code Here

  }
 
  public void save(BookmarkItem obj) throws ServiceException {
    BookmarkItem _obj = bookmarks.get(obj.getUri().toString());
    if (_obj != null) {
      throw new ServiceException("File allready bookmarked");
    }
   
    try {
      dao.save(obj);
      bookmarks.put(obj.getUri().toString(), obj);
    } catch (SQLException e) {
      throw new ServiceException(e);
    }
  }
View Full Code Here

 
  public void update(BookmarkFolder folder) throws ServiceException {
    try {
      dao.updateName(folder);
    } catch (SQLException e) {
      throw new ServiceException(e);
    }
  }
View Full Code Here

 
  public void update(BookmarkItem obj) throws ServiceException {
    try {
      dao.update(obj);
    } catch (SQLException e) {
      throw new ServiceException(e);
    }
  }
View Full Code Here

    try {
      dao.remove(folder);
      folder.getParent().removeFolder(folder);
    } catch (SQLException e) {
      e.printStackTrace();
      throw new ServiceException(e);
    }
  }
View Full Code Here

    try {
      dao.remove(obj);
      obj.getFolder().removeBookmark(obj);
    } catch (SQLException e) {
      e.printStackTrace();
      throw new ServiceException(e);
    }
  }
View Full Code Here

  }
 
  public BookmarkItem getBookmarkByURI(String uri) throws ServiceException {
    BookmarkItem _obj = bookmarks.get(uri);
    if (_obj == null) {
      throw new ServiceException("No bookmark with such URI");
    }
   
    return _obj;
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.ztail.core.services.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.