com.dotmarketing.portlets.browser.ajax
Class BrowserAjax

java.lang.Object
  extended by com.dotmarketing.portlets.browser.ajax.BrowserAjax

public class BrowserAjax
extends java.lang.Object

Author:
david

Constructor Summary
BrowserAjax()
           
 
Method Summary
 boolean archiveAsset(long inode)
           
 java.util.Map<java.lang.String,java.lang.Object> changeAssetMenuOrder(long inode, int newValue)
           
 void closeFolderTree(long parentInode)
          Action called everytime a user closes a folder using the - (left hand side)
 boolean copyFile(long inode, long newFolder)
           
 boolean copyFolder(long inode, long newFolder)
           
 boolean copyHTMLPage(long inode, long newFolder)
           
 boolean copyLink(long inode, long newFolder)
           
 java.util.List<java.util.Map> getTree()
          This methods is used to load the entire tree by first time.
 boolean moveFile(long inode, long folder)
           
 boolean moveFolder(long inode, long newFolder)
           
 boolean moveHTMLPage(long inode, long folder)
           
 boolean moveLink(long inode, long folder)
           
 java.util.List<java.util.Map<java.lang.String,java.lang.Object>> openFolderContent(long parentInode, java.lang.String sortBy, boolean showArchived)
           
 java.util.List<java.util.Map> openFolderTree(long parentInode)
          Action called everytime a user opens a folder using the + (left hand side)
 java.util.List<java.util.Map> openHostTree(long hostInode)
          Action called everytime a user opens a folder using the + (left hand side)
 boolean publishAsset(long inode)
           
 java.util.Map<java.lang.String,java.lang.Object> renameFile(long inode, java.lang.String newName)
           
 java.util.Map<java.lang.String,java.lang.Object> renameFolder(long inode, java.lang.String newName)
           
 java.util.Map<java.lang.String,java.lang.Object> renameHTMLPage(long inode, java.lang.String newName)
           
 java.util.Map<java.lang.String,java.lang.Object> renameLink(long inode, java.lang.String newName)
           
 boolean unArchiveAsset(long inode)
           
 boolean unlockAsset(long inode)
           
 boolean unPublishAsset(long inode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserAjax

public BrowserAjax()
Method Detail

getTree

public java.util.List<java.util.Map> getTree()
This methods is used to load the entire tree by first time.

Returns:
The whole folders tree structure.

openHostTree

public java.util.List<java.util.Map> openHostTree(long hostInode)
Action called everytime a user opens a folder using the + (left hand side)

Parameters:
parentInode - Parent folder to be opened
Returns:
The subtree structure of folders

openFolderTree

public java.util.List<java.util.Map> openFolderTree(long parentInode)
Action called everytime a user opens a folder using the + (left hand side)

Parameters:
parentInode - Parent folder to be opened
Returns:
The subtree structure of folders

closeFolderTree

public void closeFolderTree(long parentInode)
Action called everytime a user closes a folder using the - (left hand side)

Parameters:
parentInode - Parent folder to be opened

openFolderContent

public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> openFolderContent(long parentInode,
                                                                                          java.lang.String sortBy,
                                                                                          boolean showArchived)

renameFolder

public java.util.Map<java.lang.String,java.lang.Object> renameFolder(long inode,
                                                                     java.lang.String newName)

copyFolder

public boolean copyFolder(long inode,
                          long newFolder)
                   throws java.lang.Exception
Throws:
java.lang.Exception

moveFolder

public boolean moveFolder(long inode,
                          long newFolder)
                   throws java.lang.Exception
Throws:
java.lang.Exception

renameFile

public java.util.Map<java.lang.String,java.lang.Object> renameFile(long inode,
                                                                   java.lang.String newName)
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

copyFile

public boolean copyFile(long inode,
                        long newFolder)
                 throws java.lang.Exception
Throws:
java.lang.Exception

moveFile

public boolean moveFile(long inode,
                        long folder)
                 throws java.lang.Exception
Throws:
java.lang.Exception

renameHTMLPage

public java.util.Map<java.lang.String,java.lang.Object> renameHTMLPage(long inode,
                                                                       java.lang.String newName)
                                                                throws java.lang.Exception
Throws:
java.lang.Exception

copyHTMLPage

public boolean copyHTMLPage(long inode,
                            long newFolder)
                     throws java.lang.Exception
Throws:
java.lang.Exception

moveHTMLPage

public boolean moveHTMLPage(long inode,
                            long folder)
                     throws java.lang.Exception
Throws:
java.lang.Exception

renameLink

public java.util.Map<java.lang.String,java.lang.Object> renameLink(long inode,
                                                                   java.lang.String newName)
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

copyLink

public boolean copyLink(long inode,
                        long newFolder)
                 throws java.lang.Exception
Throws:
java.lang.Exception

moveLink

public boolean moveLink(long inode,
                        long folder)
                 throws java.lang.Exception
Throws:
java.lang.Exception

publishAsset

public boolean publishAsset(long inode)
                     throws java.lang.Exception
Throws:
java.lang.Exception

unPublishAsset

public boolean unPublishAsset(long inode)
                       throws java.lang.Exception
Throws:
java.lang.Exception

archiveAsset

public boolean archiveAsset(long inode)
                     throws java.lang.Exception
Throws:
java.lang.Exception

unArchiveAsset

public boolean unArchiveAsset(long inode)
                       throws java.lang.Exception
Throws:
java.lang.Exception

unlockAsset

public boolean unlockAsset(long inode)
                    throws java.lang.Exception
Throws:
java.lang.Exception

changeAssetMenuOrder

public java.util.Map<java.lang.String,java.lang.Object> changeAssetMenuOrder(long inode,
                                                                             int newValue)
                                                                      throws ActionException
Throws:
ActionException


Copyright © 2006 Dotmarketing, Inc. All Rights Reserved.