|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.esupportail.portal.channels.CStockage.channelAction.injac.actions.MetadataManagerAction
Id: MetadataManagerAction.java,v 1.0 27 oct. 2004 Copyright (c) 2004 Esup Portail (www.esup-portail.org) Classes: MetadataManagerAction Original Author: Yohan Colmant Actions of the metadata management
Field Summary | |
static java.lang.String |
EDIT_DOC_FROM_CLIPBOARD
If we are editing a document form the clipboard |
static java.lang.String |
EDIT_DOC_FROM_UPLOAD
If we are editing a document form the upload |
static java.lang.String |
EDIT_OLD_DOC
If we are re-editing an existing document |
protected static Log |
log
Logger object |
static java.lang.String |
PUBLISH_DOC_FROM_CLIPBOARD
If we are publishing a document form the clipboard |
static java.lang.String |
PUBLISH_DOC_FROM_UPLOAD
If we are publishing a document form the upload |
static java.lang.String |
PUBLISH_EDITED_DOC
If we are publishing a document wich have still been edited before |
static java.lang.String |
REJECT_DOC
If we are rejecting a document wich have still been edited before |
static java.lang.String |
SET_METADATA
If we are only setting metadata |
Constructor Summary | |
MetadataManagerAction()
|
Method Summary | |
private static java.lang.StringBuffer |
editDocument(java.lang.StringBuffer stylesheet,
java.util.ArrayList spaces,
java.util.ArrayList metadataToSet,
java.lang.String userPortalLogin,
java.util.Vector userGroups,
Space currentSpace,
DirectoryProperties directoryProperties,
java.lang.String documentFullPath,
java.lang.String currentSortType)
Edit the document and return the xml for the next action |
private static java.lang.StringBuffer |
generateXmlForMetadataSettings(java.util.ArrayList metadataToSet,
java.lang.String userPortalLogin,
Space currentSpace,
java.lang.String documentName,
java.lang.String documentPath,
java.lang.String actionType)
Generate the xml for the metadata setting |
private static java.lang.Object[] |
getInputStream(org.jasig.portal.ChannelRuntimeData runtimeData,
Space currentSpace)
Start the upload |
private static java.lang.StringBuffer |
publishDocument(java.lang.StringBuffer stylesheet,
java.util.ArrayList spaces,
java.util.ArrayList metadataToSet,
java.lang.String userPortalLogin,
java.util.Vector userGroups,
Space currentSpace,
DirectoryProperties directoryProperties,
java.lang.String documentFullPath,
java.lang.String currentSortType)
Publish the document and return the xml for the next action |
private static java.lang.StringBuffer |
rejectDocument(java.lang.StringBuffer stylesheet,
java.util.ArrayList spaces,
java.util.ArrayList metadataToSet,
java.lang.String userPortalLogin,
java.util.Vector userGroups,
Space currentSpace,
DirectoryProperties directoryProperties,
java.lang.String documentFullPath,
java.lang.String currentSortType)
Reject the document and return the xml for the next action |
static java.lang.StringBuffer |
renderXmlMetadataManager(org.jasig.portal.ChannelRuntimeData runtimeData,
java.lang.StringBuffer stylesheet,
java.util.ArrayList spaces,
java.util.ArrayList metadataToSet,
java.lang.String userPortalLogin,
java.util.Vector userGroups,
Space currentSpace,
DirectoryProperties directoryProperties,
BufferAction buffer,
java.lang.String currentSortType)
Generate the xml for the metadata management |
private static java.lang.StringBuffer |
setMetadataOnDocument(java.lang.StringBuffer stylesheet,
java.util.ArrayList spaces,
java.util.ArrayList metadataToSet,
java.lang.String userPortalLogin,
java.util.Vector userGroups,
Space currentSpace,
DirectoryProperties directoryProperties,
java.lang.String documentFullPath,
java.lang.String currentSortType)
Set the metadata on document and return the xml for the next action |
private static void |
setMetadataToSet(org.jasig.portal.ChannelRuntimeData runtimeData,
java.util.ArrayList metadataToSet,
java.lang.String userPortalLogin,
Space currentSpace,
DirectoryProperties directoryProperties,
java.lang.String documentName,
java.lang.String documentPath,
java.lang.String actionType,
BufferAction buffer)
Set the metadata list we want to set |
private static java.lang.StringBuffer |
submitMetadataManager(org.jasig.portal.ChannelRuntimeData runtimeData,
java.lang.StringBuffer stylesheet,
java.util.ArrayList spaces,
java.util.ArrayList metadataToSet,
java.lang.String userPortalLogin,
java.util.Vector userGroups,
Space currentSpace,
DirectoryProperties directoryProperties,
java.lang.String documentName,
java.lang.String documentPath,
java.lang.String actionType,
BufferAction buffer,
java.lang.String currentSortType)
Generate the xml and submit the metadata |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final Log log
public static final java.lang.String EDIT_DOC_FROM_CLIPBOARD
public static final java.lang.String EDIT_DOC_FROM_UPLOAD
public static final java.lang.String EDIT_OLD_DOC
public static final java.lang.String SET_METADATA
public static final java.lang.String PUBLISH_DOC_FROM_CLIPBOARD
public static final java.lang.String PUBLISH_DOC_FROM_UPLOAD
public static final java.lang.String PUBLISH_EDITED_DOC
public static final java.lang.String REJECT_DOC
Constructor Detail |
public MetadataManagerAction()
Method Detail |
private static java.lang.Object[] getInputStream(org.jasig.portal.ChannelRuntimeData runtimeData, Space currentSpace) throws ChannelException
runtimeData
- the runtime data channel object
ChannelException
public static java.lang.StringBuffer renderXmlMetadataManager(org.jasig.portal.ChannelRuntimeData runtimeData, java.lang.StringBuffer stylesheet, java.util.ArrayList spaces, java.util.ArrayList metadataToSet, java.lang.String userPortalLogin, java.util.Vector userGroups, Space currentSpace, DirectoryProperties directoryProperties, BufferAction buffer, java.lang.String currentSortType) throws ChannelException
runtimeData
- the channel runtime datastylesheet
- the stylesheet usedspaces
- the spaces listmetadataToSet
- the metadata list to setuserPortalLogin
- the user portal loginuserGroups
- the user portal groupscurrentSpace
- the current spacedirectoryProperties
- the current directory propertiesbuffer
- the buffer used for the clipboardcurrentSortType
- The current and default sort type for the resources
ChannelException
private static java.lang.StringBuffer submitMetadataManager(org.jasig.portal.ChannelRuntimeData runtimeData, java.lang.StringBuffer stylesheet, java.util.ArrayList spaces, java.util.ArrayList metadataToSet, java.lang.String userPortalLogin, java.util.Vector userGroups, Space currentSpace, DirectoryProperties directoryProperties, java.lang.String documentName, java.lang.String documentPath, java.lang.String actionType, BufferAction buffer, java.lang.String currentSortType) throws ChannelException
runtimeData
- the channel runtime datastylesheet
- the stylesheet usedspaces
- the spaces listmetadataToSet
- the metadata list to setuserPortalLogin
- the user portal loginuserGroups
- the user portal groupscurrentSpace
- the current spacedirectoryProperties
- the current directory propertiesdocumentName
- the name of the document we want to set metadatadocumentPath
- the path of the document we want to set metadataactionType
- the action type. For example EDIT_NEW_DOC, ....buffer
- the buffer used for the clipboardcurrentSortType
- The current and default sort type for the resources
ChannelException
private static void setMetadataToSet(org.jasig.portal.ChannelRuntimeData runtimeData, java.util.ArrayList metadataToSet, java.lang.String userPortalLogin, Space currentSpace, DirectoryProperties directoryProperties, java.lang.String documentName, java.lang.String documentPath, java.lang.String actionType, BufferAction buffer) throws ChannelException
runtimeData
- the channel runtime datametadataToSet
- the metadata list to setuserPortalLogin
- the user portal logincurrentSpace
- the current spacedirectoryProperties
- the current directory propertiesdocumentName
- the name of the document we want to set metadatadocumentPath
- the path of the document we want to set metadataactionType
- the action type. For example EDIT_NEW_DOC, ....
ChannelException
private static java.lang.StringBuffer generateXmlForMetadataSettings(java.util.ArrayList metadataToSet, java.lang.String userPortalLogin, Space currentSpace, java.lang.String documentName, java.lang.String documentPath, java.lang.String actionType)
metadataToSet
- the metadata list to setuserPortalLogin
- the user portal logincurrentSpace
- the current spacedocumentName
- the name of the document we want to set metadatadocumentPath
- the path of the document we want to set metadataactionType
- the action type. For example EDIT_NEW_DOC, ....
private static java.lang.StringBuffer setMetadataOnDocument(java.lang.StringBuffer stylesheet, java.util.ArrayList spaces, java.util.ArrayList metadataToSet, java.lang.String userPortalLogin, java.util.Vector userGroups, Space currentSpace, DirectoryProperties directoryProperties, java.lang.String documentFullPath, java.lang.String currentSortType) throws ServerException, MetadataException
stylesheet
- the stylesheet usedspaces
- the spaces listmetadataToSet
- the metadata list to setuserPortalLogin
- the user portal loginuserGroups
- the user portal groupscurrentSpace
- the current spacedirectoryProperties
- the current directory propertiesdocumentFullPath
- the full path of the document we want to set metadatacurrentSortType
- The current and default sort type for the resources
ServerException
MetadataException
private static java.lang.StringBuffer editDocument(java.lang.StringBuffer stylesheet, java.util.ArrayList spaces, java.util.ArrayList metadataToSet, java.lang.String userPortalLogin, java.util.Vector userGroups, Space currentSpace, DirectoryProperties directoryProperties, java.lang.String documentFullPath, java.lang.String currentSortType) throws ServerException, MetadataException
stylesheet
- the stylesheet usedspaces
- the spaces listmetadataToSet
- the metadata list to setuserPortalLogin
- the user portal loginuserGroups
- the user portal groupscurrentSpace
- the current spacedirectoryProperties
- the current directory propertiesdocumentFullPath
- the full path of the document we want to set metadatacurrentSortType
- The current and default sort type for the resources
ServerException
MetadataException
private static java.lang.StringBuffer publishDocument(java.lang.StringBuffer stylesheet, java.util.ArrayList spaces, java.util.ArrayList metadataToSet, java.lang.String userPortalLogin, java.util.Vector userGroups, Space currentSpace, DirectoryProperties directoryProperties, java.lang.String documentFullPath, java.lang.String currentSortType) throws ServerException, MetadataException
stylesheet
- the stylesheet usedspaces
- the spaces listmetadataToSet
- the metadata list to setuserPortalLogin
- the user portal loginuserGroups
- the user portal groupscurrentSpace
- the current spacedirectoryProperties
- the current directory propertiesdocumentFullPath
- the full path of the document we want to set metadatacurrentSortType
- The current and default sort type for the resources
ServerException
MetadataException
private static java.lang.StringBuffer rejectDocument(java.lang.StringBuffer stylesheet, java.util.ArrayList spaces, java.util.ArrayList metadataToSet, java.lang.String userPortalLogin, java.util.Vector userGroups, Space currentSpace, DirectoryProperties directoryProperties, java.lang.String documentFullPath, java.lang.String currentSortType) throws ServerException, MetadataException
stylesheet
- the stylesheet usedspaces
- the spaces listmetadataToSet
- the metadata list to setuserPortalLogin
- the user portal loginuserGroups
- the user portal groupscurrentSpace
- the current spacedirectoryProperties
- the current directory propertiesdocumentFullPath
- the full path of the document we want to set metadatacurrentSortType
- The current and default sort type for the resources
ServerException
MetadataException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |