org.olat.repository
Class RepositoryEntryImportExport

java.lang.Object
  extended by org.olat.repository.RepositoryEntryImportExport

public class RepositoryEntryImportExport
extends java.lang.Object

Initial Date: 19.05.2005

Author:
Mike Stock Comment:

Constructor Summary
RepositoryEntryImportExport(java.io.File baseDirecotry)
          Create a RepositoryEntryImportExport instance to do an import.
RepositoryEntryImportExport(RepositoryEntry re, java.io.File baseDirecotry)
          Create a RepositoryEntryImportExport instance to do an export.
 
Method Summary
 boolean anyExportedPropertiesAvailable()
           
 boolean exportDoExport()
          Export repository entry (contents and metadata.
 boolean exportDoExportContent()
          Export a repository entry referenced by a course node to the given export directory.
 void exportDoExportProperties()
          Export metadata of a repository entry to a file.
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
           
 java.lang.String getInitialAuthor()
           
 java.lang.String getProperty(java.lang.String key)
          Returns a property of the exported repository entry.
 java.lang.String getResourceName()
           
 java.lang.String getSoftkey()
           
 java.io.File importGetExportedFile()
          Returns the exported repository file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryEntryImportExport

public RepositoryEntryImportExport(RepositoryEntry re,
                                   java.io.File baseDirecotry)
Create a RepositoryEntryImportExport instance to do an export.

Parameters:
re -
baseDirecotry -

RepositoryEntryImportExport

public RepositoryEntryImportExport(java.io.File baseDirecotry)
Create a RepositoryEntryImportExport instance to do an import.

Parameters:
baseDirecotry -
Method Detail

anyExportedPropertiesAvailable

public boolean anyExportedPropertiesAvailable()

exportDoExport

public boolean exportDoExport()
Export repository entry (contents and metadata.

Returns:
True upon success, false otherwise.

exportDoExportProperties

public void exportDoExportProperties()
Export metadata of a repository entry to a file. Only one repository entry's metadata may be exported into a directory. The file name of the properties file will be the same for all repository entries!


exportDoExportContent

public boolean exportDoExportContent()
Export a repository entry referenced by a course node to the given export directory. User importReferencedRepositoryEntry to import again.

Returns:
True upon success, false otherwise.

importGetExportedFile

public java.io.File importGetExportedFile()
Returns the exported repository file.

Returns:
exported repository file

getProperty

public java.lang.String getProperty(java.lang.String key)
Returns a property of the exported repository entry.

Parameters:
key -
Returns:
String representing the properties value.

getSoftkey

public java.lang.String getSoftkey()
Returns:
The softkey

getDisplayName

public java.lang.String getDisplayName()
Returns:
The display name

getResourceName

public java.lang.String getResourceName()
Returns:
the resource name

getDescription

public java.lang.String getDescription()
Returns:
the descritpion

getInitialAuthor

public java.lang.String getInitialAuthor()
Returns:
the initial author