org.alfresco.web.bean.content
Class DocumentPropertiesDialog

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

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

Backing bean for the edit document properties dialog

See Also:
Serialized Form

Field Summary
protected  BrowseBean browseBean
           
 
Constructor Summary
DocumentPropertiesDialog()
           
 
Method Summary
 BrowseBean getBrowseBean()
           
 java.util.List getContentTypes()
           
protected  org.alfresco.service.cmr.dictionary.DictionaryService getDictionaryService()
           
 Node getEditableNode()
          Returns the node being edited
protected  org.alfresco.service.cmr.model.FileFolderService getFileFolderService()
           
 org.alfresco.service.cmr.repository.NodeService getNodeService()
           
 boolean getOtherPropertiesPresent()
          Determines whether this document has any other properties other than the default set to display to the user.
 java.util.Map getProperties()
           
 java.lang.String save()
          Event handler used to save the edited properties back to the repository
 void setBrowseBean(BrowseBean browseBean)
           
 void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
          Sets the DictionaryService to use when persisting metadata
 void setFileFolderService(org.alfresco.service.cmr.model.FileFolderService fileFolderService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setupDocumentForAction(javax.faces.event.ActionEvent event)
          Event handler called to setup the document for property editing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

browseBean

protected BrowseBean browseBean
Constructor Detail

DocumentPropertiesDialog

public DocumentPropertiesDialog()
Method Detail

getEditableNode

public Node getEditableNode()
Returns the node being edited

Returns:
The node being edited

setupDocumentForAction

public void setupDocumentForAction(javax.faces.event.ActionEvent event)
Event handler called to setup the document for property editing

Parameters:
event - The event

save

public java.lang.String save()
Event handler used to save the edited properties back to the repository

Returns:
The outcome

getProperties

public java.util.Map getProperties()

getContentTypes

public java.util.List getContentTypes()
Returns:
Returns a list of content types to allow the user to select from

getOtherPropertiesPresent

public boolean getOtherPropertiesPresent()
Determines whether this document has any other properties other than the default set to display to the user.

Returns:
true of there are properties to show, false otherwise

getNodeService

public org.alfresco.service.cmr.repository.NodeService getNodeService()
Returns:
Returns the nodeService.

setNodeService

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

setFileFolderService

public void setFileFolderService(org.alfresco.service.cmr.model.FileFolderService fileFolderService)
Parameters:
fileFolderService - the file and folder model-specific functions

getFileFolderService

protected org.alfresco.service.cmr.model.FileFolderService getFileFolderService()

setDictionaryService

public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Sets the DictionaryService to use when persisting metadata

Parameters:
dictionaryService - The DictionaryService

getDictionaryService

protected org.alfresco.service.cmr.dictionary.DictionaryService getDictionaryService()

getBrowseBean

public BrowseBean getBrowseBean()
Returns:
The BrowseBean

setBrowseBean

public void setBrowseBean(BrowseBean browseBean)
Parameters:
browseBean - The BrowseBean to set.


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