|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xiruss.repository.client.importers.ImporterBase
public class ImporterBase
Superclass for Xiruss-T importer implementations.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_RESOLUTION_POLICY_TYPE
|
(package private) static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
---|---|
ImporterBase()
|
Method Summary | |
---|---|
protected void |
constructCompoundDocumentBos(java.lang.String docKey,
java.lang.String docName,
java.io.File startingDoc,
BoundedObjectSet bos,
SourceToVersionMap so2verMap)
Construct a new bounded object set. |
void |
createBosOnSnapshot(BoundedObjectSet bos,
Branch branch,
MutableSnapshot snapshot)
Given a fully-populated bounded object set, create a new snapshot with versions for each BOS member. |
Version |
doCompoundDocumentImport(java.io.File compoundDocRoot,
Branch branch,
MutableSnapshot snapshot,
User user,
java.lang.String cdMemberKey,
java.lang.String cdMemberName,
SourceToVersionMap so2verMap)
Process in the input document to calculate its BOS, then create resources and initial versions for each BOS member. |
Version |
doCompoundDocumentImport(java.net.URL rootSoUrl,
Branch branch,
User user,
java.lang.String docKey,
java.lang.String docName,
java.lang.Object object)
Imports a compound document rooted at a URL-accessible location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String DEFAULT_RESOLUTION_POLICY_TYPE
static org.apache.log4j.Logger logger
Constructor Detail |
---|
public ImporterBase()
Method Detail |
---|
public Version doCompoundDocumentImport(java.io.File compoundDocRoot, Branch branch, MutableSnapshot snapshot, User user, java.lang.String cdMemberKey, java.lang.String cdMemberName, SourceToVersionMap so2verMap) throws ImporterException, VersionCommitException, NoSuchPolicyTypeException, NoSuchDependencyTypeException, RepositoryException, VersionMutationException
doCompoundDocumentImport
in interface Importer
compoundDocRoot
- The file system file that is the root of a compound document to be imported.branch
- The SnapCM branch the compound document is to be imported onto.user
- The user who is performing the import. Will be set as the owner and creator of the all the newly-created
resources, versions, and storage objects.cdName
- The name to use in the repository for the compound document.
ImporterException
VersionCommitException
NoSuchPolicyTypeException
NoSuchDependencyTypeException
RepositoryException
VersionMutationException
public void createBosOnSnapshot(BoundedObjectSet bos, Branch branch, MutableSnapshot snapshot) throws NoSuchPolicyTypeException, NoSuchDependencyTypeException, RepositoryException, VersionMutationException, DomException, java.io.IOException, ImporterException, SnapCMException
createBosOnSnapshot
in interface Importer
bos
- Bounded object setbranch
- The branch to create the new snapshot on.
VersionException
SnapshotException
NoSuchPolicyTypeException
NoSuchDependencyTypeException
RepositoryException
VersionMutationException
DomException
java.io.IOException
ImporterException
SnapCMException
protected void constructCompoundDocumentBos(java.lang.String docKey, java.lang.String docName, java.io.File startingDoc, BoundedObjectSet bos, SourceToVersionMap so2verMap) throws ImporterException, BosException, BosCycleException
docKey
- startingDoc
- bos
- fsm
-
ImporterException
BosException
BosCycleException
public Version doCompoundDocumentImport(java.net.URL rootSoUrl, Branch branch, User user, java.lang.String docKey, java.lang.String docName, java.lang.Object object)
Importer
doCompoundDocumentImport
in interface Importer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |