Package com.dotmarketing.beans

Examples of com.dotmarketing.beans.WebAsset


          if(id!=null && id.getAssetType().equals("contentlet")){
            Contentlet cont  = APILocator.getContentletAPI().find(inode, user, false);
            APILocator.getContentletAPI().unpublish(cont, user, false);
            ret = true;
          }else{
            WebAsset asset = (WebAsset) InodeFactory.getInode(inode, Inode.class);
            Folder parent = (Folder)folderAPI.findParentFolder(asset, user, false);
            ret = WebAssetFactory.unPublishAsset(asset, user.getUserId(), parent);
          }
          HibernateUtil.commitTransaction();
      }catch(Exception e){
View Full Code Here


        Contentlet cont  = APILocator.getContentletAPI().find(inode, user, false);
        APILocator.getContentletAPI().archive(cont, user, false);
        return true;
      }

        WebAsset asset = (WebAsset) InodeFactory.getInode(inode, Inode.class);

        if (!permissionAPI.doesUserHavePermission(asset, PERMISSION_WRITE, user))
      throw new DotRuntimeException("The user doesn't have the required permissions.");

        return WebAssetFactory.archiveAsset(asset, user.getUserId());
View Full Code Here

        Contentlet cont  = APILocator.getContentletAPI().find(inode, user, false);
        APILocator.getContentletAPI().unarchive(cont, user, false);
        return true;
      }

        WebAsset asset = (WebAsset) InodeFactory.getInode(inode, Inode.class);


        if (!permissionAPI.doesUserHavePermission(asset, PERMISSION_WRITE, user))
      throw new DotRuntimeException("The user doesn't have the required permissions.");
View Full Code Here

        Contentlet cont  = APILocator.getContentletAPI().find(inode, user, false);
        APILocator.getContentletAPI().unlock(cont, user, false);
        return true;
      }

        WebAsset asset = (WebAsset) InodeFactory.getInode(inode, Inode.class);

        if (!permissionAPI.doesUserHavePermission(asset, PERMISSION_WRITE, user))
      throw new DotRuntimeException("The user doesn't have the required permissions.");

        WebAssetFactory.unLockAsset(asset);
View Full Code Here

        APILocator.getContentletAPI().delete(cont, user, false);
        return true;
      }


        WebAsset asset = (WebAsset) InodeFactory.getInode(inode, Inode.class);

        //I verify the permissions in the methods but I could change that
        //if (!PermissionFactory.doesUserHavePermission(asset, PERMISSION_WRITE, user))
    //  throw new DotRuntimeException("The user doesn't have the required permissions.");
View Full Code Here

TOP

Related Classes of com.dotmarketing.beans.WebAsset

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.