|
CStockage 4.2_beta-RC-1 API Documentation |
|||||||||
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.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
Constructor Summary | |
MetaDataManager()
|
Method Summary | |
static java.lang.String |
getDirectoryType(Space currentSpace,
java.lang.String path)
Get the directory type (document, space, ... ?) |
static java.lang.String |
getDocumentOwner(Space currentSpace,
java.lang.String path)
Get the owner of a document |
static java.lang.String |
getDocumentState(Space currentSpace,
java.lang.String path)
Get the document state: published, refused, waiting, expired... |
static java.lang.String |
getMetadataDescription(Space currentSpace,
java.lang.String path)
Return in the MD description |
static void |
getMetadataEditorsOnSpace(Space currentSpace,
java.lang.String path,
java.util.Vector users,
java.util.Vector groups)
Return the MD : list of editors on the space |
static void |
getMetadataManagersOnSpace(Space currentSpace,
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(Space currentSpace,
java.lang.String path)
Return the rendering type MD that the user have to set |
static java.lang.String |
getMetadataSpaceProfile(Space currentSpace,
java.lang.String path)
Return the list of MD that the user have to set |
static void |
getMetadataWritersOnSpace(Space currentSpace,
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(Space currentSpace,
java.lang.String path)
Get the publication date begin |
static java.util.Date |
getPublicationDateEnd(Space currentSpace,
java.lang.String path)
Get the publication date end |
static java.lang.String |
getRejectCause(Space currentSpace,
java.lang.String path)
Get the refuse message |
static java.lang.String |
getSpaceRootDocumentName(Space currentSpace,
java.lang.String path)
Return the root document name of a space |
static boolean |
setDirectoryAsPublishedDocument(Space currentSpace,
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(Space currentSpace,
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(Space currentSpace,
java.lang.String path)
Set the injac-type metadata of the directory specified by its path to "space" value |
static boolean |
setDirectoryAsWaitingDocument(Space currentSpace,
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(Space currentSpace,
java.lang.String path,
java.util.ArrayList metadataToSet)
Set the metadata set by user on a document |
static boolean |
setMetadataOnSpace(Space currentSpace,
java.lang.String path,
InjacSpaceManagementProperties smp)
Set the metadata set by manager on a space |
static boolean |
setPublicationDateBegin(Space currentSpace,
java.lang.String path,
java.lang.String date)
Set the publication date begin |
static boolean |
setPublicationDateEnd(Space currentSpace,
java.lang.String path,
java.lang.String date)
Set the publication date end |
static boolean |
setRejectCause(Space currentSpace,
java.lang.String path,
java.lang.String cause)
Set the refuse message |
static boolean |
setSpaceRootDocumentName(Space currentSpace,
java.lang.String path,
java.lang.String documentName)
Set the root-file-name metadata of the directory specified by its path |
static boolean |
setUserAsDocumentOwner(Space currentSpace,
java.lang.String path,
java.lang.String value)
Set the owner of a document |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MetaDataManager()
Method Detail |
public static java.lang.String getDocumentOwner(Space currentSpace, java.lang.String path) throws ServerException
currentSpace
- the current space usedpath
- the resource path
ServerException
public static boolean setUserAsDocumentOwner(Space currentSpace, java.lang.String path, java.lang.String value) throws ServerException
currentSpace
- the current space usedpath
- the resource pathvalue
- the MD value
ServerException
public static java.lang.String getDirectoryType(Space currentSpace, java.lang.String path) throws ServerException
currentSpace
- the current space usedpath
- the resource path
ServerException
public static java.util.Date getPublicationDateBegin(Space currentSpace, java.lang.String path) throws ServerException
currentSpace
- the current space usedpath
- the resource path
ServerException
public static java.util.Date getPublicationDateEnd(Space currentSpace, java.lang.String path) throws ServerException
currentSpace
- the current space usedpath
- the resource path
ServerException
public static boolean setPublicationDateBegin(Space currentSpace, java.lang.String path, java.lang.String date) throws ServerException
currentSpace
- the current space usedpath
- the resource pathdate
- the date value
ServerException
public static boolean setPublicationDateEnd(Space currentSpace, java.lang.String path, java.lang.String date) throws ServerException
currentSpace
- the current space usedpath
- the resource pathdate
- the date value
ServerException
public static java.lang.String getRejectCause(Space currentSpace, java.lang.String path) throws ServerException
currentSpace
- the current space usedpath
- the resource path
ServerException
public static boolean setRejectCause(Space currentSpace, java.lang.String path, java.lang.String cause) throws ServerException
currentSpace
- the current space usedpath
- the resource pathcause
- the metadata value
ServerException
public static java.lang.String getDocumentState(Space currentSpace, java.lang.String path) throws ServerException
currentSpace
- the current space usedpath
- the resource path
ServerException
public static boolean setDirectoryAsSpace(Space currentSpace, java.lang.String path) throws ServerException
currentSpace
- the current space usedpath
- the resource path
ServerException
public static boolean setDirectoryAsWaitingDocument(Space currentSpace, java.lang.String path) throws ServerException
currentSpace
- the current space usedpath
- the resource path
ServerException
public static boolean setDirectoryAsPublishedDocument(Space currentSpace, java.lang.String path) throws ServerException
currentSpace
- the current space usedpath
- the resource path
ServerException
public static boolean setDirectoryAsRejectedDocument(Space currentSpace, java.lang.String path) throws ServerException
currentSpace
- the current space usedpath
- the resource path
ServerException
public static boolean setMetadataOnSpace(Space currentSpace, java.lang.String path, InjacSpaceManagementProperties smp) throws ServerException, ApplicationException, PropertiesException
currentSpace
- the current space usedpath
- the resource pathsmp
- object containing all properties
ServerException
ApplicationException
PropertiesException
public static boolean setMetadataOnDocument(Space currentSpace, java.lang.String path, java.util.ArrayList metadataToSet) throws ServerException
currentSpace
- the current space usedpath
- the resource pathmetadataToSet
- object containing all properties
ServerException
public static java.lang.String getMetadataDescription(Space currentSpace, java.lang.String path) throws ServerException
currentSpace
- the current space usedpath
- the resource path
ServerException
public static java.lang.String getMetadataSpaceProfile(Space currentSpace, java.lang.String path) throws ServerException
currentSpace
- the current space usedpath
- the resource path
ServerException
public static java.lang.String getMetadataRenderingType(Space currentSpace, java.lang.String path) throws ServerException
currentSpace
- the current space usedpath
- the resource path
ServerException
public static void getMetadataWritersOnSpace(Space currentSpace, java.lang.String path, java.util.Vector users, java.util.Vector groups) throws ServerException
currentSpace
- the current space usedpath
- the resource pathusers
- the users list to setgroups
- the groups list to set
ServerException
public static void getMetadataEditorsOnSpace(Space currentSpace, java.lang.String path, java.util.Vector users, java.util.Vector groups) throws ServerException
currentSpace
- the current space usedpath
- the resource pathusers
- the users list to setgroups
- the groups list to set
ServerException
public static void getMetadataManagersOnSpace(Space currentSpace, java.lang.String path, java.util.Vector users, java.util.Vector groups) throws ServerException
currentSpace
- the current space usedpath
- the resource pathusers
- the users list to setgroups
- the groups list to set
ServerException
public static boolean setSpaceRootDocumentName(Space currentSpace, java.lang.String path, java.lang.String documentName) throws ServerException
currentSpace
- the current space usedpath
- the resource pathdocumentName
- the name of the root document file
ServerException
public static java.lang.String getSpaceRootDocumentName(Space currentSpace, java.lang.String path) throws ServerException
currentSpace
- the current space usedpath
- the resource path
ServerException
|
CStockage 4.2_beta-RC-1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |