|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.esupportail.portal.channels.CWebdav.channelAction.injac.metadata.MetaDataManager
Id: MetaDataManager.java,v 1.0 30 sept. 2004 Copyright (c) 2004 Esup Portail (www.esup-portail.org) Classes: MetaDataManager Original Author: Yohan Colmant A tool metadata manager
Field Summary | |
protected static org.apache.commons.logging.Log |
log
Logger object |
Constructor Summary | |
MetaDataManager()
|
Method Summary | |
static java.lang.String |
getDirectoryType(ServerAccess access,
java.lang.String path)
Get the directory type (document, space, ... ?) |
static java.lang.String |
getDocumentOwner(ServerAccess access,
java.lang.String path)
Get the owner of a document |
static java.lang.String |
getDocumentState(ServerAccess access,
java.lang.String path)
Get the document state: published, refused, waiting, expired... |
static java.lang.String |
getMetadataDescription(ServerAccess access,
java.lang.String path)
Return in the MD description |
static void |
getMetadataEditorsOnSpace(ServerAccess access,
java.lang.String path,
java.util.Vector users,
java.util.Vector groups)
Return the MD : list of editors on the space |
static void |
getMetadataManagersOnSpace(ServerAccess access,
java.lang.String path,
java.util.Vector users,
java.util.Vector groups)
Return the MD : list of managers on the space |
static java.lang.String |
getMetadataRenderingType(ServerAccess access,
java.lang.String path)
Return the rendering type MD that the user have to set |
static java.lang.String |
getMetadataSpaceProfile(ServerAccess access,
java.lang.String path)
Return the list of MD that the user have to set |
static void |
getMetadataWritersOnSpace(ServerAccess access,
java.lang.String path,
java.util.Vector users,
java.util.Vector groups)
Return the MD : list of writers on the space |
static java.util.Date |
getPublicationDateBegin(ServerAccess access,
java.lang.String path)
Get the publication date begin |
static java.util.Date |
getPublicationDateEnd(ServerAccess access,
java.lang.String path)
Get the publication date end |
static java.lang.String |
getRejectCause(ServerAccess access,
java.lang.String path)
Get the refuse message |
private static boolean |
parseXmlUser(java.lang.String property,
java.util.Vector users,
java.util.Vector groups)
Parse the Metadata containing users and groups for a role |
static boolean |
setDirectoryAsPublishedDocument(ServerAccess access,
java.lang.String path)
Set the injac-type metadata of the directory specified by its path to "document" value, and document-state to "published" |
static boolean |
setDirectoryAsRejectedDocument(ServerAccess access,
java.lang.String path)
Set the injac-type metadata of the directory specified by its path to "document" value, and document-state to "refused" |
static boolean |
setDirectoryAsSpace(ServerAccess access,
java.lang.String path)
Set the injac-type metadata of the directory specified by its path to "space" value |
static boolean |
setDirectoryAsWaitingDocument(ServerAccess access,
java.lang.String path)
Set the injac-type metadata of the directory specified by its path to "document" value, and document-state to "waiting" |
static boolean |
setMetadataOnDocument(ServerAccess access,
java.lang.String path,
java.util.ArrayList metadataToSet)
Set the metadata set by user on a document |
static boolean |
setMetadataOnSpace(ServerAccess access,
java.lang.String path,
InjacSpaceManagementProperties smp)
Set the metadata set by manager on a space |
static boolean |
setUserAsDocumentOwner(ServerAccess access,
java.lang.String path,
java.lang.String value)
Set the owner of a document |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final org.apache.commons.logging.Log log
Constructor Detail |
public MetaDataManager()
Method Detail |
public static java.lang.String getDocumentOwner(ServerAccess access, java.lang.String path) throws ServerException
access
- to access the serverpath
- the resource path
ServerException
public static boolean setUserAsDocumentOwner(ServerAccess access, java.lang.String path, java.lang.String value) throws ServerException
access
- to access the serverpath
- the resource pathvalue
- the MD value
ServerException
public static java.lang.String getDirectoryType(ServerAccess access, java.lang.String path) throws ServerException
access
- to access the serverpath
- the resource path
ServerException
public static java.util.Date getPublicationDateBegin(ServerAccess access, java.lang.String path) throws ServerException
access
- to access the serverpath
- the resource path
ServerException
public static java.util.Date getPublicationDateEnd(ServerAccess access, java.lang.String path) throws ServerException
access
- to access the serverpath
- the resource path
ServerException
public static java.lang.String getRejectCause(ServerAccess access, java.lang.String path) throws ServerException
access
- to access the serverpath
- the resource path
ServerException
public static java.lang.String getDocumentState(ServerAccess access, java.lang.String path) throws ServerException
access
- to access the serverpath
- the resource path
ServerException
public static boolean setDirectoryAsSpace(ServerAccess access, java.lang.String path) throws ServerException
access
- to access the serverpath
- the resource path
ServerException
public static boolean setDirectoryAsWaitingDocument(ServerAccess access, java.lang.String path) throws ServerException
access
- to access the serverpath
- the resource path
ServerException
public static boolean setDirectoryAsPublishedDocument(ServerAccess access, java.lang.String path) throws ServerException
access
- to access the serverpath
- the resource path
ServerException
public static boolean setDirectoryAsRejectedDocument(ServerAccess access, java.lang.String path) throws ServerException
access
- to access the serverpath
- the resource path
ServerException
public static boolean setMetadataOnSpace(ServerAccess access, java.lang.String path, InjacSpaceManagementProperties smp) throws ServerException, ApplicationException, PropertiesException
access
- to access the serverpath
- the resource pathsmp
- object containing all properties
ServerException
ApplicationException
PropertiesException
public static boolean setMetadataOnDocument(ServerAccess access, java.lang.String path, java.util.ArrayList metadataToSet) throws ServerException
access
- to access the serverpath
- the resource pathmetadataToSet
- object containing all properties
ServerException
public static java.lang.String getMetadataDescription(ServerAccess access, java.lang.String path) throws ServerException
access
- to access the file serverpath
- the resource path
ServerException
public static java.lang.String getMetadataSpaceProfile(ServerAccess access, java.lang.String path) throws ServerException
access
- to access the file serverpath
- the resource path
ServerException
public static java.lang.String getMetadataRenderingType(ServerAccess access, java.lang.String path) throws ServerException
access
- to access the file serverpath
- the resource path
ServerException
private static boolean parseXmlUser(java.lang.String property, java.util.Vector users, java.util.Vector groups)
property
- the property valueusers
- users completing in this methodgroups
- groups completing in this method
public static void getMetadataWritersOnSpace(ServerAccess access, java.lang.String path, java.util.Vector users, java.util.Vector groups) throws ServerException
access
- the server access objectpath
- the resource pathusers
- the users list to setgroups
- the groups list to set
ServerException
public static void getMetadataEditorsOnSpace(ServerAccess access, java.lang.String path, java.util.Vector users, java.util.Vector groups) throws ServerException
access
- the server access objectpath
- the resource pathusers
- the users list to setgroups
- the groups list to set
ServerException
public static void getMetadataManagersOnSpace(ServerAccess access, java.lang.String path, java.util.Vector users, java.util.Vector groups) throws ServerException
access
- the server access objectpath
- the resource pathusers
- the users list to setgroups
- the groups list to set
ServerException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |