org.alfresco.web.bean.ajax
Class PickerBean

java.lang.Object
  extended by org.alfresco.web.bean.ajax.PickerBean
All Implemented Interfaces:
java.io.Serializable

public class PickerBean
extends java.lang.Object
implements java.io.Serializable

Bean backing the ajax requests for the ajax based picker components.

See Also:
Serialized Form

Constructor Summary
PickerBean()
           
 
Method Summary
 void getCategoryNodes()
          Return the JSON objects representing a list of categories.
 void getFileFolderNodes()
          Return the JSON objects representing a list of cm:folder and cm:content nodes.
 void getFolderNodes()
           
 void getTagNodes()
          Return the JSON objects representing a list of cm:folder nodes.
 void setCategoryService(org.alfresco.service.cmr.search.CategoryService categoryService)
           
 void setFileFolderService(org.alfresco.service.cmr.model.FileFolderService fileFolderService)
           
 void setInternalNodeService(org.alfresco.service.cmr.repository.NodeService internalNodeService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PickerBean

public PickerBean()
Method Detail

setCategoryService

public void setCategoryService(org.alfresco.service.cmr.search.CategoryService categoryService)
Parameters:
categoryService - The categoryService to set

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Parameters:
nodeService - The nodeService to set

setInternalNodeService

public void setInternalNodeService(org.alfresco.service.cmr.repository.NodeService internalNodeService)
Parameters:
internalNodeService - The internalNodeService to set.

setFileFolderService

public void setFileFolderService(org.alfresco.service.cmr.model.FileFolderService fileFolderService)
Parameters:
fileFolderService - the FileFolderService to set

getCategoryNodes

public void getCategoryNodes()
                      throws java.lang.Exception
Return the JSON objects representing a list of categories. IN: "parent" - null for root categories, else the parent noderef of the categories to retrieve. The pseudo root node 'Categories' is not selectable.

Throws:
java.lang.Exception

getTagNodes

public void getTagNodes()
                 throws java.lang.Exception
Return the JSON objects representing a list of cm:folder nodes. IN: "parent" - noderef (can be null) of the parent to retrieve the child folder nodes for. Null is valid and specifies the Company Home root as the parent. IN: "child" - non-null value of the child noderef to retrieve the siblings for - the parent value returned in the JSON response will be the parent of the specified child. The 16x16 pixel folder icon path is output as the 'icon' property for each child folder.

Throws:
java.lang.Exception

getFolderNodes

public void getFolderNodes()
                    throws java.lang.Exception
Throws:
java.lang.Exception

getFileFolderNodes

public void getFileFolderNodes()
                        throws java.lang.Exception
Return the JSON objects representing a list of cm:folder and cm:content nodes. IN: "parent" - noderef (can be null) of the parent to retrieve the child nodes for. Null is valid and specifies the Company Home root as the parent. IN: "child" - non-null value of the child noderef to retrieve the siblings for - the parent value returned in the JSON response will be the parent of the specified child. IN: "mimetypes" (optional) - if set, a comma separated list of mimetypes to restrict the file list. It is assumed that only files should be selectable, all cm:folder nodes will be marked with the 'selectable:false' property. Therefore the parent (which is a folder) is not selectable. The 16x16 pixel node icon path is output as the 'icon' property for each child, in addition each cm:content node has an property of 'url' for content download.

Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.