gr.uoa.di.madgik.environment.cms
Class ContentManagementSystemProvider

java.lang.Object
  extended by gr.uoa.di.madgik.environment.cms.ContentManagementSystemProvider
All Implemented Interfaces:
IContentManagementSystemProvider

public class ContentManagementSystemProvider
extends Object
implements IContentManagementSystemProvider


Constructor Summary
ContentManagementSystemProvider()
           
 
Method Summary
 void AddAlternative(String collectionId, String documentId, DocumentAlternative alternative, EnvHintCollection Hints)
           
 String AddDocument(Document document, EnvHintCollection Hints)
           
 void AddMetadata(String collectionId, String documentId, DocumentMetadata metadata, EnvHintCollection Hints)
           
 void AddPart(String collectionId, String documentId, DocumentPart part, EnvHintCollection Hints)
           
 String CreateCollection(Collection col, EnvHintCollection Hints)
           
 void DeleteAlternative(String collectionId, String documentId, DocumentAlternative alternative, EnvHintCollection Hints)
           
 void DeleteCollection(String collectionId, EnvHintCollection Hints)
           
 void DeleteDocument(String collectionId, String documentId, EnvHintCollection Hints)
           
 void DeleteMetadata(String collectionId, String documentId, DocumentMetadata metadata, EnvHintCollection Hints)
           
 List<Collection> FindCollectionById(String collectionId, EnvHintCollection Hints)
           
 List<Collection> FindCollectionByName(String name, EnvHintCollection Hints)
           
 List<Collection> GetCollections(EnvHintCollection Hints)
           
 Document GetDocument(String collectionId, String documentId, EnvHintCollection Hints)
           
 List<DocumentMetadata> GetDocumentMetadata(String collectionId, String documentId, String schemaName, String schemaUri, String language, EnvHintCollection Hints)
           
 List<Document> GetDocuments(String collectionId, EnvHintCollection Hints)
           
 List<Document> GetDocumentsWithProperties(String collectionId, HashMap<String,String> properties, EnvHintCollection Hints)
           
 Document GetMainDocument(String collectionId, String documentId, EnvHintCollection Hints)
           
 List<DocumentMetadata> GetMetadataDocuments(String collectionId, EnvHintCollection Hints)
           
static IContentManagementSystemProvider Init(String ProviderName, EnvHintCollection Hints)
           
static boolean IsInit()
           
 Document NewDocument()
           
 DocumentAlternative NewDocumentAlternative()
           
 DocumentAnnotation NewDocumentAnnotation()
           
 DocumentMetadata NewDocumentMetadata()
           
 DocumentPart NewDocumentPart()
           
 InputStream ResolveContent(String locator)
           
 void SessionInit(EnvHintCollection Hints)
           
 void updateDocumentContent(Document document, EnvHintCollection Hints)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentManagementSystemProvider

public ContentManagementSystemProvider()
Method Detail

Init

public static IContentManagementSystemProvider Init(String ProviderName,
                                                    EnvHintCollection Hints)
                                             throws EnvironmentValidationException
Throws:
EnvironmentValidationException

IsInit

public static boolean IsInit()

SessionInit

public void SessionInit(EnvHintCollection Hints)
                 throws EnvironmentContentManagementSystemException
Specified by:
SessionInit in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

GetCollections

public List<Collection> GetCollections(EnvHintCollection Hints)
                                throws EnvironmentContentManagementSystemException
Specified by:
GetCollections in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

FindCollectionByName

public List<Collection> FindCollectionByName(String name,
                                             EnvHintCollection Hints)
                                      throws EnvironmentContentManagementSystemException
Specified by:
FindCollectionByName in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

FindCollectionById

public List<Collection> FindCollectionById(String collectionId,
                                           EnvHintCollection Hints)
                                    throws EnvironmentContentManagementSystemException
Specified by:
FindCollectionById in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

CreateCollection

public String CreateCollection(Collection col,
                               EnvHintCollection Hints)
                        throws EnvironmentContentManagementSystemException
Specified by:
CreateCollection in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

DeleteCollection

public void DeleteCollection(String collectionId,
                             EnvHintCollection Hints)
                      throws EnvironmentContentManagementSystemException
Specified by:
DeleteCollection in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

GetDocuments

public List<Document> GetDocuments(String collectionId,
                                   EnvHintCollection Hints)
                            throws EnvironmentContentManagementSystemException
Specified by:
GetDocuments in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

GetMetadataDocuments

public List<DocumentMetadata> GetMetadataDocuments(String collectionId,
                                                   EnvHintCollection Hints)
                                            throws EnvironmentContentManagementSystemException
Specified by:
GetMetadataDocuments in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

GetDocument

public Document GetDocument(String collectionId,
                            String documentId,
                            EnvHintCollection Hints)
                     throws EnvironmentContentManagementSystemException
Specified by:
GetDocument in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

GetMainDocument

public Document GetMainDocument(String collectionId,
                                String documentId,
                                EnvHintCollection Hints)
                         throws EnvironmentContentManagementSystemException
Specified by:
GetMainDocument in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

GetDocumentMetadata

public List<DocumentMetadata> GetDocumentMetadata(String collectionId,
                                                  String documentId,
                                                  String schemaName,
                                                  String schemaUri,
                                                  String language,
                                                  EnvHintCollection Hints)
                                           throws EnvironmentContentManagementSystemException
Specified by:
GetDocumentMetadata in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

AddDocument

public String AddDocument(Document document,
                          EnvHintCollection Hints)
                   throws EnvironmentContentManagementSystemException
Specified by:
AddDocument in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

DeleteDocument

public void DeleteDocument(String collectionId,
                           String documentId,
                           EnvHintCollection Hints)
                    throws EnvironmentContentManagementSystemException
Specified by:
DeleteDocument in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

AddAlternative

public void AddAlternative(String collectionId,
                           String documentId,
                           DocumentAlternative alternative,
                           EnvHintCollection Hints)
                    throws EnvironmentContentManagementSystemException
Specified by:
AddAlternative in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

DeleteAlternative

public void DeleteAlternative(String collectionId,
                              String documentId,
                              DocumentAlternative alternative,
                              EnvHintCollection Hints)
                       throws EnvironmentContentManagementSystemException
Specified by:
DeleteAlternative in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

AddMetadata

public void AddMetadata(String collectionId,
                        String documentId,
                        DocumentMetadata metadata,
                        EnvHintCollection Hints)
                 throws EnvironmentContentManagementSystemException
Specified by:
AddMetadata in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

DeleteMetadata

public void DeleteMetadata(String collectionId,
                           String documentId,
                           DocumentMetadata metadata,
                           EnvHintCollection Hints)
                    throws EnvironmentContentManagementSystemException
Specified by:
DeleteMetadata in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

AddPart

public void AddPart(String collectionId,
                    String documentId,
                    DocumentPart part,
                    EnvHintCollection Hints)
             throws EnvironmentContentManagementSystemException
Specified by:
AddPart in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

ResolveContent

public InputStream ResolveContent(String locator)
                           throws EnvironmentContentManagementSystemException
Specified by:
ResolveContent in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

NewDocument

public Document NewDocument()
                     throws EnvironmentContentManagementSystemException
Specified by:
NewDocument in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

NewDocumentMetadata

public DocumentMetadata NewDocumentMetadata()
                                     throws EnvironmentContentManagementSystemException
Specified by:
NewDocumentMetadata in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

NewDocumentPart

public DocumentPart NewDocumentPart()
                             throws EnvironmentContentManagementSystemException
Specified by:
NewDocumentPart in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

NewDocumentAlternative

public DocumentAlternative NewDocumentAlternative()
                                           throws EnvironmentContentManagementSystemException
Specified by:
NewDocumentAlternative in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

NewDocumentAnnotation

public DocumentAnnotation NewDocumentAnnotation()
                                         throws EnvironmentContentManagementSystemException
Specified by:
NewDocumentAnnotation in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

GetDocumentsWithProperties

public List<Document> GetDocumentsWithProperties(String collectionId,
                                                 HashMap<String,String> properties,
                                                 EnvHintCollection Hints)
                                          throws EnvironmentContentManagementSystemException
Specified by:
GetDocumentsWithProperties in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException

updateDocumentContent

public void updateDocumentContent(Document document,
                                  EnvHintCollection Hints)
                           throws EnvironmentContentManagementSystemException
Specified by:
updateDocumentContent in interface IContentManagementSystemProvider
Throws:
EnvironmentContentManagementSystemException


Copyright © 2012. All Rights Reserved.