Package com.dotmarketing.business

Examples of com.dotmarketing.business.DotStateException


  public File copy(File source, Folder destination, boolean forceOverwrite, User user, boolean respectFrontendRoles)
      throws DotDataException, DotSecurityException {
   
    if(!isLegacyFilesSupported()){
      throw new DotStateException("File Assets have been disabled.");
    }

    if (!permissionAPI.doesUserHavePermission(source, PermissionAPI.PERMISSION_READ, user, respectFrontendRoles)) {
      throw new DotSecurityException("You don't have permission to read the source file.");
    }
View Full Code Here


   * @throws IOException
   * @throws DotDataException
   */
  public  void clearIndex(String indexName) throws DotStateException, IOException, DotDataException{
    if(indexName == null || !indexExists(indexName)){
      throw new DotStateException("Index" + indexName + " does not exist");
    }

        AdminLogger.log(this.getClass(), "clearIndex", "Trying to clear index: " + indexName);

        Map<String, ClusterIndexHealth> map = getClusterHealth();
View Full Code Here

   * Returns a single child inode of the specified class. If no child is
   * found, a new instance is returned
   */
  public static Object getChildOfClass(Inode inode, Class c) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    try {
      String tableName = ((Inode) c.newInstance()).getType();
      HibernateUtil dh = new HibernateUtil(c);
      String sql = "SELECT {" + tableName + ".*} from " + tableName + " " + tableName + ", tree tree, inode "
View Full Code Here

     */
  }

  public static Object getChildOfClassbyCondition(Inode inode, Class c, String condition) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    try {
      String tableName = ((Inode) c.newInstance()).getType();
      HibernateUtil dh = new HibernateUtil(c);
      String sql = "SELECT {" + tableName + ".*} from " + tableName + " " + tableName + ", tree tree, inode "
View Full Code Here

  }

  public static Object getChildOfClassByRelationTypeAndCondition(String inode, Class c, String relationType,
      String condition) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    try {
      String tableName = ((Inode) c.newInstance()).getType();
      HibernateUtil dh = new HibernateUtil(c);
      String sql = "SELECT {" + tableName + ".*} from " + tableName + " " + tableName + ", tree tree, inode "
View Full Code Here

   * Returns a single child inode of the specified class that also has the
   * relation type. If no child is found, a new instance is returned
   */
  public static Object getChildOfClassByRelationType(Inode p, Class c, String relationType) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    try {
      String tableName = ((Inode) c.newInstance()).getType();
      HibernateUtil dh = new HibernateUtil(c);

View Full Code Here

    return getChildrenClass(p, c, 0, 0);
  }

  public static java.util.List getChildrenClass(Inode p, Class c, int limit, int offset) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    try {
      String tableName = ((Inode) c.newInstance()).getType();
      HibernateUtil dh = new HibernateUtil(c);
View Full Code Here

    return getChildrenClass(p, c, orderBy, 0, 0);
  }

  public static java.util.List getChildrenClass(Inode p, Class c, String orderBy, int limit, int offset) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    try {

      String tableName = ((Inode) c.newInstance()).getType();
      HibernateUtil dh = new HibernateUtil(c);
View Full Code Here

    return getChildrenClassByCondition(p, c, condition, 0, 0);
  }

  public static java.util.List getChildrenClassByCondition(Inode p, Class c, String condition, int limit, int offset) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    try {
      String tableName = ((Inode) c.newInstance()).getType();
      HibernateUtil dh = new HibernateUtil(c);
View Full Code Here

    return getChildrenClassByOrder(p, c, order, 0, 0);
  }

  public static java.util.List getChildrenClassByOrder(Inode p, Class c, String order, int limit, int offset) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    try {
      String tableName = ((Inode) c.newInstance()).getType();
      HibernateUtil dh = new HibernateUtil(c);
View Full Code Here

TOP

Related Classes of com.dotmarketing.business.DotStateException

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.