|
|||||||||||
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_NEW_DOC
If we are editing a new document |
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_EDITED_DOC
If we are publishing a document wich have still been edited before |
static java.lang.String |
PUBLISH_PERSONNAL_DOC
If we are publishing a new document from another space |
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)
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.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)
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)
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)
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)
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)
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_NEW_DOC
public static final java.lang.String EDIT_OLD_DOC
public static final java.lang.String SET_METADATA
public static final java.lang.String PUBLISH_PERSONNAL_DOC
public static final java.lang.String PUBLISH_EDITED_DOC
public static final java.lang.String REJECT_DOC
Constructor Detail |
public MetadataManagerAction()
Method Detail |
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) 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 clipboard
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) 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 clipboard
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) 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 metadata
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) 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 metadata
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) 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 metadata
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) 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 metadata
ServerException
MetadataException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |