org.rivetlogic.scar.listeners
Class UploadContentListener
java.lang.Object
org.rivetlogic.scar.listeners.UploadContentListener
- All Implemented Interfaces:
- java.io.Serializable
@Name(value="listener.uploadcontent")
@Scope(value=SESSION)
public class UploadContentListener
- extends java.lang.Object
- implements java.io.Serializable
Seam listener used to back the upload modal
panel.
- Author:
- Rivet Logic Corporation
- See Also:
- Serialized Form
|
Method Summary |
protected java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> |
createPropertiesMap(java.lang.String filename)
|
protected java.lang.String |
fixFilename(java.lang.String filename)
|
protected boolean |
isDocument(com.rivetlogic.core.cma.repo.Node node)
|
void |
upload(org.richfaces.event.UploadEvent event)
|
protected void |
writeContent(org.alfresco.service.cmr.repository.NodeRef fileRef,
java.io.File file)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UploadContentListener
public UploadContentListener()
upload
public void upload(org.richfaces.event.UploadEvent event)
fixFilename
protected java.lang.String fixFilename(java.lang.String filename)
createPropertiesMap
protected java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> createPropertiesMap(java.lang.String filename)
isDocument
protected boolean isDocument(com.rivetlogic.core.cma.repo.Node node)
writeContent
protected void writeContent(org.alfresco.service.cmr.repository.NodeRef fileRef,
java.io.File file)
throws org.alfresco.service.cmr.lock.NodeLockedException,
com.rivetlogic.core.cma.exception.InvalidTicketException,
com.rivetlogic.core.cma.exception.CmaRuntimeException,
java.io.FileNotFoundException
- Throws:
org.alfresco.service.cmr.lock.NodeLockedException
com.rivetlogic.core.cma.exception.InvalidTicketException
com.rivetlogic.core.cma.exception.CmaRuntimeException
java.io.FileNotFoundException
Copyright 2008, Rivet Logic Corporation.