Index: lams_contentrepository/javadoc.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_contentrepository/javadoc.xml,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_contentrepository/javadoc.xml 21 Jan 2005 00:36:56 -0000 1.1
@@ -0,0 +1,6 @@
+
+
AccessDeniedException
+ +AddFileContentAction + +AddFileContentForm + +CrCredential + +CrNode + +CrNodeVersion + +CrNodeVersionProperty + +CrWorkspace + +CrWorkspaceCredential + +CredentialDAO + +FileDAO + +FileException + +ICredentialDAO + +ICredentials + +IFileDAO + +INodeDAO + +IRepository + +IRepositoryAdmin + +ITicket + +IValue + +IVersionDetail + +IVersionedNode + +IVersionedNodeAdmin + +IWorkspace + +IWorkspaceDAO + +InvalidParameterException + +ItemExistsException + +ItemNotFoundException + +LoginException + +LoginRepositoryAction + +LoginRepositoryForm + +NoSuchNodeTypeException + +NodeDAO + +NodeKey + +NodeSelectionAction + +NodeSelectionForm + +NodeType + +PropertyName + +PropertyType + +RepositoryCheckedException + +RepositoryDispatchAction + +RepositoryRuntimeException + +SimpleCredentials + +SimpleRepository + +SimpleTicket + +SimpleVersionDetail + +SimpleVersionedNode + +ValidationException + +ValueFormatException + +WorkspaceDAO + +WorkspaceNotFoundException + + |
+
AccessDeniedException
+ +AddFileContentAction + +AddFileContentForm + +CrCredential + +CrNode + +CrNodeVersion + +CrNodeVersionProperty + +CrWorkspace + +CrWorkspaceCredential + +CredentialDAO + +FileDAO + +FileException + +ICredentialDAO + +ICredentials + +IFileDAO + +INodeDAO + +IRepository + +IRepositoryAdmin + +ITicket + +IValue + +IVersionDetail + +IVersionedNode + +IVersionedNodeAdmin + +IWorkspace + +IWorkspaceDAO + +InvalidParameterException + +ItemExistsException + +ItemNotFoundException + +LoginException + +LoginRepositoryAction + +LoginRepositoryForm + +NoSuchNodeTypeException + +NodeDAO + +NodeKey + +NodeSelectionAction + +NodeSelectionForm + +NodeType + +PropertyName + +PropertyType + +RepositoryCheckedException + +RepositoryDispatchAction + +RepositoryRuntimeException + +SimpleCredentials + +SimpleRepository + +SimpleTicket + +SimpleVersionDetail + +SimpleVersionedNode + +ValidationException + +ValueFormatException + +WorkspaceDAO + +WorkspaceNotFoundException + + |
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+com.lamsinternational.* | +
+ +
com.lamsinternational.lams.contentrepository.IRepository | +||
+public static final java.lang.String |
+REPOSITORY_CONTEXT_PATH |
+"/com/lamsinternational/lams/contentrepository/contentRepositoryApplicationContext.xml" |
+
+public static final java.lang.String |
+REPOSITORY_SERVICE_ID |
+"repositoryService" |
+
+ +
+ +
com.lamsinternational.lams.contentrepository.NodeType | +||
+public static final java.lang.String |
+DATANODE |
+"DATANODE" |
+
+public static final java.lang.String |
+FILENODE |
+"FILENODE" |
+
+public static final java.lang.String |
+PACKAGENODE |
+"PACKAGENODE" |
+
+ +
+ +
com.lamsinternational.lams.contentrepository.PropertyName | +||
+public static final java.lang.String |
+FILENAME |
+"FILENAME" |
+
+public static final java.lang.String |
+INITIALPATH |
+"INITIALPATH" |
+
+public static final java.lang.String |
+MIMETYPE |
+"MIMETYPE" |
+
+public static final java.lang.String |
+VERSIONDESC |
+"VERSIONDESC" |
+
+ +
+ +
com.lamsinternational.lams.contentrepository.PropertyType | +||
+public static final int |
+BOOLEAN |
+5 |
+
+public static final int |
+DATE |
+4 |
+
+public static final int |
+DOUBLE |
+3 |
+
+public static final int |
+LONG |
+2 |
+
+public static final int |
+STRING |
+1 |
+
+public static final java.lang.String |
+TYPENAME_BOOLEAN |
+"Boolean" |
+
+public static final java.lang.String |
+TYPENAME_DATE |
+"Date" |
+
+public static final java.lang.String |
+TYPENAME_DOUBLE |
+"Double" |
+
+public static final java.lang.String |
+TYPENAME_LONG |
+"Long" |
+
+public static final java.lang.String |
+TYPENAME_STRING |
+"String" |
+
+public static final int |
+UNDEFINED |
+0 |
+
+ +
+ +
com.lamsinternational.lams.contentrepository.struts.action.RepositoryDispatchAction | +||
+public static final java.lang.String |
+ERROR_PATH |
+"error" |
+
+public static final java.lang.String |
+LOGOUT_PATH |
+"logout" |
+
+public static final java.lang.String |
+NODE_CACHE |
+"nodeCache" |
+
+public static final java.lang.String |
+NODE_MAP_NAME |
+"nodeMap" |
+
+public static final java.lang.String |
+SUCCESS_PATH |
+"success" |
+
+public static final java.lang.String |
+TICKET_NAME |
+"ticket" |
+
+public static final java.lang.String |
+UUID_NAME |
+"uuid" |
+
+public static final java.lang.String |
+VERSION_NAME |
+"version" |
+
+ +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+ +++The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+ +++Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
+
+- Interfaces (italic)
- Classes
- Exceptions
- Errors
+ +++Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.- Class inheritance diagram
- Direct Subclasses
- All Known Subinterfaces
- All Known Implementing Classes
- Class/interface declaration
- Class/interface description +
+
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary +
+
- Field Detail
- Constructor Detail
- Method Detail
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with+java.lang.Object
. The interfaces do not inherit fromjava.lang.Object
.+
+- When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
- When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.+
+
+
+
+This help file applies to API documentation generated using the standard doclet.
+
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+ | +
+ + + Index: lams_contentrepository/doc/overview-summary.html =================================================================== RCS file: /usr/local/cvsroot/lams_contentrepository/doc/overview-summary.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_contentrepository/doc/overview-summary.html 21 Jan 2005 00:38:10 -0000 1.1 @@ -0,0 +1,171 @@ + + + +
+ +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.dao | ++ |
com.lamsinternational.lams.contentrepository.dao.file | ++ |
com.lamsinternational.lams.contentrepository.dao.hibernate | ++ |
com.lamsinternational.lams.contentrepository.struts.action | ++ |
com.lamsinternational.lams.contentrepository.struts.form | ++ |
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Package com.lamsinternational.lams.contentrepository.struts.form | +
+Class com.lamsinternational.lams.contentrepository.struts.form.AddFileContentForm extends org.apache.struts.action.ActionForm implements Serializable | +
+Serialized Fields | +
+org.apache.struts.upload.FormFile theFile+
+
+java.lang.String dirName+
+java.lang.String entryString+
+java.lang.String method+
+java.lang.String description+
+java.lang.Long uuid+
+Class com.lamsinternational.lams.contentrepository.struts.form.LoginRepositoryForm extends org.apache.struts.action.ActionForm implements Serializable | +
+Serialized Fields | +
+java.lang.String toolName+
+
+java.lang.String workspaceName+
+
+java.lang.String indentificationString+
+
+Class com.lamsinternational.lams.contentrepository.struts.form.NodeSelectionForm extends org.apache.struts.action.ActionForm implements Serializable | +
+Serialized Fields | +
+java.util.Map nodeMap+
+
+Class com.lamsinternational.lams.contentrepository.AccessDeniedException extends RepositoryCheckedException implements Serializable | +
+ +
+
+Class com.lamsinternational.lams.contentrepository.CrCredential extends java.lang.Object implements Serializable | +
+Serialized Fields | +
+java.lang.Long credentialId+
+
+java.lang.String name+
+
+java.lang.String password+
+
+java.util.Set crWorkspaceCredentials+
+
+
+Class com.lamsinternational.lams.contentrepository.CrNode extends java.lang.Object implements Serializable | +
+Serialized Fields | +
+java.lang.Long nodeId+
+
+java.lang.String path+
+
+java.lang.String type+
+
+java.util.Date createdDateTime+
+
+java.lang.Long nextVersionId+
+
+CrWorkspace crWorkspace+
+
+java.util.Set crNodeVersions+
+
+java.util.SortedSet versionHistory+
+
+
+Class com.lamsinternational.lams.contentrepository.CrNodeVersion extends java.lang.Object implements Serializable | +
+Serialized Fields | +
+java.lang.Long nvId+
+
+java.lang.Long versionId+
+
+java.util.Date createdDateTime+
+
+CrNode node+
+
+CrNodeVersion parentNodeVersion+
+
+java.util.Set childNodeVersions+
+
+java.util.Set crNodeVersionProperties+
+
+
+Class com.lamsinternational.lams.contentrepository.CrNodeVersionProperty extends java.lang.Object implements Serializable | +
+Serialized Fields | +
+java.lang.Long id+
+
+java.lang.String name+
+
+java.lang.String value+
+
+int type+
+
+CrNodeVersion crNodeVersion+
+
+org.apache.log4j.Logger log+
+
+Class com.lamsinternational.lams.contentrepository.CrWorkspace extends java.lang.Object implements Serializable | +
+Serialized Fields | +
+java.lang.Long workspaceId+
+
+java.lang.String name+
+
+java.util.Set crWorkspaceCredentials+
+
+java.util.Set crNodes+
+
+
+Class com.lamsinternational.lams.contentrepository.CrWorkspaceCredential extends java.lang.Object implements Serializable | +
+Serialized Fields | +
+java.lang.Long wcId+
+
+CrWorkspace crWorkspace+
+
+CrCredential crCredential+
+
+
+Class com.lamsinternational.lams.contentrepository.FileException extends RepositoryCheckedException implements Serializable | +
+ +
+
+Class com.lamsinternational.lams.contentrepository.InvalidParameterException extends RepositoryCheckedException implements Serializable | +
+ +
+
+Class com.lamsinternational.lams.contentrepository.ItemExistsException extends RepositoryCheckedException implements Serializable | +
+ +
+
+Class com.lamsinternational.lams.contentrepository.ItemNotFoundException extends RepositoryCheckedException implements Serializable | +
+ +
+
+Class com.lamsinternational.lams.contentrepository.LoginException extends RepositoryCheckedException implements Serializable | +
+ +
+
+Class com.lamsinternational.lams.contentrepository.NoSuchNodeTypeException extends RepositoryCheckedException implements Serializable | +
+ +
+
+Class com.lamsinternational.lams.contentrepository.RepositoryCheckedException extends java.lang.Exception implements Serializable | +
+ +
+
+Class com.lamsinternational.lams.contentrepository.RepositoryRuntimeException extends java.lang.RuntimeException implements Serializable | +
+ +
+
+Class com.lamsinternational.lams.contentrepository.SimpleCredentials extends java.lang.Object implements Serializable | +
+Serialized Fields | +
+java.lang.String name+
+char[] password+
+
+Class com.lamsinternational.lams.contentrepository.ValidationException extends RepositoryCheckedException implements Serializable | +
+ +
+
+Class com.lamsinternational.lams.contentrepository.ValueFormatException extends RepositoryCheckedException implements Serializable | +
+ +
+
+Class com.lamsinternational.lams.contentrepository.WorkspaceNotFoundException extends RepositoryCheckedException implements Serializable | +
+ +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
com.lamsinternational.lams.contentrepository.RepositoryCheckedException +
com.lamsinternational.lams.contentrepository.AccessDeniedException +
+The current ticket doesn't have sufficient rights for the requested action. +
+ +
+
+Constructor Summary | +|
AccessDeniedException()
+
++ Constructs a new instance of this class. |
+|
AccessDeniedException(java.lang.String s)
+
++ Constructs a new instance of this class given a message describing the + failure cause. |
+|
AccessDeniedException(java.lang.String s,
+ java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a message describing the + failure and a root throwable. |
+|
AccessDeniedException(java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a root throwable. |
+
Methods inherited from class com.lamsinternational.lams.contentrepository.RepositoryCheckedException | +
getMessage |
+
Methods inherited from class java.lang.Throwable | +
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public AccessDeniedException()+
+
+public AccessDeniedException(java.lang.String s)+
+
s
- description+public AccessDeniedException(java.lang.String s, + java.lang.Throwable cause)+
+
s
- descriptioncause
- root throwable cause+public AccessDeniedException(java.lang.Throwable cause)+
+
cause
- root failure cause
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.AllTests +
+Runs all the currently implemented tests for the Content Repository. + Before running, load the test data in the database, clear + the repository and check that the files listed in BaseTestCase + exist. +
+ +
+
+Constructor Summary | +|
AllTests()
+
++ |
+
+Method Summary | +|
+static junit.framework.Test |
+suite()
+
++ |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
+public AllTests()+
+Method Detail | +
+public static junit.framework.Test suite()+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++junit.framework.Assert +
junit.framework.TestCase +
com.lamsinternational.lams.contentrepository.BaseTestCase +
+
+Constructor Summary | +|
BaseTestCase()
+
++ |
+
Methods inherited from class junit.framework.TestCase | +
countTestCases, getName, run, run, runBare, setName, toString |
+
Methods inherited from class junit.framework.Assert | +
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public BaseTestCase()+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.CrCredential +
+
+Constructor Summary | +|
CrCredential()
+
++ default constructor |
+|
CrCredential(java.lang.String name,
+ java.lang.String password,
+ java.util.Set crWorkspaceCredentials)
+
++ full constructor |
+
+Method Summary | +|
+ boolean |
+equals(java.lang.Object other)
+
++ |
+
+ java.lang.Long |
+getCredentialId()
+
++ |
+
+ java.util.Set |
+getCrWorkspaceCredentials()
+
++ |
+
+ java.lang.String |
+getName()
+
++ |
+
+ java.lang.String |
+getPassword()
+
++ |
+
+ int |
+hashCode()
+
++ |
+
+ void |
+setCredentialId(java.lang.Long credentialId)
+
++ |
+
+ void |
+setCrWorkspaceCredentials(java.util.Set crWorkspaceCredentials)
+
++ |
+
+ void |
+setName(java.lang.String name)
+
++ |
+
+ void |
+setPassword(java.lang.String password)
+
++ |
+
+ java.lang.String |
+toString()
+
++ |
+
Methods inherited from class java.lang.Object | +
getClass, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public CrCredential(java.lang.String name, + java.lang.String password, + java.util.Set crWorkspaceCredentials)+
+
+public CrCredential()+
+
+Method Detail | +
+public java.lang.Long getCredentialId()+
+public void setCredentialId(java.lang.Long credentialId)+
+public java.lang.String getName()+
+public void setName(java.lang.String name)+
+public java.lang.String getPassword()+
+public void setPassword(java.lang.String password)+
+public java.util.Set getCrWorkspaceCredentials()+
+public void setCrWorkspaceCredentials(java.util.Set crWorkspaceCredentials)+
+public java.lang.String toString()+
+public boolean equals(java.lang.Object other)+
+public int hashCode()+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.CrNode +
+
+Constructor Summary | +|
CrNode()
+
++ default constructor |
+|
CrNode(java.lang.String type,
+ java.lang.Long nextVersionId,
+ CrWorkspace crWorkspace,
+ java.util.Set crNodeVersions)
+
++ minimal constructor |
+|
CrNode(java.lang.String path,
+ java.lang.String type,
+ java.util.Date createdDateTime,
+ java.lang.Long nextVersionId,
+ CrWorkspace crWorkspace,
+ java.util.Set crNodeVersions)
+
++ full constructor |
+
+Method Summary | +|
+ boolean |
+equals(java.lang.Object other)
+
++ |
+
+ java.util.Date |
+getCreatedDateTime()
+
++ |
+
+ java.util.Set |
+getCrNodeVersions()
+
++ |
+
+ CrWorkspace |
+getCrWorkspace()
+
++ |
+
+ java.lang.Long |
+getNextVersionId()
+
++ |
+
+ java.lang.Long |
+getNodeId()
+
++ |
+
+ CrNodeVersion |
+getNodeVersion(java.lang.Long versionId)
+
++ Get a particular version of this node |
+
+ java.lang.String |
+getPath()
+
++ |
+
+ java.lang.String |
+getType()
+
++ |
+
+ java.util.SortedSet |
+getVersionHistory()
+
++ Get the history for this node. |
+
+ java.lang.Long[] |
+getVersionIds()
+
++ Get a list of all the versions - just the Long value. |
+
+ int |
+hashCode()
+
++ |
+
+ java.lang.Long |
+incrementNextVersionId()
+
++ Get the next version id for this node and then + increment it. |
+
+ boolean |
+isNodeType(java.lang.String nodeTypeName)
+
++ Indicates whether this node is of the specified node type. |
+
+ void |
+setCreatedDateTime(java.util.Date createdDateTime)
+
++ |
+
+ void |
+setCrNodeVersions(java.util.Set crNodeVersions)
+
++ |
+
+ void |
+setCrWorkspace(CrWorkspace crWorkspace)
+
++ |
+
+ void |
+setNextVersionId(java.lang.Long nextVersionId)
+
++ |
+
+ void |
+setNodeId(java.lang.Long nodeId)
+
++ |
+
+ void |
+setPath(java.lang.String path)
+
++ |
+
+ void |
+setType(java.lang.String type)
+
++ |
+
+ java.lang.String |
+toString()
+
++ |
+
Methods inherited from class java.lang.Object | +
getClass, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public CrNode(java.lang.String path, + java.lang.String type, + java.util.Date createdDateTime, + java.lang.Long nextVersionId, + CrWorkspace crWorkspace, + java.util.Set crNodeVersions)+
+
+public CrNode()+
+
+public CrNode(java.lang.String type, + java.lang.Long nextVersionId, + CrWorkspace crWorkspace, + java.util.Set crNodeVersions)+
+
+Method Detail | +
+public java.lang.Long getNodeId()+
+public void setNodeId(java.lang.Long nodeId)+
+public java.lang.String getPath()+
+public void setPath(java.lang.String path)+
+public java.lang.String getType()+
+public void setType(java.lang.String type)+
+public java.util.Date getCreatedDateTime()+
+public void setCreatedDateTime(java.util.Date createdDateTime)+
+public java.lang.Long getNextVersionId()+
+public void setNextVersionId(java.lang.Long nextVersionId)+
+public CrWorkspace getCrWorkspace()+
+public void setCrWorkspace(CrWorkspace crWorkspace)+
+public java.util.Set getCrNodeVersions()+
+public void setCrNodeVersions(java.util.Set crNodeVersions)+
+public java.lang.String toString()+
+public boolean equals(java.lang.Object other)+
+public int hashCode()+
+public java.lang.Long incrementNextVersionId()+
+
+public java.util.SortedSet getVersionHistory()+
+
+public boolean isNodeType(java.lang.String nodeTypeName)+
+
nodeTypeName
- the name of a node type.
++public CrNodeVersion getNodeVersion(java.lang.Long versionId)+
+
+public java.lang.Long[] getVersionIds()+
+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.CrNodeVersion +
+
+Constructor Summary | +|
CrNodeVersion()
+
++ default constructor |
+|
CrNodeVersion(java.lang.Long versionId,
+ CrNode node,
+ CrNodeVersion parentNodeVersion,
+ java.util.Set crNodeVersionProperties,
+ java.util.Set childNodeVersions)
+
++ minimal constructor |
+|
CrNodeVersion(java.lang.Long versionId,
+ java.util.Date createdDateTime,
+ CrNode node,
+ CrNodeVersion parentNodeVersion,
+ java.util.Set crNodeVersionProperties,
+ java.util.Set childNodeVersions)
+
++ full constructor |
+
+Method Summary | +|
+ void |
+addChildNodeVersion(CrNodeVersion childNode)
+
++ Add a child node to the childNodeVersions collection. |
+
+ boolean |
+equals(java.lang.Object other)
+
++ |
+
+ CrNodeVersion |
+getChildNodeVersion(java.lang.String relPath)
+
++ Remove a child node to the childNodeVersions collection. |
+
+ java.util.Set |
+getChildNodeVersions()
+
++ Gets the set of child nodes. |
+
+ java.util.Date |
+getCreatedDateTime()
+
++ |
+
+ java.util.Set |
+getCrNodeVersionProperties()
+
++ |
+
+ CrNode |
+getNode()
+
++ |
+
+ java.lang.Long |
+getNvId()
+
++ |
+
+ CrNodeVersion |
+getParentNodeVersion()
+
++ |
+
+ CrNodeVersionProperty |
+getProperty(java.lang.String name)
+
++ Get a property value |
+
+ java.lang.String |
+getVersionDescription()
+
++ Get the version description. |
+
+ java.lang.Long |
+getVersionId()
+
++ |
+
+ int |
+hashCode()
+
++ |
+
+ boolean |
+hasProperties()
+
++ Indicates whether this node has properties. |
+
+ boolean |
+hasProperty(java.lang.String name)
+
++ Indicates whether a property exists for this name + Returns true if a property exists and false otherwise. |
+
+ void |
+removeChildNodeVersion(CrNodeVersion childNode)
+
++ Remove a child node to the childNodeVersions collection. |
+
+ void |
+removeProperty(java.lang.String name)
+
++ Remove a property |
+
+ void |
+setChildNodeVersions(java.util.Set childNodeVersions)
+
++ Assigns a new set of child nodes. |
+
+ void |
+setCreatedDateTime(java.util.Date createdDateTime)
+
++ |
+
+ void |
+setCrNodeVersionProperties(java.util.Set crNodeVersionProperties)
+
++ |
+
+ void |
+setNode(CrNode node)
+
++ |
+
+ void |
+setNvId(java.lang.Long nvId)
+
++ |
+
+ void |
+setParentNodeVersion(CrNodeVersion parentNodeVersion)
+
++ |
+
+ CrNodeVersionProperty |
+setProperty(java.lang.String name,
+ java.lang.Object value,
+ int valueType)
+
++ Set a property value. |
+
+ void |
+setVersionDescription(java.lang.String description)
+
++ Set the version description. |
+
+ void |
+setVersionId(java.lang.Long versionId)
+
++ |
+
+ java.lang.String |
+toString()
+
++ |
+
Methods inherited from class java.lang.Object | +
getClass, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public CrNodeVersion(java.lang.Long versionId, + java.util.Date createdDateTime, + CrNode node, + CrNodeVersion parentNodeVersion, + java.util.Set crNodeVersionProperties, + java.util.Set childNodeVersions)+
+
+public CrNodeVersion()+
+
+public CrNodeVersion(java.lang.Long versionId, + CrNode node, + CrNodeVersion parentNodeVersion, + java.util.Set crNodeVersionProperties, + java.util.Set childNodeVersions)+
+
+Method Detail | +
+public java.lang.Long getNvId()+
+public void setNvId(java.lang.Long nvId)+
+public java.lang.Long getVersionId()+
+public void setVersionId(java.lang.Long versionId)+
+public java.util.Date getCreatedDateTime()+
+public void setCreatedDateTime(java.util.Date createdDateTime)+
+public CrNode getNode()+
+public void setNode(CrNode node)+
+public CrNodeVersion getParentNodeVersion()+
+public void setParentNodeVersion(CrNodeVersion parentNodeVersion)+
+public java.util.Set getCrNodeVersionProperties()+
+public void setCrNodeVersionProperties(java.util.Set crNodeVersionProperties)+
+public java.util.Set getChildNodeVersions()+
+
+public void setChildNodeVersions(java.util.Set childNodeVersions)+
+
+public void addChildNodeVersion(CrNodeVersion childNode)+
+
childNode
- +public void removeChildNodeVersion(CrNodeVersion childNode)+
+
childNode
- +public CrNodeVersion getChildNodeVersion(java.lang.String relPath)+
+
relPath
- of child+public java.lang.String toString()+
+public boolean equals(java.lang.Object other)+
+public int hashCode()+
+public CrNodeVersionProperty getProperty(java.lang.String name)+
+
+public void removeProperty(java.lang.String name)+
+
+public CrNodeVersionProperty setProperty(java.lang.String name, + java.lang.Object value, + int valueType) + throws RepositoryRuntimeException+
+
RepositoryRuntimeException
- if name is null+public java.lang.String getVersionDescription()+
+
+public void setVersionDescription(java.lang.String description)+
+
+public boolean hasProperty(java.lang.String name)+
+
name
- The name of a (possible) property.
++public boolean hasProperties()+
+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.CrNodeVersionProperty +
+
+Constructor Summary | +|
CrNodeVersionProperty()
+
++ default constructor |
+|
CrNodeVersionProperty(java.lang.String name,
+ java.lang.String value,
+ int type,
+ CrNodeVersion crNodeVersion)
+
++ full constructor |
+
+Method Summary | +|
+ boolean |
+equals(java.lang.Object other)
+
++ |
+
+ boolean |
+getBoolean()
+
++ Returns a boolean representation of the value. |
+
+ CrNodeVersion |
+getCrNodeVersion()
+
++ |
+
+ java.util.Calendar |
+getDate()
+
++ Returns a Calendar representation of the value. |
+
+ double |
+getDouble()
+
++ Returns a double representation of the value. |
+
+ java.lang.Long |
+getId()
+
++ |
+
+ long |
+getLong()
+
++ Returns a long representation of the value. |
+
+ java.lang.String |
+getName()
+
++ |
+
+ java.lang.String |
+getString()
+
++ Returns a string representation of the value. |
+
+ int |
+getType()
+
++ |
+
+ java.lang.String |
+getValue()
+
++ |
+
+ int |
+hashCode()
+
++ |
+
+ void |
+setCrNodeVersion(CrNodeVersion crNodeVersion)
+
++ |
+
+ void |
+setId(java.lang.Long id)
+
++ |
+
+ void |
+setName(java.lang.String name)
+
++ |
+
+ void |
+setType(int type)
+
++ |
+
+ void |
+setValue(java.lang.String value)
+
++ |
+
+ java.lang.String |
+toString()
+
++ |
+
Methods inherited from class java.lang.Object | +
getClass, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public CrNodeVersionProperty(java.lang.String name, + java.lang.String value, + int type, + CrNodeVersion crNodeVersion)+
+
+public CrNodeVersionProperty()+
+
+Method Detail | +
+public java.lang.Long getId()+
+public void setId(java.lang.Long id)+
+public java.lang.String getName()+
+public void setName(java.lang.String name)+
+public java.lang.String getValue()+
+public void setValue(java.lang.String value)+
+public int getType()+
getType
in interface IValue
PropertyType
for values.+public void setType(int type)+
+public CrNodeVersion getCrNodeVersion()+
+public void setCrNodeVersion(CrNodeVersion crNodeVersion)+
+public java.lang.String toString()+
+public boolean equals(java.lang.Object other)+
+public int hashCode()+
+public java.lang.String getString()+
+
getString
in interface IValue
ValueFormatException
- If able to convert the value to a string.
+java.lang.IllegalStateException
- If calling getString() on a file and the stream cannot be read.
+RepositoryException
- If another error occurs.+public double getDouble() + throws ValueFormatException+
+
getDouble
in interface IValue
ValueFormatException
- If able to convert the value to a double.+public java.util.Calendar getDate() + throws ValueFormatException+
+
getDate
in interface IValue
ValueFormatException
- If able to convert the value to a Calendar.+public long getLong() + throws ValueFormatException+
+
getLong
in interface IValue
ValueFormatException
- If able to convert the value to a long.+public boolean getBoolean() + throws ValueFormatException+
+
getBoolean
in interface IValue
ValueFormatException
- If able to convert the value to a boolean.
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.CrWorkspace +
+
+Constructor Summary | +|
CrWorkspace()
+
++ default constructor |
+|
CrWorkspace(java.lang.String name,
+ java.util.Set crWorkspaceCredentials,
+ java.util.Set crNodes)
+
++ full constructor |
+
+Method Summary | +|
+ boolean |
+equals(java.lang.Object other)
+
++ |
+
+ java.util.Set |
+getCrNodes()
+
++ |
+
+ java.util.Set |
+getCrWorkspaceCredentials()
+
++ |
+
+ java.lang.String |
+getName()
+
++ |
+
+ java.lang.Long |
+getWorkspaceId()
+
++ |
+
+ int |
+hashCode()
+
++ |
+
+ void |
+setCrNodes(java.util.Set crNodes)
+
++ |
+
+ void |
+setCrWorkspaceCredentials(java.util.Set crWorkspaceCredentials)
+
++ |
+
+ void |
+setName(java.lang.String name)
+
++ |
+
+ void |
+setWorkspaceId(java.lang.Long workspaceId)
+
++ |
+
+ java.lang.String |
+toString()
+
++ |
+
Methods inherited from class java.lang.Object | +
getClass, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public CrWorkspace(java.lang.String name, + java.util.Set crWorkspaceCredentials, + java.util.Set crNodes)+
+
+public CrWorkspace()+
+
+Method Detail | +
+public java.lang.Long getWorkspaceId()+
getWorkspaceId
in interface IWorkspace
+public void setWorkspaceId(java.lang.Long workspaceId)+
+public java.lang.String getName()+
getName
in interface IWorkspace
+public void setName(java.lang.String name)+
+public java.util.Set getCrWorkspaceCredentials()+
+public void setCrWorkspaceCredentials(java.util.Set crWorkspaceCredentials)+
+public java.util.Set getCrNodes()+
+public void setCrNodes(java.util.Set crNodes)+
+public java.lang.String toString()+
+public boolean equals(java.lang.Object other)+
+public int hashCode()+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.CrWorkspaceCredential +
+
+Constructor Summary | +|
CrWorkspaceCredential()
+
++ default constructor |
+|
CrWorkspaceCredential(CrWorkspace crWorkspace,
+ CrCredential crCredential)
+
++ full constructor |
+
+Method Summary | +|
+ boolean |
+equals(java.lang.Object other)
+
++ |
+
+ CrCredential |
+getCrCredential()
+
++ |
+
+ CrWorkspace |
+getCrWorkspace()
+
++ |
+
+ java.lang.Long |
+getWcId()
+
++ |
+
+ int |
+hashCode()
+
++ |
+
+ void |
+setCrCredential(CrCredential crCredential)
+
++ |
+
+ void |
+setCrWorkspace(CrWorkspace crWorkspace)
+
++ |
+
+ void |
+setWcId(java.lang.Long wcId)
+
++ |
+
+ java.lang.String |
+toString()
+
++ |
+
Methods inherited from class java.lang.Object | +
getClass, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public CrWorkspaceCredential(CrWorkspace crWorkspace, + CrCredential crCredential)+
+
+public CrWorkspaceCredential()+
+
+Method Detail | +
+public java.lang.Long getWcId()+
+public void setWcId(java.lang.Long wcId)+
+public CrWorkspace getCrWorkspace()+
+public void setCrWorkspace(CrWorkspace crWorkspace)+
+public CrCredential getCrCredential()+
+public void setCrCredential(CrCredential crCredential)+
+public java.lang.String toString()+
+public boolean equals(java.lang.Object other)+
+public int hashCode()+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
com.lamsinternational.lams.contentrepository.RepositoryCheckedException +
com.lamsinternational.lams.contentrepository.FileException +
+Some error was generated reading or writing the files + to disk. +
+ +
+
+Constructor Summary | +|
FileException()
+
++ Constructs a new instance of this class. |
+|
FileException(java.lang.String s)
+
++ Constructs a new instance of this class given a message describing the + failure cause. |
+|
FileException(java.lang.String s,
+ java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a message describing the + failure and a root throwable. |
+|
FileException(java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a root throwable. |
+
Methods inherited from class com.lamsinternational.lams.contentrepository.RepositoryCheckedException | +
getMessage |
+
Methods inherited from class java.lang.Throwable | +
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public FileException()+
+
+public FileException(java.lang.String s)+
+
s
- description+public FileException(java.lang.String s, + java.lang.Throwable cause)+
+
s
- descriptioncause
- root throwable cause+public FileException(java.lang.Throwable cause)+
+
cause
- root failure cause
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+Base interface for all credentials that may be passed to the + Repository.login() method. +
+ +
+
+Method Summary | +|
+ void |
+clearPassword()
+
++ Clear the current password - important not to leave this lying around. |
+
+ java.lang.String |
+getName()
+
++ Returns the name of the tool. |
+
+ char[] |
+getPassword()
+
++ Returns the password. |
+
+Method Detail | +
+public java.lang.String getName()+
+
+public char[] getPassword()+
+ Note that this method returns a reference to the password. + The password is set when the creditionals are passed in to get a ticket, + and then removed. +
+
+
+public void clearPassword()+
+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+Tool access to the repository +
+ +
+
+Field Summary | +|
+static java.lang.String |
+REPOSITORY_CONTEXT_PATH
+
++ String used to define the path to the context file |
+
+static java.lang.String |
+REPOSITORY_SERVICE_ID
+
++ String used to define service in Spring context |
+
+Method Summary | +|
+ NodeKey |
+addFileItem(ITicket ticket,
+ java.io.InputStream istream,
+ java.lang.String filename,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ Add a new file to the repository. |
+
+ NodeKey |
+addPackageItem(ITicket ticket,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ Add a new package of files to the repository. |
+
+ void |
+addWorkspace(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Create a new workspace, with the tool identified in the creditials + as the owner. |
+
+ void |
+createCredential(ICredentials newCredential)
+
++ Create a new repository "user" - usually a tool. |
+
+ java.lang.String[] |
+deleteNode(ITicket ticket,
+ java.lang.Long uuid)
+
++ Delete a node and all its versions, returning a list of the files + that could not be deleted properly. |
+
+ java.lang.String[] |
+deleteVersion(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ Delete the current version of a node, returning a list of the files + that could not be deleted properly. |
+
+ IVersionedNode |
+getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ Get an item from the repository based on the UUID. |
+
+ IVersionedNode |
+getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String relPath,
+ java.lang.Long versionId)
+
++ Get an item from the repository based on the UUID and relative + path. |
+
+ java.util.SortedMap |
+getNodeList(ITicket ticket)
+
++ Get a complete list of all nodes in the workspace and their + version histories. |
+
+ java.util.SortedSet |
+getVersionHistory(ITicket ticket,
+ java.lang.Long uuid)
+
++ Get the history for a node. |
+
+ ITicket |
+login(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Login, creating a new ticket for the given credentials and specified + workspace. |
+
+ void |
+logout(ITicket ticket)
+
++ Finish using this ticket. |
+
+ void |
+updateCredentials(ICredentials oldCredential,
+ ICredentials newCredential)
+
++ Update a credential. |
+
+ NodeKey |
+updateFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String filename,
+ java.io.InputStream istream,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ Update an existing file in the repository. |
+
+ NodeKey |
+updatePackageItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ Add a new package of files to the repository. |
+
+Field Detail | +
+public static final java.lang.String REPOSITORY_SERVICE_ID+
+
+public static final java.lang.String REPOSITORY_CONTEXT_PATH+
+
+Method Detail | +
+public ITicket login(ICredentials credentials, + java.lang.String workspaceName) + throws LoginException, + AccessDeniedException, + WorkspaceNotFoundException+
+
credentials
- The credentials of the userworkspaceName
- the name of a workspace.
+ITicket
for the user to access the repository.
+LoginException
- Login authentication fails.
+AccessDeniedException
- User is not allowed to access this workspace.
+WorkspaceNotFoundException
- Workspace name doesn't exist.+public void addWorkspace(ICredentials credentials, + java.lang.String workspaceName) + throws LoginException, + ItemExistsException, + RepositoryCheckedException+
+
credentials
- this user/password must already exist in the repository. Password will be checked.workspaceName
-
+LoginException
- if credentials are not authorised to add/access the new workspace.
+ItemExistsException
- if the workspace already exists.
+RepositoryCheckedException
- if parameters are missing. * @param credentials The credentials of the user/tool+public void createCredential(ICredentials newCredential) + throws RepositoryCheckedException+
+
newCredential
- this user/password will be added to the repository
+RepositoryCheckedException
- if parameters are missing.+public void updateCredentials(ICredentials oldCredential, + ICredentials newCredential) + throws RepositoryCheckedException+
+
oldCredential
- the current user/passwordnewCredential
- the new user/password
+LoginException
- if the oldCredential fails login test (e.g. wrong password)
+RepositoryCheckedException
- if one of the credentials objects are missing+public NodeKey addFileItem(ITicket ticket, + java.io.InputStream istream, + java.lang.String filename, + java.lang.String mimeType, + java.lang.String versionDescription) + throws FileException, + AccessDeniedException, + InvalidParameterException+
+
ticket
- ticket issued on login. Identifies tool and workspace - mandatoryistream
- new file, as an input stream - mandatorymimeType
- mime type of file - optionalversionDescription
- human readable comment about the version - optional
+AccessDeniedException
- if ticket doesn't allow this action
+FileException
- if unable to save node due to file error
+InvalidParameterException
- if a required parameter is missing
+RepositoryRuntimeException
- if any internal errors have occured+public NodeKey addPackageItem(ITicket ticket, + java.lang.String dirPath, + java.lang.String startFile, + java.lang.String versionDescription) + throws AccessDeniedException, + InvalidParameterException, + FileException+
+
ticket
- ticket issued on login. Identifies tool and workspace - mandatorydirPath
- directory path containing files - mandatorystartFile
- relative path of initial file - optionalversionDescription
- human readable comment about the version - optional
+AccessDeniedException
- if ticket doesn't allow this action
+FileException
- if unable to save node due to file error
+InvalidParameterException
- if a required parameter is missing
+RepositoryRuntimeException
- if any internal errors have occured+public NodeKey updateFileItem(ITicket ticket, + java.lang.Long uuid, + java.lang.String filename, + java.io.InputStream istream, + java.lang.String mimeType, + java.lang.String versionDescription) + throws AccessDeniedException, + ItemNotFoundException, + FileException, + InvalidParameterException+
+
ticket
- ticket issued on login. Identifies tool and workspace - mandatoryuuid
- unique id of the file - mandatoryistream
- new file, as an input stream - mandatoryversionDescription
- human readable comment about the version - optionalmimeType
- mime type of file - optional
+AccessDeniedException
- if ticket doesn't allow this action
+ItemNotFoundException
- if node with uuid cannot be found
+FileException
- if unable to save node due to file error
+InvalidParameterException
- if a required parameter is missing
+RepositoryRuntimeException
- if any internal errors have occured+public NodeKey updatePackageItem(ITicket ticket, + java.lang.Long uuid, + java.lang.String dirPath, + java.lang.String startFile, + java.lang.String versionDescription) + throws AccessDeniedException, + ItemNotFoundException, + FileException, + InvalidParameterException+
+
ticket
- ticket issued on login. Identifies tool and workspace - mandatoryuuid
- unique id of the package - mandatorydirPath
- directory path containing files - mandatorystartFile
- relative path of initial file - optionalversionDescription
- human readable comment about the version - optional
+AccessDeniedException
- if ticket doesn't allow this action
+ItemNotFoundException
- if node with uuid cannot be found
+FileException
- if unable to save node due to file error
+InvalidParameterException
- if a required parameter is missing
+RepositoryRuntimeException
- if any internal errors have occured+public IVersionedNode getFileItem(ITicket ticket, + java.lang.Long uuid, + java.lang.Long version) + throws AccessDeniedException, + ItemNotFoundException, + FileException+
+
ticket
- ticket issued on login. Identifies tool and workspace - mandatoryuuid
- id of the file/package - mandatoryversion
- desired version - if null gets latest version
+AccessDeniedException
+ItemNotFoundException
+FileException
+public IVersionedNode getFileItem(ITicket ticket, + java.lang.Long uuid, + java.lang.String relPath, + java.lang.Long versionId) + throws AccessDeniedException, + ItemNotFoundException, + FileException+
+
ticket
- ticket issued on login. Identifies tool and workspace - mandatoryuuid
- id of the package - mandatoryrelPath
- relative path within the package - if null,
+ returns start file.versionId
- desired version - if null gets latest version
+AccessDeniedException
- if ticket doesn't allow this action
+ItemNotFoundException
- if node with uuid cannot be found
+FileException
- if unable to save node due to file error
+RepositoryRuntimeException
- if any internal errors have occured+public java.util.SortedSet getVersionHistory(ITicket ticket, + java.lang.Long uuid) + throws ItemNotFoundException, + AccessDeniedException+
+
ticket
- ticket issued on login. Identifies tool and workspace - mandatory
+ItemNotFoundException
+AccessDeniedException
+public java.lang.String[] deleteVersion(ITicket ticket, + java.lang.Long uuid, + java.lang.Long version) + throws AccessDeniedException, + InvalidParameterException, + ItemNotFoundException+
+
AccessDeniedException
- if ticket doesn't allow this action
+ItemNotFoundException
- if node with uuid cannot be found
+InvalidParameterException
- if a required parameter is missing
+RepositoryRuntimeException
- if any internal errors have occured+public java.lang.String[] deleteNode(ITicket ticket, + java.lang.Long uuid) + throws AccessDeniedException, + InvalidParameterException, + ItemNotFoundException+
+
AccessDeniedException
- if ticket doesn't allow this action
+ItemNotFoundException
- if node with uuid cannot be found
+InvalidParameterException
- if a required parameter is missing
+RepositoryRuntimeException
- if any internal errors have occured+public void logout(ITicket ticket)+
+
ticket
- ticket issued on login. Identifies tool and workspace - mandatory+public java.util.SortedMap getNodeList(ITicket ticket) + throws AccessDeniedException+
+ Warning: Once a workspace gets a lot of nodes, this will be + a very very expensive call!!!!! +
++
ticket
- ticket issued on login. Identifies tool and workspace - mandatory
+AccessDeniedException
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+Administrative interface to the Repository. Protects + the assignCredentials method - yet to work + out who should have access to this! +
+ +
+
+Field Summary | +
Fields inherited from interface com.lamsinternational.lams.contentrepository.IRepository | +
REPOSITORY_CONTEXT_PATH, REPOSITORY_SERVICE_ID |
+
+Method Summary | +|
+ void |
+assignCredentials(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ |
+
Methods inherited from interface com.lamsinternational.lams.contentrepository.IRepository | +
addFileItem, addPackageItem, addWorkspace, createCredential, deleteNode, deleteVersion, getFileItem, getFileItem, getNodeList, getVersionHistory, login, logout, updateCredentials, updateFileItem, updatePackageItem |
+
+Method Detail | +
+public void assignCredentials(ICredentials credentials, + java.lang.String workspaceName) + throws RepositoryCheckedException, + WorkspaceNotFoundException+
RepositoryCheckedException
+WorkspaceNotFoundException
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+Ticket represents the "authorisation" key to the repository. When + the tool logs in, a ticket is given. This ticket must be supplied + whenever a node is accessed. When the tool is finished, it should call + logout, which invalidates the ticket. + + A ticket is for one workspace only - to access more than one + workspace requires more than one ticket. +
+ +
+
+Method Summary | +|
+ void |
+clear()
+
++ Make this ticket unusable. |
+
+ java.lang.String |
+getTicketId()
+
++ |
+
+ java.lang.Long |
+getWorkspaceId()
+
++ Get the workspace associated with this ticket + Should only be accessed by the content repository package members. |
+
+Method Detail | +
+public java.lang.Long getWorkspaceId()+
+
+public java.lang.String getTicketId()+
+public void clear()+
+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+A value is an object which is explicitly marked with a type. This type can + be used for hints to the persistence layer as to how to store/retrieve + the value. +
+ +
+
+Method Summary | +|
+ boolean |
+getBoolean()
+
++ Returns a boolean representation of the value. |
+
+ java.util.Calendar |
+getDate()
+
++ Returns a Calendar representation of the value. |
+
+ double |
+getDouble()
+
++ Returns a double representation of the value. |
+
+ long |
+getLong()
+
++ Returns a long representation of the value. |
+
+ java.lang.String |
+getString()
+
++ Returns a string representation of the value. |
+
+ int |
+getType()
+
++ |
+
+Method Detail | +
+public int getType()+
PropertyType
for values.+public java.lang.String getString() + throws ValueFormatException+
+
ValueFormatException
- If able to convert the value to a string.+public double getDouble() + throws ValueFormatException+
+
ValueFormatException
- If able to convert the value to a double.+public java.util.Calendar getDate() + throws ValueFormatException+
+
ValueFormatException
- If able to convert the value to a Calendar.+public long getLong() + throws ValueFormatException+
+
ValueFormatException
- If able to convert the value to a long.+public boolean getBoolean() + throws ValueFormatException+
+
ValueFormatException
- If able to convert the value to a boolean.
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+Describes the version of a node. Objects that meet this interface + have a natural ordering so they can be placed straight into + a sorted set, with the need for a special comparator. The natural + ordering should be such that null is sorted (ie after) non-null. +
+ +
+
+Method Summary | +|
+ java.util.Date |
+getCreatedDateTime()
+
++ Get the date/time of when this version was created. |
+
+ java.lang.String |
+getDescription()
+
++ Get the general text string describing the version. |
+
+ java.lang.Long |
+getVersionId()
+
++ Get the version id. |
+
Methods inherited from interface java.lang.Comparable | +
compareTo |
+
+Method Detail | +
+public java.lang.Long getVersionId()+
+
+public java.util.Date getCreatedDateTime()+
+
+public java.lang.String getDescription()+
+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+The IVersionedNode interface represents a particular version of a node + in the hierarchy that makes up the repository. This interface represents + a very restricted version of a node - they are read only methods + so the node cannot be updated - only a new version may be created. + + A VersionedNode may have at most one file attached (ie one per version). +
+ +
+
+Method Summary | +|
+ java.util.Date |
+getCreatedDateTime()
+
++ Get the date/time of when this node was created. |
+
+ java.io.InputStream |
+getFile()
+
++ Get the file, as an inputstream. |
+
+ IVersionedNode |
+getNode(java.lang.String relPath)
+
++ Returns the node at relPath, which is a child of this node. |
+
+ NodeKey |
+getNodeKey()
+
++ Get the uuid and version of this node/version |
+
+ java.util.Set |
+getNodes()
+
++ Returns an Set of all child nodes of node. |
+
+ java.lang.String |
+getNodeType()
+
++ Gets the type of the current node. |
+
+ java.lang.String |
+getPath()
+
++ Get the path of this node |
+
+ java.util.Set |
+getProperties()
+
++ Returns all properties of this node. |
+
+ IValue |
+getProperty(java.lang.String name)
+
++ Returns the property at relPath relative to this + node. |
+
+ ITicket |
+getTicket()
+
++ Get the ticket through which this node was accessed. |
+
+ java.lang.Long |
+getUUID()
+
++ Returns the UUID of this node as recorded in the node's jcr:UUID + property. |
+
+ java.lang.Long |
+getVersion()
+
++ Get the version of this node. |
+
+ java.util.SortedSet |
+getVersionHistory()
+
++ Get the version history for this node, ordered by version id. |
+
+ boolean |
+hasNode(java.lang.String relPath)
+
++ Indicates whether a node exists at relPath + Returns true if a node exists at relPath and + false otherwise. |
+
+ boolean |
+hasNodes()
+
++ Indicates whether this node has child nodes. |
+
+ boolean |
+hasProperties()
+
++ Indicates whether this node has properties. |
+
+ boolean |
+hasProperty(java.lang.String name)
+
++ Indicates whether a property exists for this name + Returns true if a property exists and false otherwise. |
+
+ boolean |
+isNodeType(java.lang.String nodeTypeName)
+
++ Indicates whether this node is of the specified node type. |
+
+Method Detail | +
+public NodeKey getNodeKey()+
+
+public IVersionedNode getNode(java.lang.String relPath) + throws ItemNotFoundException+
+
relPath
- The relative path of the node to retrieve.
+ItemNotFoundException
- If no node exists at the
+ specified path.
+RepositoryException
- If another error occurs.+public java.util.Set getNodes()+
+
+public boolean hasNode(java.lang.String relPath)+
+
relPath
- The path of a (possible) node.
++public boolean hasNodes()+
+
+public IValue getProperty(java.lang.String name)+
+
name
-
++public java.util.Set getProperties()+
+
+public java.lang.Long getUUID()+
+
+public boolean hasProperty(java.lang.String name)+
+
name
- The name of a (possible) property.
++public boolean hasProperties()+
+
+public java.lang.String getNodeType()+
NodeType
for
+ possible node types. Note: the node type is shared across all
+ versions of a node
++
+public boolean isNodeType(java.lang.String nodeTypeName)+
+
nodeTypeName
- the name of a node type.
++public java.util.SortedSet getVersionHistory()+
+
IVersionDetail
objects+public java.lang.String getPath()+
+
+public ITicket getTicket()+
+
+public java.lang.Long getVersion()+
+
+public java.util.Date getCreatedDateTime()+
+
+public java.io.InputStream getFile() + throws FileException+
+
FileException
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+IVersionedNodeAdmin represents the full functionality for a versioned node. + + IVersionedNodeAdmin is a protected interface - should only be used within + the repository package. It exists to allow easier replacement of the + SimpleVersionedNode class in line with the Spring framework philosophy + of programming to interfaces. +
+ +
+
+Method Summary | +|
+ java.util.List |
+deleteNode()
+
++ Delete this node and all its versions, returning a list of the files + that could not be deleted properly. |
+
+ java.util.List |
+deleteVersion()
+
++ Delete the current version of this node, returning a list of the files + that could not be deleted properly. |
+
+ void |
+setFile(java.io.InputStream iStream,
+ java.lang.String filename,
+ java.lang.String mimeType)
+
++ Set the file, passed in as an inputstream. |
+
+ void |
+setProperty(java.lang.String name,
+ boolean value)
+
++ Sets the property to a BOOLEAN value. |
+
+ void |
+setProperty(java.lang.String name,
+ java.util.Calendar value)
+
++ Sets the property a CALENDAR value. |
+
+ void |
+setProperty(java.lang.String name,
+ double value)
+
++ Sets the property to a DOUBLE value. |
+
+ void |
+setProperty(java.lang.String name,
+ long value)
+
++ Sets the property to a LONG value. |
+
+ void |
+setProperty(java.lang.String name,
+ java.lang.String value)
+
++ Sets the property to a STRING value. |
+
+ void |
+setProperty(java.lang.String name,
+ java.lang.String value,
+ int type)
+
++ Sets the property to a value, based on the specified type, after converting + from the string. |
+
Methods inherited from interface com.lamsinternational.lams.contentrepository.IVersionedNode | +
getCreatedDateTime, getFile, getNode, getNodeKey, getNodes, getNodeType, getPath, getProperties, getProperty, getTicket, getUUID, getVersion, getVersionHistory, hasNode, hasNodes, hasProperties, hasProperty, isNodeType |
+
+Method Detail | +
+public void setProperty(java.lang.String name, + java.lang.String value, + int type) + throws RepositoryCheckedException+
+
name
- The name of a property of this nodevalue
- The value to be assignedtype
- The type of the property
+ValueFormatException
- if the type or format of a value
+ is incompatible with the type of the specified property or if
+ value is incompatible with (i.e. can not be converted to) type.
+RepositoryCheckedException
+public void setProperty(java.lang.String name, + java.lang.String value) + throws RepositoryCheckedException+
+
name
- The name of a property of this nodevalue
- The value to be assigned
+RepositoryCheckedException
+public void setProperty(java.lang.String name, + boolean value) + throws RepositoryCheckedException+
+
name
- The name of a property of this nodevalue
- The value to be assigned
+RepositoryCheckedException
+public void setProperty(java.lang.String name, + double value) + throws RepositoryCheckedException+
+
name
- The name of a property of this nodevalue
- The value to be assigned
+RepositoryCheckedException
+public void setProperty(java.lang.String name, + long value) + throws RepositoryCheckedException+
+
name
- The name of a property of this nodevalue
- The value to be assigned
+RepositoryCheckedException
+public void setProperty(java.lang.String name, + java.util.Calendar value) + throws RepositoryCheckedException+
+
name
- The name of a property of this nodevalue
- The value to be assigned
+RepositoryCheckedException
+public void setFile(java.io.InputStream iStream, + java.lang.String filename, + java.lang.String mimeType) + throws InvalidParameterException+
+
iStream
- mandatoryfilename
- mandatorymimeType
- optional
+InvalidParameterException
+public java.util.List deleteNode()+
+
AccessDeniedException
- if ticket doesn't allow this action
+ItemNotFoundException
- if node with uuid cannot be found
+InvalidParameterException
- if a required parameter is missing
+RepositoryRuntimeException
- if any internal errors have occured+public java.util.List deleteVersion()+
+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+A workspace is a grouping of content, which is accessed by a ticket. + One workspace may have many current tickets. + + A workspace may belong to a tool, in which case only the tool can use this workspace. +
+ +
+
+Method Summary | +|
+ java.lang.String |
+getName()
+
++ |
+
+ java.lang.Long |
+getWorkspaceId()
+
++ |
+
+Method Detail | +
+public java.lang.String getName()+
+public java.lang.Long getWorkspaceId()+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
com.lamsinternational.lams.contentrepository.RepositoryCheckedException +
com.lamsinternational.lams.contentrepository.InvalidParameterException +
+Generic exception thrown whenever a parameter is missing. +
+ +
+
+Constructor Summary | +|
InvalidParameterException()
+
++ Constructs a new instance of this class. |
+|
InvalidParameterException(java.lang.String s)
+
++ Constructs a new instance of this class given a message describing the + failure cause. |
+|
InvalidParameterException(java.lang.String s,
+ java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a message describing the + failure and a root throwable. |
+|
InvalidParameterException(java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a root throwable. |
+
Methods inherited from class com.lamsinternational.lams.contentrepository.RepositoryCheckedException | +
getMessage |
+
Methods inherited from class java.lang.Throwable | +
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public InvalidParameterException()+
+
+public InvalidParameterException(java.lang.String s)+
+
s
- description+public InvalidParameterException(java.lang.String s, + java.lang.Throwable cause)+
+
s
- descriptioncause
- root throwable cause+public InvalidParameterException(java.lang.Throwable cause)+
+
cause
- root failure cause
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
com.lamsinternational.lams.contentrepository.RepositoryCheckedException +
com.lamsinternational.lams.contentrepository.ItemExistsException +
+An item already exists with the given id or path. +
+ +
+
+Constructor Summary | +|
ItemExistsException()
+
++ Constructs a new instance of this class. |
+|
ItemExistsException(java.lang.String s)
+
++ Constructs a new instance of this class given a message describing the + failure cause. |
+|
ItemExistsException(java.lang.String s,
+ java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a message describing the + failure and a root throwable. |
+|
ItemExistsException(java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a root throwable. |
+
Methods inherited from class com.lamsinternational.lams.contentrepository.RepositoryCheckedException | +
getMessage |
+
Methods inherited from class java.lang.Throwable | +
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public ItemExistsException()+
+
+public ItemExistsException(java.lang.String s)+
+
s
- description+public ItemExistsException(java.lang.String s, + java.lang.Throwable cause)+
+
s
- descriptioncause
- root throwable cause+public ItemExistsException(java.lang.Throwable cause)+
+
cause
- root failure cause
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
com.lamsinternational.lams.contentrepository.RepositoryCheckedException +
com.lamsinternational.lams.contentrepository.ItemNotFoundException +
+Item requested does not exist. +
+ +
+
+Constructor Summary | +|
ItemNotFoundException()
+
++ Constructs a new instance of this class. |
+|
ItemNotFoundException(java.lang.String s)
+
++ Constructs a new instance of this class given a message describing the + failure cause. |
+|
ItemNotFoundException(java.lang.String s,
+ java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a message describing the + failure and a root throwable. |
+|
ItemNotFoundException(java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a root throwable. |
+
Methods inherited from class com.lamsinternational.lams.contentrepository.RepositoryCheckedException | +
getMessage |
+
Methods inherited from class java.lang.Throwable | +
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public ItemNotFoundException()+
+
+public ItemNotFoundException(java.lang.String s)+
+
s
- description+public ItemNotFoundException(java.lang.String s, + java.lang.Throwable cause)+
+
s
- descriptioncause
- root throwable cause+public ItemNotFoundException(java.lang.Throwable cause)+
+
cause
- root failure cause
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
com.lamsinternational.lams.contentrepository.RepositoryCheckedException +
com.lamsinternational.lams.contentrepository.LoginException +
+Login failed. +
+ +
+
+Constructor Summary | +|
LoginException()
+
++ Constructs a new instance of this class. |
+|
LoginException(java.lang.String s)
+
++ Constructs a new instance of this class given a message describing the + failure cause. |
+|
LoginException(java.lang.String s,
+ java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a message describing the + failure and a root throwable. |
+|
LoginException(java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a root throwable. |
+
Methods inherited from class com.lamsinternational.lams.contentrepository.RepositoryCheckedException | +
getMessage |
+
Methods inherited from class java.lang.Throwable | +
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public LoginException()+
+
+public LoginException(java.lang.String s)+
+
s
- description+public LoginException(java.lang.String s, + java.lang.Throwable cause)+
+
s
- descriptioncause
- root throwable cause+public LoginException(java.lang.Throwable cause)+
+
cause
- root failure cause
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
com.lamsinternational.lams.contentrepository.RepositoryCheckedException +
com.lamsinternational.lams.contentrepository.NoSuchNodeTypeException +
+Tried to create a node with an unknown type. +
+ +
+
+Constructor Summary | +|
NoSuchNodeTypeException()
+
++ Constructs a new instance of this class. |
+|
NoSuchNodeTypeException(java.lang.String s)
+
++ Constructs a new instance of this class given a message describing the + failure cause. |
+|
NoSuchNodeTypeException(java.lang.String s,
+ java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a message describing the + failure and a root throwable. |
+|
NoSuchNodeTypeException(java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a root throwable. |
+
Methods inherited from class com.lamsinternational.lams.contentrepository.RepositoryCheckedException | +
getMessage |
+
Methods inherited from class java.lang.Throwable | +
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public NoSuchNodeTypeException()+
+
+public NoSuchNodeTypeException(java.lang.String s)+
+
s
- description+public NoSuchNodeTypeException(java.lang.String s, + java.lang.Throwable cause)+
+
s
- descriptioncause
- root throwable cause+public NoSuchNodeTypeException(java.lang.Throwable cause)+
+
cause
- root failure cause
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.NodeKey +
+Represents the two part key - UUID and version. + Version may be null; +
+ +
+
+Constructor Summary | +|
NodeKey(java.lang.Long uuid,
+ java.lang.Long version)
+
++ |
+
+Method Summary | +|
+ boolean |
+equals(java.lang.Object other)
+
++ |
+
+ java.lang.Long |
+getUuid()
+
++ |
+
+ java.lang.Long |
+getVersion()
+
++ |
+
+ int |
+hashCode()
+
++ |
+
+ java.lang.String |
+toString()
+
++ |
+
Methods inherited from class java.lang.Object | +
getClass, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public NodeKey(java.lang.Long uuid, + java.lang.Long version)+
+Method Detail | +
+public java.lang.Long getUuid()+
+public java.lang.Long getVersion()+
+public java.lang.String toString()+
+public boolean equals(java.lang.Object other)+
+public int hashCode()+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++junit.framework.Assert +
junit.framework.TestCase +
com.lamsinternational.lams.contentrepository.NodeTransactionTest +
+Test the node's transaction handling. Need to test the following scenarios: + +
+ +
+
+Constructor Summary | +|
NodeTransactionTest(java.lang.String name)
+
++ Constructor for NodeTransactionTest. |
+
Methods inherited from class junit.framework.TestCase | +
countTestCases, getName, run, run, runBare, setName, toString |
+
Methods inherited from class junit.framework.Assert | +
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public NodeTransactionTest(java.lang.String name)+
+
name
-
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.NodeType +
+Defines the types of nodes. If you add a new type to this file, + make sure you add it to the isValidNodeType method. +
+ +
+
+Field Summary | +|
+static java.lang.String |
+DATANODE
+
++ Node that has properties but no file. |
+
+static java.lang.String |
+FILENODE
+
++ Node has a file attached. |
+
+static java.lang.String |
+PACKAGENODE
+
++ Node represents a package of other nodes |
+
+Constructor Summary | +|
NodeType()
+
++ |
+
+Method Summary | +|
+static boolean |
+isValidNodeType(java.lang.String type)
+
++ Does this string represent a known node type. |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Field Detail | +
+public static final java.lang.String DATANODE+
+
+public static final java.lang.String FILENODE+
+
+public static final java.lang.String PACKAGENODE+
+
+Constructor Detail | +
+public NodeType()+
+Method Detail | +
+public static boolean isValidNodeType(java.lang.String type)+
+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.PropertyName +
+
+Field Summary | +|
+static java.lang.String |
+FILENAME
+
++ FILENAME is required for a file node - it is set by the call to add the file stream. |
+
+static java.lang.String |
+INITIALPATH
+
++ INITIALPATH is required for a package node |
+
+static java.lang.String |
+MIMETYPE
+
++ MIMETYPE is required for a file node - it is set by the call to add the file stream. |
+
+static java.lang.String |
+VERSIONDESC
+
++ VERSIONDESC is text description relating to a version + It should contain text meaningful to the user. |
+
+Constructor Summary | +|
PropertyName()
+
++ |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Field Detail | +
+public static final java.lang.String VERSIONDESC+
+
+public static final java.lang.String MIMETYPE+
+
+public static final java.lang.String FILENAME+
+
+public static final java.lang.String INITIALPATH+
+
+Constructor Detail | +
+public PropertyName()+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.PropertyType +
+LAMS property types. +
+ +
+
+Field Summary | +|
+static int |
+BOOLEAN
+
++ Boolean property type |
+
+static int |
+DATE
+
++ Date property type |
+
+static int |
+DOUBLE
+
++ Double property type |
+
+static int |
+LONG
+
++ Long property type |
+
+static int |
+STRING
+
++ String property type |
+
+static java.lang.String |
+TYPENAME_BOOLEAN
+
++ |
+
+static java.lang.String |
+TYPENAME_DATE
+
++ |
+
+static java.lang.String |
+TYPENAME_DOUBLE
+
++ |
+
+static java.lang.String |
+TYPENAME_LONG
+
++ |
+
+static java.lang.String |
+TYPENAME_STRING
+
++ The names of the supported property types, + as used in serialization. |
+
+static int |
+UNDEFINED
+
++ Undefined type. |
+
+Method Summary | +|
+static java.lang.String |
+nameFromValue(int type)
+
++ Returns the name of the specified type. |
+
+static int |
+valueFromName(java.lang.String name)
+
++ Returns the numeric constant value of the type with the specified name. |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Field Detail | +
+public static final int STRING+
+
+public static final int LONG+
+
+public static final int DOUBLE+
+
+public static final int DATE+
+
+public static final int BOOLEAN+
+
+public static final int UNDEFINED+
+
+public static final java.lang.String TYPENAME_STRING+
+
+public static final java.lang.String TYPENAME_LONG+
+public static final java.lang.String TYPENAME_DOUBLE+
+public static final java.lang.String TYPENAME_DATE+
+public static final java.lang.String TYPENAME_BOOLEAN+
+Method Detail | +
+public static java.lang.String nameFromValue(int type) + throws RepositoryCheckedException+
+
type
- the property type
+RepostoryException
- if the type is not a valid property type.
+RepositoryCheckedException
+public static int valueFromName(java.lang.String name) + throws RepositoryCheckedException+
+
name
- the name of the property type
+RepostoryException
- if name
+ is not a valid property type name.
+RepositoryCheckedException
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
com.lamsinternational.lams.contentrepository.RepositoryCheckedException +
+Main exception thrown by content repository classes. All exceptions thrown by the content + repository (except RepositoryRuntimeException) are based on this class, so calling code + can catch this exception and catch all of the repository exceptions, if it doesn't want to + catch particular exceptions. +
+ +
+
RepositoryRuntimeException
,
+Serialized Form+Constructor Summary | +|
RepositoryCheckedException()
+
++ Constructs a new instance of this class. |
+|
RepositoryCheckedException(java.lang.String s)
+
++ Constructs a new instance of this class given a message describing the + failure cause. |
+|
RepositoryCheckedException(java.lang.String s,
+ java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a message describing the + failure and a root throwable. |
+|
RepositoryCheckedException(java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a root throwable. |
+
+Method Summary | +|
+ java.lang.String |
+getMessage()
+
++ |
+
Methods inherited from class java.lang.Throwable | +
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public RepositoryCheckedException()+
+
+public RepositoryCheckedException(java.lang.String s)+
+
s
- description+public RepositoryCheckedException(java.lang.String s, + java.lang.Throwable cause)+
+
s
- descriptioncause
- root throwable cause+public RepositoryCheckedException(java.lang.Throwable cause)+
+
cause
- root failure cause+Method Detail | +
+public java.lang.String getMessage()+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.lamsinternational.lams.contentrepository.RepositoryRuntimeException +
+Main runtime exception thrown by content repository classes. This is only + used for unexpected internal errors, such that the calling code could + never recover. +
+ +
+
RepositoryCheckedException
,
+Serialized Form+Constructor Summary | +|
RepositoryRuntimeException()
+
++ Constructs a new instance of this class. |
+|
RepositoryRuntimeException(java.lang.String s)
+
++ Constructs a new instance of this class given a message describing the + failure cause. |
+|
RepositoryRuntimeException(java.lang.String s,
+ java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a message describing the + failure and a root throwable. |
+|
RepositoryRuntimeException(java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a root throwable. |
+
+Method Summary | +|
+ java.lang.String |
+getMessage()
+
++ |
+
Methods inherited from class java.lang.Throwable | +
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public RepositoryRuntimeException()+
+
+public RepositoryRuntimeException(java.lang.String s)+
+
s
- description+public RepositoryRuntimeException(java.lang.String s, + java.lang.Throwable cause)+
+
s
- descriptioncause
- root throwable cause+public RepositoryRuntimeException(java.lang.Throwable cause)+
+
cause
- root failure cause+Method Detail | +
+public java.lang.String getMessage()+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.SimpleCredentials +
+Basic implementation of credentials. Note: the "user id" is + actually "tool id", so its not really a password as an validation + string. +
+ When a tool logs into the repository, it will pass in a simple credentials + object which has just the userid and password set. +
+ The repository then attaches credential to the ticket. + The new credential doesn't have the password and it + is never connected from the database. +
+ The credential comparison is done using the DAO class - it + does not load the data from the database but gets the + password to the db for checking. +
+ The original credentials contains attributes. This will be useful + for the future, but has not yet been implemented. +
+
+ +
+
ICredentials
,
+Serialized Form+Constructor Summary | +|
SimpleCredentials(java.lang.String name,
+ char[] password)
+
++ Should only be used by hibernate or package calls. |
+
+Method Summary | +|
+ void |
+clearPassword()
+
++ Clear the current password. |
+
+ java.lang.String |
+getName()
+
++ Returns the name of the tool. |
+
+ char[] |
+getPassword()
+
++ Returns the password. |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
+public SimpleCredentials(java.lang.String name, + char[] password)+
+
name
- password
- +Method Detail | +
+public java.lang.String getName()+
+
getName
in interface ICredentials
+public char[] getPassword()+
+ Note that this method returns a reference to the password. + The password is set when the creditionals are passed in to get a ticket, + and then removed. +
+
+
getPassword
in interface ICredentials
+public void clearPassword()+
+
clearPassword
in interface ICredentials
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.SimpleRepository +
+Many methods in this class will throw a RepositoryRuntimeException + if the internal data is missing. This is not indicated + on the method signatures. +
+ +
+
+Field Summary | +
Fields inherited from interface com.lamsinternational.lams.contentrepository.IRepository | +
REPOSITORY_CONTEXT_PATH, REPOSITORY_SERVICE_ID |
+
+Constructor Summary | +|
SimpleRepository()
+
++ |
+
+Method Summary | +|
+ NodeKey |
+addFileItem(ITicket ticket,
+ java.io.InputStream istream,
+ java.lang.String filename,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ Add a new file to the repository. |
+
+ NodeKey |
+addPackageItem(ITicket ticket,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ Add a new package of files to the repository. |
+
+ void |
+addWorkspace(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Add a workspace, giving the credentials as the user of this workspace. |
+
+ void |
+assignCredentials(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Assign credentials to a workspace. |
+
+ void |
+createCredential(ICredentials newCredential)
+
++ Create a new repository "user" - usually a tool. |
+
+ java.lang.String[] |
+deleteNode(ITicket ticket,
+ java.lang.Long uuid)
+
++ Delete a node and all its versions, returning a list of the files + that could not be deleted properly. |
+
+ java.lang.String[] |
+deleteVersion(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ Delete the current version of a node, returning a list of the files + that could not be deleted properly. |
+
+ ICredentialDAO |
+getCredentialDAO()
+
++ |
+
+ IVersionedNode |
+getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ Get an item from the repository based on the UUID. |
+
+ IVersionedNode |
+getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String relPath,
+ java.lang.Long version)
+
++ Get an item from the repository based on the UUID and relative + path. |
+
+ java.util.SortedMap |
+getNodeList(ITicket ticket)
+
++ Get a complete list of all nodes in the workspace and their + version histories. |
+
+ java.util.SortedSet |
+getVersionHistory(ITicket ticket,
+ java.lang.Long uuid)
+
++ Get the history for a node. |
+
+ IWorkspaceDAO |
+getWorkspaceDAO()
+
++ |
+
+ ITicket |
+login(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Login, creating a new ticket for the given credentials and specified + workspace. |
+
+ void |
+logout(ITicket ticket)
+
++ Finish using this ticket. |
+
+ void |
+setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
+
++ |
+
+ void |
+setCredentialDAO(ICredentialDAO credentialDAO)
+
++ |
+
+ void |
+setWorkspaceDAO(IWorkspaceDAO workspaceDAO)
+
++ |
+
+ void |
+updateCredentials(ICredentials oldCredential,
+ ICredentials newCredential)
+
++ Update a credential. |
+
+ NodeKey |
+updateFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String filename,
+ java.io.InputStream istream,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ Update an existing file in the repository. |
+
+ NodeKey |
+updatePackageItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ Add a new package of files to the repository. |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
+public SimpleRepository()+
+Method Detail | +
+public ITicket login(ICredentials credentials, + java.lang.String workspaceName) + throws LoginException, + WorkspaceNotFoundException+
IRepository
+
login
in interface IRepository
credentials
- The credentials of the userworkspaceName
- the name of a workspace.
+ITicket
for the user to access the repository.
+WorkspaceNotFoundException
- Workspace name doesn't exist.
+LoginException
- Login authentication fails.+public void addWorkspace(ICredentials credentials, + java.lang.String workspaceName) + throws LoginException, + ItemExistsException, + RepositoryCheckedException+
+
addWorkspace
in interface IRepository
credentials
- this user/password must already exist in the repository. Password will be checked.workspaceName
-
+LoginException
- if credentials are not authorised to add/access the new workspace.
+ItemExistsException
- if the workspace already exists.
+RepositoryCheckedException
- if parameters are missing.+public void createCredential(ICredentials newCredential) + throws RepositoryCheckedException+
+
createCredential
in interface IRepository
newCredential
- this user/password will be added to the repository
+RepositoryCheckedException
- if parameters are missing.+public void updateCredentials(ICredentials oldCredential, + ICredentials newCredential) + throws LoginException, + RepositoryCheckedException, + RepositoryRuntimeException+
+
updateCredentials
in interface IRepository
oldCredential
- the current user/passwordnewCredential
- the new user/password
+LoginException
- if the oldCredential fails login test (e.g. wrong password)
+RepositoryCheckedException
- if one of the credentials objects are missing
+RepositoryRuntimeException
- if an internal error occurs.+public void assignCredentials(ICredentials credentials, + java.lang.String workspaceName) + throws RepositoryCheckedException, + WorkspaceNotFoundException, + LoginException+
+
assignCredentials
in interface IRepositoryAdmin
RepositoryCheckedException
+WorkspaceNotFoundException
+LoginException
+public void logout(ITicket ticket)+
IRepository
+
logout
in interface IRepository
ticket
- ticket issued on login. Identifies tool and workspace - mandatory+public NodeKey addFileItem(ITicket ticket, + java.io.InputStream istream, + java.lang.String filename, + java.lang.String mimeType, + java.lang.String versionDescription) + throws FileException, + AccessDeniedException, + InvalidParameterException+
IRepository
+
addFileItem
in interface IRepository
ticket
- ticket issued on login. Identifies tool and workspace - mandatoryistream
- new file, as an input stream - mandatorymimeType
- mime type of file - optionalversionDescription
- human readable comment about the version - optional
+AccessDeniedException
- if ticket doesn't allow this action
+FileException
- if unable to save node due to file error
+InvalidParameterException
- if a required parameter is missing+public NodeKey addPackageItem(ITicket ticket, + java.lang.String dirPath, + java.lang.String startFile, + java.lang.String versionDescription) + throws AccessDeniedException, + InvalidParameterException, + FileException+
IRepository
+
addPackageItem
in interface IRepository
ticket
- ticket issued on login. Identifies tool and workspace - mandatorydirPath
- directory path containing files - mandatorystartFile
- relative path of initial file - optionalversionDescription
- human readable comment about the version - optional
+AccessDeniedException
- if ticket doesn't allow this action
+InvalidParameterException
- if a required parameter is missing
+FileException
- if unable to save node due to file error+public IVersionedNode getFileItem(ITicket ticket, + java.lang.Long uuid, + java.lang.Long version) + throws AccessDeniedException, + ItemNotFoundException, + FileException+
IRepository
+
getFileItem
in interface IRepository
ticket
- ticket issued on login. Identifies tool and workspace - mandatoryuuid
- id of the file/package - mandatoryversion
- desired version - if null gets latest version
+AccessDeniedException
+ItemNotFoundException
+FileException
+public IVersionedNode getFileItem(ITicket ticket, + java.lang.Long uuid, + java.lang.String relPath, + java.lang.Long version) + throws AccessDeniedException, + ItemNotFoundException, + FileException+
IRepository
+
getFileItem
in interface IRepository
ticket
- ticket issued on login. Identifies tool and workspace - mandatoryuuid
- id of the package - mandatoryrelPath
- relative path within the package - if null,
+ returns start file.version
- desired version - if null gets latest version
+AccessDeniedException
- if ticket doesn't allow this action
+FileException
- if unable to save node due to file error
+ItemNotFoundException
- if node with uuid cannot be found+public java.util.SortedMap getNodeList(ITicket ticket) + throws AccessDeniedException+
IRepository
+ Warning: Once a workspace gets a lot of nodes, this will be + a very very expensive call!!!!! +
++
getNodeList
in interface IRepository
ticket
- ticket issued on login. Identifies tool and workspace - mandatory
+AccessDeniedException
+public java.util.SortedSet getVersionHistory(ITicket ticket, + java.lang.Long uuid) + throws ItemNotFoundException, + AccessDeniedException+
IRepository
+
getVersionHistory
in interface IRepository
ticket
- ticket issued on login. Identifies tool and workspace - mandatory
+ItemNotFoundException
+AccessDeniedException
+public NodeKey updateFileItem(ITicket ticket, + java.lang.Long uuid, + java.lang.String filename, + java.io.InputStream istream, + java.lang.String mimeType, + java.lang.String versionDescription) + throws AccessDeniedException, + ItemNotFoundException, + FileException, + InvalidParameterException+
IRepository
+
updateFileItem
in interface IRepository
ticket
- ticket issued on login. Identifies tool and workspace - mandatoryuuid
- unique id of the file - mandatoryistream
- new file, as an input stream - mandatoryversionDescription
- human readable comment about the version - optionalmimeType
- mime type of file - optional
+FileException
- if unable to save node due to file error
+ItemNotFoundException
- if node with uuid cannot be found
+AccessDeniedException
- if ticket doesn't allow this action
+InvalidParameterException
- if a required parameter is missing+public NodeKey updatePackageItem(ITicket ticket, + java.lang.Long uuid, + java.lang.String dirPath, + java.lang.String startFile, + java.lang.String versionDescription) + throws AccessDeniedException, + ItemNotFoundException, + FileException, + InvalidParameterException+
IRepository
+
updatePackageItem
in interface IRepository
ticket
- ticket issued on login. Identifies tool and workspace - mandatoryuuid
- unique id of the package - mandatorydirPath
- directory path containing files - mandatorystartFile
- relative path of initial file - optionalversionDescription
- human readable comment about the version - optional
+AccessDeniedException
- if ticket doesn't allow this action
+ItemNotFoundException
- if node with uuid cannot be found
+InvalidParameterException
- if a required parameter is missing
+FileException
- if unable to save node due to file error+public java.lang.String[] deleteNode(ITicket ticket, + java.lang.Long uuid) + throws AccessDeniedException, + InvalidParameterException, + ItemNotFoundException+
IRepository
+
deleteNode
in interface IRepository
ItemNotFoundException
- if node with uuid cannot be found
+InvalidParameterException
- if a required parameter is missing
+AccessDeniedException
- if ticket doesn't allow this action+public java.lang.String[] deleteVersion(ITicket ticket, + java.lang.Long uuid, + java.lang.Long version) + throws AccessDeniedException, + InvalidParameterException, + ItemNotFoundException+
IRepository
+
deleteVersion
in interface IRepository
InvalidParameterException
- if a required parameter is missing
+ItemNotFoundException
- if node with uuid cannot be found
+AccessDeniedException
- if ticket doesn't allow this action+public IWorkspaceDAO getWorkspaceDAO()+
+public void setWorkspaceDAO(IWorkspaceDAO workspaceDAO)+
workspaceDAO
- The workspaceDAO to set.+public ICredentialDAO getCredentialDAO()+
+public void setCredentialDAO(ICredentialDAO credentialDAO)+
credentialDAO
- The credentialDAO to set.+public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) + throws org.springframework.beans.BeansException+
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.SimpleTicket +
+SimpleTicket is a basic implementation of Ticket. +
+ +
+
+Method Summary | +|
+ void |
+clear()
+
++ Make this ticket unusable. |
+
+ boolean |
+equals(java.lang.Object other)
+
++ |
+
+ java.lang.String |
+getTicketId()
+
++ |
+
+ java.lang.Long |
+getWorkspaceId()
+
++ Get the workspace associated with this ticket + Should only be accessed by the content repository package members. |
+
+ int |
+hashCode()
+
++ |
+
+ java.lang.String |
+toString()
+
++ |
+
Methods inherited from class java.lang.Object | +
getClass, notify, notifyAll, wait, wait, wait |
+
+Method Detail | +
+public java.lang.Long getWorkspaceId()+
+
getWorkspaceId
in interface ITicket
+public java.lang.String getTicketId()+
getTicketId
in interface ITicket
+public void clear()+
+
clear
in interface ITicket
+public java.lang.String toString()+
+public boolean equals(java.lang.Object other)+
+public int hashCode()+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.SimpleVersionDetail +
+Describes the version details - for displaying a version + history. Thise is a transient object. +
+ +
+
+Method Summary | +|
+ int |
+compareTo(java.lang.Object o)
+
++ Compares this object with the specified object for order. |
+
+ boolean |
+equals(java.lang.Object other)
+
++ |
+
+ java.util.Date |
+getCreatedDateTime()
+
++ Get the date/time of when this version was created. |
+
+ java.lang.String |
+getDescription()
+
++ Get the general text string describing the version. |
+
+ java.lang.Long |
+getVersionId()
+
++ Get the version id. |
+
+ int |
+hashCode()
+
++ |
+
+ java.lang.String |
+toString()
+
++ |
+
Methods inherited from class java.lang.Object | +
getClass, notify, notifyAll, wait, wait, wait |
+
+Method Detail | +
+public java.util.Date getCreatedDateTime()+
IVersionDetail
+
getCreatedDateTime
in interface IVersionDetail
+public java.lang.String getDescription()+
IVersionDetail
+
getDescription
in interface IVersionDetail
+public java.lang.Long getVersionId()+
IVersionDetail
+
getVersionId
in interface IVersionDetail
+public java.lang.String toString()+
+public boolean equals(java.lang.Object other)+
+public int hashCode()+
+public int compareTo(java.lang.Object o) + throws java.lang.ClassCastException+
+
compareTo
in interface java.lang.Comparable
java.lang.ClassCastException
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.SimpleVersionedNode +
+This is the default implementation for IVersionedNode. + All the properties in the database. One file can be attached. +
+ The object should be created as follows: +
+ Many methods in this class will throw a RepositoryRuntimeException + if the internal data is missing. This is not indicated + on the method signatures. + + TODO instead of creating a new prototype node each time we want + one of these, use a pool. There is a significant overhead to creating + an object via the spring framework! +
+ +
+
+Constructor Summary | +|
SimpleVersionedNode()
+
++ |
+
+Method Summary | +|
+ java.util.List |
+deleteNode()
+
++ Delete all versions of this node, returning the number of nodes + deleted. |
+
+ java.util.List |
+deleteVersion()
+
++ Delete the current version of this node, returning a list of the files + that could not be deleted properly. |
+
+ void |
+destroy()
+
++ Clean up any resources that will not be cleaned up by the garbage + collector after this object is destroyed. |
+
+ java.util.Date |
+getCreatedDateTime()
+
++ Get the date/time of when this node was created. |
+
+ java.io.InputStream |
+getFile()
+
++ Get the file, as an inputstream. |
+
+ IFileDAO |
+getFileDAO()
+
++ |
+
+ IVersionedNode |
+getNode(java.lang.String relPath)
+
++ Another case for the factory? |
+
+ INodeDAO |
+getNodeDAO()
+
++ |
+
+ NodeKey |
+getNodeKey()
+
++ Get the uuid and version of this node/version |
+
+ java.util.Set |
+getNodes()
+
++ If no nodes are found, returns an empty set. |
+
+ java.lang.String |
+getNodeType()
+
++ Gets the type of the current node. |
+
+ java.lang.String |
+getPath()
+
++ Get the path of this node |
+
+ java.util.Set |
+getProperties()
+
++ Returns a set of IValue objects - this method could cause a problem + when lazy initialised. |
+
+ IValue |
+getProperty(java.lang.String name)
+
++ Returns the property at relPath relative to this + node. |
+
+ ITicket |
+getTicket()
+
++ Get the ticket through which this node was accessed. |
+
+ java.lang.Long |
+getUUID()
+
++ Returns the UUID of this node as recorded in the node's jcr:UUID + property. |
+
+ java.lang.Long |
+getVersion()
+
++ Get the version of this node. |
+
+ java.util.SortedSet |
+getVersionHistory()
+
++ Get the history for this node. |
+
+ boolean |
+hasNode(java.lang.String relPath)
+
++ Indicates whether a node exists at relPath + Returns true if a node exists at relPath and + false otherwise. |
+
+ boolean |
+hasNodes()
+
++ Indicates whether this node has child nodes. |
+
+ boolean |
+hasProperties()
+
++ Indicates whether this node has properties. |
+
+ boolean |
+hasProperty(java.lang.String name)
+
++ Indicates whether a property exists for this name + Returns true if a property exists and false otherwise. |
+
+ boolean |
+isNodeType(java.lang.String nodeTypeName)
+
++ (non-Javadoc) |
+
+ void |
+setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
+
++ |
+
+ void |
+setFile(java.io.InputStream iStream,
+ java.lang.String filename,
+ java.lang.String mimeType)
+
++ Set the file, passed in as an inputstream. |
+
+ void |
+setFileDAO(IFileDAO fileDAO)
+
++ |
+
+ void |
+setNodeDAO(INodeDAO nodeDAO)
+
++ |
+
+ void |
+setProperty(java.lang.String name,
+ boolean value)
+
++ Sets the property to a BOOLEAN value. |
+
+ void |
+setProperty(java.lang.String name,
+ java.util.Calendar value)
+
++ Sets the property a CALENDAR value. |
+
+ void |
+setProperty(java.lang.String name,
+ double value)
+
++ Sets the property to a DOUBLE value. |
+
+ void |
+setProperty(java.lang.String name,
+ long value)
+
++ Sets the property to a LONG value. |
+
+ void |
+setProperty(java.lang.String name,
+ java.lang.String value)
+
++ Sets the property to a STRING value. |
+
+ void |
+setProperty(java.lang.String name,
+ java.lang.String value,
+ int type)
+
++ Sets the property to a value, based on the specified type, after converting + from the string. |
+
+ java.lang.String |
+toString()
+
++ |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public SimpleVersionedNode()+
+Method Detail | +
+public NodeKey getNodeKey()+
IVersionedNode
+
getNodeKey
in interface IVersionedNode
+public void setProperty(java.lang.String name, + java.lang.String value, + int type)+
IVersionedNodeAdmin
+
setProperty
in interface IVersionedNodeAdmin
name
- The name of a property of this nodevalue
- The value to be assignedtype
- The type of the property+public void setProperty(java.lang.String name, + java.lang.String value) + throws RepositoryRuntimeException+
IVersionedNodeAdmin
+
setProperty
in interface IVersionedNodeAdmin
name
- The name of a property of this nodevalue
- The value to be assigned
+RepositoryRuntimeException
+public void setProperty(java.lang.String name, + boolean value)+
IVersionedNodeAdmin
+
setProperty
in interface IVersionedNodeAdmin
name
- The name of a property of this nodevalue
- The value to be assigned+public void setProperty(java.lang.String name, + double value)+
IVersionedNodeAdmin
+
setProperty
in interface IVersionedNodeAdmin
name
- The name of a property of this nodevalue
- The value to be assigned+public void setProperty(java.lang.String name, + long value)+
IVersionedNodeAdmin
+
setProperty
in interface IVersionedNodeAdmin
name
- The name of a property of this nodevalue
- The value to be assigned+public void setProperty(java.lang.String name, + java.util.Calendar value)+
IVersionedNodeAdmin
+
setProperty
in interface IVersionedNodeAdmin
name
- The name of a property of this nodevalue
- The value to be assigned+public IValue getProperty(java.lang.String name)+
IVersionedNode
+
getProperty
in interface IVersionedNode
name
-
+IVersionedNode.getProperty(java.lang.String)
+public java.util.Set getProperties()+
+
getProperties
in interface IVersionedNode
+public java.lang.Long getUUID()+
IVersionedNode
+
getUUID
in interface IVersionedNode
IVersionedNode.getUUID()
+public boolean hasProperty(java.lang.String name)+
IVersionedNode
+
hasProperty
in interface IVersionedNode
name
- The name of a (possible) property.
+IVersionedNode.hasProperty(java.lang.String)
+public boolean hasProperties()+
IVersionedNode
+
hasProperties
in interface IVersionedNode
IVersionedNode.hasProperties()
+public java.lang.String getNodeType()+
IVersionedNode
NodeType
for
+ possible node types. Note: the node type is shared across all
+ versions of a node
++
getNodeType
in interface IVersionedNode
IVersionedNode.getNodeType()
+public boolean isNodeType(java.lang.String nodeTypeName)+
+
isNodeType
in interface IVersionedNode
nodeTypeName
- the name of a node type.
+IVersionedNode.isNodeType(java.lang.String)
+public java.util.SortedSet getVersionHistory()+
+
getVersionHistory
in interface IVersionedNode
+public java.lang.String getPath()+
IVersionedNode
+
getPath
in interface IVersionedNode
IVersionedNode.getPath()
+public ITicket getTicket()+
IVersionedNode
+
getTicket
in interface IVersionedNode
IVersionedNode.getTicket()
+public java.lang.Long getVersion()+
IVersionedNode
+
getVersion
in interface IVersionedNode
IVersionedNode.getVersion()
+public java.util.Date getCreatedDateTime()+
IVersionedNode
+
getCreatedDateTime
in interface IVersionedNode
IVersionedNode.getCreatedDateTime()
+public java.io.InputStream getFile() + throws FileException+
+
getFile
in interface IVersionedNode
FileException
+public void setFile(java.io.InputStream iStream, + java.lang.String filename, + java.lang.String mimeType) + throws InvalidParameterException+
+
setFile
in interface IVersionedNodeAdmin
iStream
- mandatoryfilename
- mandatorymimeType
- optional
+InvalidParameterException
+public java.lang.String toString()+
+public IVersionedNode getNode(java.lang.String relPath) + throws ItemNotFoundException+
+
getNode
in interface IVersionedNode
relPath
- The relative path of the node to retrieve.
+ItemNotFoundException
- If no node exists at the
+ specified path.IVersionedNode.getNode(String relPath)
+public java.util.Set getNodes()+
+
getNodes
in interface IVersionedNode
IVersionedNode.getNodes()
+public boolean hasNode(java.lang.String relPath)+
IVersionedNode
+
hasNode
in interface IVersionedNode
relPath
- The path of a (possible) node.
+IVersionedNode.hasNode(String relPath)
+public boolean hasNodes()+
IVersionedNode
+
hasNodes
in interface IVersionedNode
IVersionedNode.hasNodes()
+public java.util.List deleteNode()+
+
deleteNode
in interface IVersionedNodeAdmin
IVersionedNodeAdmin.deleteNode()
+public java.util.List deleteVersion()+
IVersionedNodeAdmin
+
deleteVersion
in interface IVersionedNodeAdmin
IVersionedNodeAdmin.deleteVersion()
+public INodeDAO getNodeDAO()+
+public void setNodeDAO(INodeDAO nodeDAO)+
nodeDAO
- The nodeDAO to set.+public IFileDAO getFileDAO()+
+public void setFileDAO(IFileDAO fileDAO)+
fileDAO
- The fileDAO to set.+public void destroy()+
+
+public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) + throws org.springframework.beans.BeansException+
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++junit.framework.Assert +
junit.framework.TestCase +
com.lamsinternational.lams.contentrepository.BaseTestCase +
com.lamsinternational.lams.contentrepository.TestSimpleRepository +
+Test SimpleRepository and the Credentials code. +
+ +
+
+Constructor Summary | +|
TestSimpleRepository()
+
++ Constructor for SimpleRepositoryTest. |
+
+Method Summary | +|
+ void |
+testAddWorkspace()
+
++ |
+
+ void |
+testFileItemDeleteNode()
+
++ create a node with two versions and test deleting them using delete node |
+
+ void |
+testFileItemDeleteNodeFileProb()
+
++ create a node with two versions and test deleting them using delete node + but first rig the files so one of them is already gone and the other one is + read only. |
+
+ void |
+testFileItemDeleteVersion()
+
++ create a node with two versions and test deleting them using delete version |
+
+ void |
+testLoginFailWrongPassword()
+
++ |
+
+ void |
+testLoginFailWrongUser()
+
++ |
+
+ void |
+testLoginFailWrongWorkspaceDoesNotExist()
+
++ |
+
+ void |
+testLoginFailWrongWorkspaceExists()
+
++ |
+
+ void |
+testLoginPass()
+
++ |
+
+ void |
+testLogout()
+
++ |
+
+ void |
+testPackageItem()
+
++ |
+
+ void |
+testUserAdmin()
+
++ Tests adding a new user and changing a password |
+
Methods inherited from class junit.framework.TestCase | +
countTestCases, getName, run, run, runBare, setName, toString |
+
Methods inherited from class junit.framework.Assert | +
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public TestSimpleRepository()+
+
+Method Detail | +
+public void testLoginPass()+
+public void testLoginFailWrongUser()+
+public void testLoginFailWrongPassword()+
+public void testLoginFailWrongWorkspaceExists()+
+public void testLoginFailWrongWorkspaceDoesNotExist()+
+public void testAddWorkspace()+
+public void testUserAdmin()+
+
+public void testFileItemDeleteVersion()+
+
+public void testFileItemDeleteNode()+
+
+public void testFileItemDeleteNodeFileProb()+
+
+public void testPackageItem()+
+public void testLogout()+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++junit.framework.Assert +
junit.framework.TestCase +
com.lamsinternational.lams.contentrepository.BaseTestCase +
com.lamsinternational.lams.contentrepository.TestSimpleTicket +
+Test the SimpleTicket class. Tests the methods for + the ITicket interface. +
+ +
+
+Constructor Summary | +|
TestSimpleTicket()
+
++ Constructor for TestSimpleTicket. |
+
+Method Summary | +|
+ void |
+testGetTicketId()
+
++ |
+
+ void |
+testGetWorkspaceId()
+
++ |
+
Methods inherited from class junit.framework.TestCase | +
countTestCases, getName, run, run, runBare, setName, toString |
+
Methods inherited from class junit.framework.Assert | +
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public TestSimpleTicket() + throws LoginException, + AccessDeniedException, + WorkspaceNotFoundException+
+ +
WorkspaceNotFoundException
+AccessDeniedException
+LoginException
+Method Detail | +
+public void testGetWorkspaceId()+
+public void testGetTicketId()+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++junit.framework.Assert +
junit.framework.TestCase +
com.lamsinternational.lams.contentrepository.TestSimpleVersionDetail +
+Checks creation and ordering of SimpleVersionDetail objects, + using the IVersionDetail interface. + + Needs to be in the same package as SimpleVersionDetail + to access protected constructor. +
+ +
+
+Constructor Summary | +|
TestSimpleVersionDetail()
+
++ |
+
+Method Summary | +|
+ void |
+testCompareTo()
+
++ |
+
+ void |
+testEqualsObject()
+
++ |
+
+ void |
+testGetCreatedDateTime()
+
++ |
+
+ void |
+testGetDescription()
+
++ |
+
+ void |
+testGetVersionId()
+
++ |
+
Methods inherited from class junit.framework.TestCase | +
countTestCases, getName, run, run, runBare, setName, toString |
+
Methods inherited from class junit.framework.Assert | +
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public TestSimpleVersionDetail()+
+Method Detail | +
+public void testGetCreatedDateTime()+
+public void testGetDescription()+
+public void testGetVersionId()+
+public void testEqualsObject()+
+public void testCompareTo()+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++junit.framework.Assert +
junit.framework.TestCase +
com.lamsinternational.lams.contentrepository.BaseTestCase +
com.lamsinternational.lams.contentrepository.TestSimpleVersionedNode +
+
+Constructor Summary | +|
TestSimpleVersionedNode()
+
++ Constructor for TestSimpleVersionedNode. |
+
+Method Summary | +|
+ void |
+testAddNode()
+
++ |
+
+ void |
+testAddNodeBadType()
+
++ |
+
+ void |
+testBinaryFileNode()
+
++ |
+
+ void |
+testGetCreatedDateTime()
+
++ |
+
+ void |
+testGetNodeType()
+
++ |
+
+ void |
+testGetPath()
+
++ |
+
+ void |
+testGetProperties()
+
++ |
+
+ void |
+testGetVersion()
+
++ |
+
+ void |
+testGetVersionHistory()
+
++ |
+
+ void |
+testHasProperties()
+
++ |
+
+ void |
+testHasProperty()
+
++ |
+
+ void |
+testIsNodeType()
+
++ |
+
+ void |
+testSetPropertySpecifiedType()
+
++ |
+
+ void |
+testSetPropertyStringboolean()
+
++ |
+
+ void |
+testSetPropertyStringCalendar()
+
++ |
+
+ void |
+testSetPropertyStringdouble()
+
++ |
+
+ void |
+testSetPropertyStringIValue()
+
++ |
+
+ void |
+testSetPropertyStringlong()
+
++ |
+
+ void |
+testSetPropertyStringString()
+
++ |
+
+ void |
+testTextFileNode()
+
++ |
+
Methods inherited from class junit.framework.TestCase | +
countTestCases, getName, run, run, runBare, setName, toString |
+
Methods inherited from class junit.framework.Assert | +
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public TestSimpleVersionedNode() + throws ItemExistsException, + NoSuchNodeTypeException, + RepositoryCheckedException+
+ +
RepositoryCheckedException
+NoSuchNodeTypeException
+ItemExistsException
+Method Detail | +
+public void testSetPropertyStringIValue()+
+public void testSetPropertySpecifiedType()+
+public void testSetPropertyStringString()+
+public void testSetPropertyStringboolean()+
+public void testSetPropertyStringdouble()+
+public void testSetPropertyStringlong()+
+public void testSetPropertyStringCalendar()+
+public void testGetProperties()+
+public void testHasProperty()+
+public void testHasProperties()+
+public void testGetNodeType()+
+public void testIsNodeType()+
+public void testGetVersionHistory()+
+public void testGetPath()+
+public void testGetVersion()+
+public void testGetCreatedDateTime()+
+public void testAddNode()+
+public void testTextFileNode()+
+public void testBinaryFileNode()+
+public void testAddNodeBadType()+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
com.lamsinternational.lams.contentrepository.RepositoryCheckedException +
com.lamsinternational.lams.contentrepository.ValidationException +
+The node is invalid for some reason. The reason should be given in + the exception message. +
+ +
+
+Constructor Summary | +|
ValidationException()
+
++ Constructs a new instance of this class. |
+|
ValidationException(java.lang.String s)
+
++ Constructs a new instance of this class given a message describing the + failure cause. |
+|
ValidationException(java.lang.String s,
+ java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a message describing the + failure and a root throwable. |
+|
ValidationException(java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a root throwable. |
+
Methods inherited from class com.lamsinternational.lams.contentrepository.RepositoryCheckedException | +
getMessage |
+
Methods inherited from class java.lang.Throwable | +
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public ValidationException()+
+
+public ValidationException(java.lang.String s)+
+
s
- description+public ValidationException(java.lang.String s, + java.lang.Throwable cause)+
+
s
- descriptioncause
- root throwable cause+public ValidationException(java.lang.Throwable cause)+
+
cause
- root failure cause
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
com.lamsinternational.lams.contentrepository.RepositoryCheckedException +
com.lamsinternational.lams.contentrepository.ValueFormatException +
+Thrown when value is assigned to a propery of the wrong type, or some + other formatting type problem. +
+ +
+
+Constructor Summary | +|
ValueFormatException()
+
++ Constructs a new instance of this class. |
+|
ValueFormatException(java.lang.String s)
+
++ Constructs a new instance of this class given a message describing the + failure cause. |
+|
ValueFormatException(java.lang.String s,
+ java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a message describing the + failure and a root throwable. |
+|
ValueFormatException(java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a root throwable. |
+
Methods inherited from class com.lamsinternational.lams.contentrepository.RepositoryCheckedException | +
getMessage |
+
Methods inherited from class java.lang.Throwable | +
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public ValueFormatException()+
+
+public ValueFormatException(java.lang.String s)+
+
s
- description+public ValueFormatException(java.lang.String s, + java.lang.Throwable cause)+
+
s
- descriptioncause
- root throwable cause+public ValueFormatException(java.lang.Throwable cause)+
+
cause
- root failure cause
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
com.lamsinternational.lams.contentrepository.RepositoryCheckedException +
com.lamsinternational.lams.contentrepository.WorkspaceNotFoundException +
+Requested workspace not found. +
+ +
+
+Constructor Summary | +|
WorkspaceNotFoundException()
+
++ Constructs a new instance of this class. |
+|
WorkspaceNotFoundException(java.lang.String s)
+
++ Constructs a new instance of this class given a message describing the + failure cause. |
+|
WorkspaceNotFoundException(java.lang.String s,
+ java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a message describing the + failure and a root throwable. |
+|
WorkspaceNotFoundException(java.lang.Throwable cause)
+
++ Constructs a new instance of this class given a root throwable. |
+
Methods inherited from class com.lamsinternational.lams.contentrepository.RepositoryCheckedException | +
getMessage |
+
Methods inherited from class java.lang.Throwable | +
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public WorkspaceNotFoundException()+
+
+public WorkspaceNotFoundException(java.lang.String s)+
+
s
- description+public WorkspaceNotFoundException(java.lang.String s, + java.lang.Throwable cause)+
+
s
- descriptioncause
- root throwable cause+public WorkspaceNotFoundException(java.lang.Throwable cause)+
+
cause
- root failure cause
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+Interfaces
+
+ +ICredentials + +IRepository + +IRepositoryAdmin + +ITicket + +IValue + +IVersionDetail + +IVersionedNode + +IVersionedNodeAdmin + +IWorkspace |
+
+Classes
+
+ +CrCredential + +CrNode + +CrNodeVersion + +CrNodeVersionProperty + +CrWorkspace + +CrWorkspaceCredential + +NodeKey + +NodeType + +PropertyName + +PropertyType + +SimpleCredentials + +SimpleRepository + +SimpleTicket + +SimpleVersionDetail + +SimpleVersionedNode |
+
+Exceptions
+
+ +AccessDeniedException + +FileException + +InvalidParameterException + +ItemExistsException + +ItemNotFoundException + +LoginException + +NoSuchNodeTypeException + +RepositoryCheckedException + +RepositoryRuntimeException + +ValidationException + +ValueFormatException + +WorkspaceNotFoundException |
+
+
+
|
++ + | +||||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + | +
+See:
+
+ Description
+
+ +
+Interface Summary | +|
ICredentials | +Base interface for all credentials that may be passed to the + Repository.login() method. | +
IRepository | +Tool access to the repository | +
IRepositoryAdmin | +Administrative interface to the Repository. | +
ITicket | +Ticket represents the "authorisation" key to the repository. | +
IValue | +A value is an object which is explicitly marked with a type. | +
IVersionDetail | +Describes the version of a node. | +
IVersionedNode | +The IVersionedNode interface represents a particular version of a node + in the hierarchy that makes up the repository. | +
IVersionedNodeAdmin | +IVersionedNodeAdmin represents the full functionality for a versioned node. | +
IWorkspace | +A workspace is a grouping of content, which is accessed by a ticket. | +
+ +
+Class Summary | +|
CrCredential | ++ |
CrNode | ++ |
CrNodeVersion | ++ |
CrNodeVersionProperty | ++ |
CrWorkspace | ++ |
CrWorkspaceCredential | ++ |
NodeKey | +Represents the two part key - UUID and version. | +
NodeType | +Defines the types of nodes. | +
PropertyName | ++ |
PropertyType | +LAMS property types. | +
SimpleCredentials | +Basic implementation of credentials. | +
SimpleRepository | +Many methods in this class will throw a RepositoryRuntimeException + if the internal data is missing. | +
SimpleTicket | +SimpleTicket is a basic implementation of Ticket. | +
SimpleVersionDetail | +Describes the version details - for displaying a version + history. | +
SimpleVersionedNode | +This is the default implementation for IVersionedNode. | +
+ +
+Exception Summary | +|
AccessDeniedException | +The current ticket doesn't have sufficient rights for the requested action. | +
FileException | +Some error was generated reading or writing the files + to disk. | +
InvalidParameterException | +Generic exception thrown whenever a parameter is missing. | +
ItemExistsException | +An item already exists with the given id or path. | +
ItemNotFoundException | +Item requested does not exist. | +
LoginException | +Login failed. | +
NoSuchNodeTypeException | +Tried to create a node with an unknown type. | +
RepositoryCheckedException | +Main exception thrown by content repository classes. | +
RepositoryRuntimeException | +Main runtime exception thrown by content repository classes. | +
ValidationException | +The node is invalid for some reason. | +
ValueFormatException | +Thrown when value is assigned to a propery of the wrong type, or some + other formatting type problem. | +
WorkspaceNotFoundException | +Requested workspace not found. | +
+
+This content repository is designed to store single files and +packages of files on disk in a relatively. It is not a full +blown repository as you would find behind a web development +package. +
++Each entry in the repository is represented as a "node", which +has a unique id or uuid. Each node belongs to a workspace, and +there may be many versions to the node. The files are stored on disk +and the information about the files is stored in the lams_cr_* tables +in the database. +
++A node may represent a single file (a FILENODE) or be a package node. A +package node has a set of child nodes which are file nodes. +
+The repository keeps a set of properties for each node. At the moment, +these are read only to tools. An additional parameter +containing arbitrary nodes could easily be added to the repository +calls and this would allow the repository to store arbitrary properties +on behalf of tools. +
+ +The classes of interest to tools are as follows. Apart from SimpleCredentials, tools should use the interfaces +and not the implemented classes to allow the implementation to be changed in the future. + +
ICredentials , SimpleCredentials | SimpleCredentials is an implementation of ICredentials. To log in, the +tool will create a SimpleCredentials object. |
IRepository | The interface used for access to the repository. This is the equivalent of a SLSB interface +to the repository. It is implemented by singleton SimpleRepository and accessed via the Spring context. |
ITicket | The Ticket represents the "authorisation" key to the repository. When the tool logs in, it +will be passed a SimpleTicket object, which implements the ITicket interface. This ticket must be supplied +back to the repository to access the tool's nodes. |
IValue | An object that allows the value of a property to be used as a String, Long, Double, Boolean +or Calendar. At present, only Strings have been used so other types (particularly Calendar) may not +function correctly. Implemented by CrNodeVersionProperty (a Hibernate based data object). |
IVersionDetail | Describes the versions of a node. Useful for displaying a version history if the +user needs to select a particular version. Implemented by SimpleVersionDetail. |
IVersionedNode | The IVersionedNode interface represents a particular version of a node. When +the tool asks for a file or package, it will be returned the node representing the files. This node +will allow the package to get not only the filestream but the original file name and mime type. |
NodeKey | The key to a node is made up of the UUID (Long) and a version (Long). This class +encapsulates both keys, and is used to return the keys when a node is created/updated. |
NodeType | Defines all the valid node types. Used for testing +whether something is a file node or a package node: e.g. isNodeType(NodeType.FILENODE). |
PropertyName | Defines all the current property names - such as MIMETYPE, FILENAME. +Used to get the appropriate property from a node. e.g. IValue value = node.getProperty(PropertyName.MIMETYPE). |
PropertyType | Defines what type a property really is - String, Long, Double, etc. |
Note: All interfaces with Admin in their name are only to be used within the repository and must not be used by tools. +It is intended to make these protected interfaces if possible - they are used by Spring so this may be difficult.
+ ++Sample usage of the repository can be seen in example webapp, built as lamscr.war. The struts classes +are in com.lamsinternational.lams.contentrepository.struts (in the src hierarchy) +and the jsps are in the web hierarchy. +
+ +When a tool is installed, it should identify itself to the repository and create a new workspace
++ ApplicationContext context = new ClassPathXmlApplicationContext(IRepository.REPOSITORY_CONTEXT_PATH); + IRepository repository = (IRepository)context.getBean(IRepository.REPOSITORY_SERVICE_ID); + ICredentials cred = new SimpleCredentials(toolName, toolId); + repository.createCredential(cred); + repository.addWorkspace(cred, workspaceName); ++ +
Before accessing the repository, the tool will need to log in. +Once the tool has been given a ticket, it must use the same repository +object (ie a repository returned by the same context). If it gets a repository +from a different context, the ticket will not be recognised and access denied. +This is a shortcoming in the repository and needs to be fixed. +
+There is currently no timeout on a ticket (despite what the exception +says) so the tool may keep it for months if it wants. But if the tool +receives an access denied exception, then something has gone wrong and the +ticket is no longer valid so the tool should log in again and get a new +ticket.
++ ITicket ticket = repository.login(cred, workspaceName); ++ +
Using the ticket, the tool can now add, retrieve and delete nodes. Deleting a package +node deletes all the files in the package. Warning: deleting +removes the node completely - from both the database and the file system.
++ NodeKey fileNodeKeyV1 = repository.login.addFileItem(ticket, inputstream, filename, + mimeType, versionDescription); + IVersionedNode version1Node = repository.getFileItem(ticket,fileNodeKeyV1.getUuid(), fileNodeKeyV1.getVersion()); + + NodeKey fileNodeKeyV2 = getRepository().updateFileItem(ticket, fileNodeKeyV1.getUuid(), filename, + IVersionedNode version2Node = repository.getFileItem(ticket,fileNodeKeyV2.getUuid(), fileNodeKeyV2.getVersion()); + IVersionedNode latestFileVersionNode = repository.getFileItem(ticket,fileNodeKeyV2.getUuid(), null); + InputStream isForOutputToScreen1 = latestFileVersionNode.getFile(); + + String[] problemFiles = repository.deleteVersion(ticket,fileNodeKeyV1.getUuid(), fileNodeKeyV1.getVersion()); + + NodeKey packageNodeKeyV1 = repository.addPackageItem(ticket,directoryName, initialFile, versionDescription); + IVersionedNode package1Node = repository.getFileItem(packageNodeKeyV1.getUuid(), packageNodeKeyV1.getVersion()); + + NodeKey packageNodeKeyV2 = repository.updatePackageItem(ticket, packageNodeKeyV1.getUuid(), directoryName, initialFile, versionDescription); + IVersionedNode package2Node = repository.getFileItem(packageNodeKeyV2.getUuid(), packageNodeKeyV2.getVersion()); + IVersionedNode latestPackageVersionNode = repository.getFileItem(ticket,fileNodeKeyV2.getUuid(), null); + InputStream isForOutputToScreen2 = latestPackageVersionNode(); + + String[] problemFiles2 = getRepository().deleteNode(ticket,packageNodeKeyV1.getUuid()); ++ +
When the tool is complete, it should logout from the repository. This +invalidates the ticket.
++ repository.logout(ticket); ++
There are two sorts of exceptions - RepositoryCheckedException and +RepositoryRuntimeException.
+ +RepositoryRuntimeException may be thrown +by any call to the repository irrespective of whether it is defined +in the signature. It is used for internal errors, not errors caused +by bad input from a tool. The repository may also thrown other runtime +errors, such as the Spring runtime errors which wrap Hibernate errors. +
+ +RepositoryCheckedException is the superclass to 10 detailed +checked exceptions. Most calls throw more than one detailed exception. +Calling code can catch either the detailed exceptions or just +RepositoryCheckedException.
+ +All the calls on IRepository should be transactional, defined +in the Spring context file. If any are not defined in the context file, then +this is a bug and should be corrected!!!!!!!!!. All +of the transactions should roll back on both the RepositoryCheckedException +(as it is defined in the context file) and RepositoryRuntimeException +as the Spring trasactions will roll back on any RuntimeException. +However, all we can roll back are database changes. We cannot roll back +file system changes. For this reason, we try to do the database changes +first. But it isn't perfect.
+ +After configuring (see previous section) use the ANT Build script to build and deploy +the content repository code. +
+ +
+
+
+
|
++ + | +||||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use com.lamsinternational.lams.contentrepository | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.dao | ++ |
com.lamsinternational.lams.contentrepository.dao.file | ++ |
com.lamsinternational.lams.contentrepository.dao.hibernate | ++ |
com.lamsinternational.lams.contentrepository.struts.action | ++ |
+Classes in com.lamsinternational.lams.contentrepository used by com.lamsinternational.lams.contentrepository | +|
AccessDeniedException
+
+ + The current ticket doesn't have sufficient rights for the requested action. |
+|
CrCredential
+
+ + |
+|
CrNode
+
+ + |
+|
CrNodeVersion
+
+ + |
+|
CrNodeVersionProperty
+
+ + |
+|
CrWorkspace
+
+ + |
+|
FileException
+
+ + Some error was generated reading or writing the files + to disk. |
+|
ICredentials
+
+ + Base interface for all credentials that may be passed to the + Repository.login() method. |
+|
InvalidParameterException
+
+ + Generic exception thrown whenever a parameter is missing. |
+|
IRepository
+
+ + Tool access to the repository |
+|
IRepositoryAdmin
+
+ + Administrative interface to the Repository. |
+|
ItemExistsException
+
+ + An item already exists with the given id or path. |
+|
ItemNotFoundException
+
+ + Item requested does not exist. |
+|
ITicket
+
+ + Ticket represents the "authorisation" key to the repository. |
+|
IValue
+
+ + A value is an object which is explicitly marked with a type. |
+|
IVersionDetail
+
+ + Describes the version of a node. |
+|
IVersionedNode
+
+ + The IVersionedNode interface represents a particular version of a node + in the hierarchy that makes up the repository. |
+|
IVersionedNodeAdmin
+
+ + IVersionedNodeAdmin represents the full functionality for a versioned node. |
+|
IWorkspace
+
+ + A workspace is a grouping of content, which is accessed by a ticket. |
+|
LoginException
+
+ + Login failed. |
+|
NodeKey
+
+ + Represents the two part key - UUID and version. |
+|
RepositoryCheckedException
+
+ + Main exception thrown by content repository classes. |
+|
RepositoryRuntimeException
+
+ + Main runtime exception thrown by content repository classes. |
+|
ValueFormatException
+
+ + Thrown when value is assigned to a propery of the wrong type, or some + other formatting type problem. |
+|
WorkspaceNotFoundException
+
+ + Requested workspace not found. |
+
+Classes in com.lamsinternational.lams.contentrepository used by com.lamsinternational.lams.contentrepository.dao | +|
CrCredential
+
+ + |
+|
CrWorkspace
+
+ + |
+|
FileException
+
+ + Some error was generated reading or writing the files + to disk. |
+|
ICredentials
+
+ + Base interface for all credentials that may be passed to the + Repository.login() method. |
+|
IWorkspace
+
+ + A workspace is a grouping of content, which is accessed by a ticket. |
+|
RepositoryRuntimeException
+
+ + Main runtime exception thrown by content repository classes. |
+
+Classes in com.lamsinternational.lams.contentrepository used by com.lamsinternational.lams.contentrepository.dao.file | +|
FileException
+
+ + Some error was generated reading or writing the files + to disk. |
+
+Classes in com.lamsinternational.lams.contentrepository used by com.lamsinternational.lams.contentrepository.dao.hibernate | +|
CrCredential
+
+ + |
+|
CrWorkspace
+
+ + |
+|
ICredentials
+
+ + Base interface for all credentials that may be passed to the + Repository.login() method. |
+|
IWorkspace
+
+ + A workspace is a grouping of content, which is accessed by a ticket. |
+|
RepositoryCheckedException
+
+ + Main exception thrown by content repository classes. |
+|
RepositoryRuntimeException
+
+ + Main runtime exception thrown by content repository classes. |
+
+Classes in com.lamsinternational.lams.contentrepository used by com.lamsinternational.lams.contentrepository.struts.action | +|
AccessDeniedException
+
+ + The current ticket doesn't have sufficient rights for the requested action. |
+|
FileException
+
+ + Some error was generated reading or writing the files + to disk. |
+|
InvalidParameterException
+
+ + Generic exception thrown whenever a parameter is missing. |
+|
ItemNotFoundException
+
+ + Item requested does not exist. |
+|
RepositoryCheckedException
+
+ + Main exception thrown by content repository classes. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use AccessDeniedException | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.struts.action | ++ |
+Uses of AccessDeniedException in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that throw AccessDeniedException | +|
+ NodeKey |
+SimpleRepository.addFileItem(ITicket ticket,
+ java.io.InputStream istream,
+ java.lang.String filename,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ |
+
+ NodeKey |
+SimpleRepository.addPackageItem(ITicket ticket,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ |
+
+ IVersionedNode |
+SimpleRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ |
+
+ IVersionedNode |
+SimpleRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String relPath,
+ java.lang.Long version)
+
++ |
+
+ java.util.SortedMap |
+SimpleRepository.getNodeList(ITicket ticket)
+
++ |
+
+ java.util.SortedSet |
+SimpleRepository.getVersionHistory(ITicket ticket,
+ java.lang.Long uuid)
+
++ |
+
+ NodeKey |
+SimpleRepository.updateFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String filename,
+ java.io.InputStream istream,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ |
+
+ NodeKey |
+SimpleRepository.updatePackageItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ |
+
+ java.lang.String[] |
+SimpleRepository.deleteNode(ITicket ticket,
+ java.lang.Long uuid)
+
++ |
+
+ java.lang.String[] |
+SimpleRepository.deleteVersion(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ |
+
+ ITicket |
+IRepository.login(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Login, creating a new ticket for the given credentials and specified + workspace. |
+
+ NodeKey |
+IRepository.addFileItem(ITicket ticket,
+ java.io.InputStream istream,
+ java.lang.String filename,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ Add a new file to the repository. |
+
+ NodeKey |
+IRepository.addPackageItem(ITicket ticket,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ Add a new package of files to the repository. |
+
+ NodeKey |
+IRepository.updateFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String filename,
+ java.io.InputStream istream,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ Update an existing file in the repository. |
+
+ NodeKey |
+IRepository.updatePackageItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ Add a new package of files to the repository. |
+
+ IVersionedNode |
+IRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ Get an item from the repository based on the UUID. |
+
+ IVersionedNode |
+IRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String relPath,
+ java.lang.Long versionId)
+
++ Get an item from the repository based on the UUID and relative + path. |
+
+ java.util.SortedSet |
+IRepository.getVersionHistory(ITicket ticket,
+ java.lang.Long uuid)
+
++ Get the history for a node. |
+
+ java.lang.String[] |
+IRepository.deleteVersion(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ Delete the current version of a node, returning a list of the files + that could not be deleted properly. |
+
+ java.lang.String[] |
+IRepository.deleteNode(ITicket ticket,
+ java.lang.Long uuid)
+
++ Delete a node and all its versions, returning a list of the files + that could not be deleted properly. |
+
+ java.util.SortedMap |
+IRepository.getNodeList(ITicket ticket)
+
++ Get a complete list of all nodes in the workspace and their + version histories. |
+
+Uses of AccessDeniedException in com.lamsinternational.lams.contentrepository.struts.action | +
+ +
Methods in com.lamsinternational.lams.contentrepository.struts.action that throw AccessDeniedException | +|
+ org.apache.struts.action.ActionForward |
+NodeSelectionAction.getList(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Get the list of nodes in the workspace. |
+
+ org.apache.struts.action.ActionForward |
+NodeSelectionAction.deleteNode(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Delete a version of a node, or the whole node. |
+
+ org.apache.struts.action.ActionForward |
+AddFileContentAction.uploadFile(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Uploads a single file. |
+
+ org.apache.struts.action.ActionForward |
+AddFileContentAction.uploadPackage(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Uploads a package |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use BaseTestCase | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.dao.file | ++ |
+Uses of BaseTestCase in com.lamsinternational.lams.contentrepository | +
+ +
Subclasses of BaseTestCase in com.lamsinternational.lams.contentrepository | +|
+ class |
+TestSimpleRepository
+
++ Test SimpleRepository and the Credentials code. |
+
+ class |
+TestSimpleTicket
+
++ Test the SimpleTicket class. |
+
+ class |
+TestSimpleVersionedNode
+
++ |
+
+Uses of BaseTestCase in com.lamsinternational.lams.contentrepository.dao.file | +
+ +
Subclasses of BaseTestCase in com.lamsinternational.lams.contentrepository.dao.file | +|
+ class |
+TestFileDAO
+
++ |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use CrCredential | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.dao | ++ |
com.lamsinternational.lams.contentrepository.dao.hibernate | ++ |
+Uses of CrCredential in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that return CrCredential | +|
+ CrCredential |
+CrWorkspaceCredential.getCrCredential()
+
++ |
+
+ +
Methods in com.lamsinternational.lams.contentrepository with parameters of type CrCredential | +|
+ void |
+CrWorkspaceCredential.setCrCredential(CrCredential crCredential)
+
++ |
+
+ +
Constructors in com.lamsinternational.lams.contentrepository with parameters of type CrCredential | +|
CrWorkspaceCredential(CrWorkspace crWorkspace,
+ CrCredential crCredential)
+
++ full constructor |
+
+Uses of CrCredential in com.lamsinternational.lams.contentrepository.dao | +
+ +
Methods in com.lamsinternational.lams.contentrepository.dao that return CrCredential | +|
+ CrCredential |
+ICredentialDAO.findByName(java.lang.String name)
+
++ |
+
+Uses of CrCredential in com.lamsinternational.lams.contentrepository.dao.hibernate | +
+ +
Methods in com.lamsinternational.lams.contentrepository.dao.hibernate that return CrCredential | +|
+ CrCredential |
+CredentialDAO.findByName(java.lang.String name)
+
++ |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use CrNode | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
+Uses of CrNode in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that return CrNode | +|
+ CrNode |
+CrNodeVersion.getNode()
+
++ |
+
+ +
Methods in com.lamsinternational.lams.contentrepository with parameters of type CrNode | +|
+ void |
+CrNodeVersion.setNode(CrNode node)
+
++ |
+
+ +
Constructors in com.lamsinternational.lams.contentrepository with parameters of type CrNode | +|
CrNodeVersion(java.lang.Long versionId,
+ java.util.Date createdDateTime,
+ CrNode node,
+ CrNodeVersion parentNodeVersion,
+ java.util.Set crNodeVersionProperties,
+ java.util.Set childNodeVersions)
+
++ full constructor |
+|
CrNodeVersion(java.lang.Long versionId,
+ CrNode node,
+ CrNodeVersion parentNodeVersion,
+ java.util.Set crNodeVersionProperties,
+ java.util.Set childNodeVersions)
+
++ minimal constructor |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use CrNodeVersion | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
+Uses of CrNodeVersion in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that return CrNodeVersion | +|
+ CrNodeVersion |
+CrNode.getNodeVersion(java.lang.Long versionId)
+
++ Get a particular version of this node |
+
+ CrNodeVersion |
+CrNodeVersion.getParentNodeVersion()
+
++ |
+
+ CrNodeVersion |
+CrNodeVersion.getChildNodeVersion(java.lang.String relPath)
+
++ Remove a child node to the childNodeVersions collection. |
+
+ CrNodeVersion |
+CrNodeVersionProperty.getCrNodeVersion()
+
++ |
+
+ +
Methods in com.lamsinternational.lams.contentrepository with parameters of type CrNodeVersion | +|
+ void |
+CrNodeVersion.setParentNodeVersion(CrNodeVersion parentNodeVersion)
+
++ |
+
+ void |
+CrNodeVersion.addChildNodeVersion(CrNodeVersion childNode)
+
++ Add a child node to the childNodeVersions collection. |
+
+ void |
+CrNodeVersion.removeChildNodeVersion(CrNodeVersion childNode)
+
++ Remove a child node to the childNodeVersions collection. |
+
+ void |
+CrNodeVersionProperty.setCrNodeVersion(CrNodeVersion crNodeVersion)
+
++ |
+
+ +
Constructors in com.lamsinternational.lams.contentrepository with parameters of type CrNodeVersion | +|
CrNodeVersion(java.lang.Long versionId,
+ java.util.Date createdDateTime,
+ CrNode node,
+ CrNodeVersion parentNodeVersion,
+ java.util.Set crNodeVersionProperties,
+ java.util.Set childNodeVersions)
+
++ full constructor |
+|
CrNodeVersion(java.lang.Long versionId,
+ CrNode node,
+ CrNodeVersion parentNodeVersion,
+ java.util.Set crNodeVersionProperties,
+ java.util.Set childNodeVersions)
+
++ minimal constructor |
+|
CrNodeVersionProperty(java.lang.String name,
+ java.lang.String value,
+ int type,
+ CrNodeVersion crNodeVersion)
+
++ full constructor |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use CrNodeVersionProperty | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
+Uses of CrNodeVersionProperty in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that return CrNodeVersionProperty | +|
+ CrNodeVersionProperty |
+CrNodeVersion.getProperty(java.lang.String name)
+
++ Get a property value |
+
+ CrNodeVersionProperty |
+CrNodeVersion.setProperty(java.lang.String name,
+ java.lang.Object value,
+ int valueType)
+
++ Set a property value. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use CrWorkspace | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.dao | ++ |
com.lamsinternational.lams.contentrepository.dao.hibernate | ++ |
+Uses of CrWorkspace in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that return CrWorkspace | +|
+ CrWorkspace |
+CrNode.getCrWorkspace()
+
++ |
+
+ CrWorkspace |
+CrWorkspaceCredential.getCrWorkspace()
+
++ |
+
+ +
Methods in com.lamsinternational.lams.contentrepository with parameters of type CrWorkspace | +|
+ void |
+CrNode.setCrWorkspace(CrWorkspace crWorkspace)
+
++ |
+
+ void |
+CrWorkspaceCredential.setCrWorkspace(CrWorkspace crWorkspace)
+
++ |
+
+ +
Constructors in com.lamsinternational.lams.contentrepository with parameters of type CrWorkspace | +|
CrNode(java.lang.String path,
+ java.lang.String type,
+ java.util.Date createdDateTime,
+ java.lang.Long nextVersionId,
+ CrWorkspace crWorkspace,
+ java.util.Set crNodeVersions)
+
++ full constructor |
+|
CrNode(java.lang.String type,
+ java.lang.Long nextVersionId,
+ CrWorkspace crWorkspace,
+ java.util.Set crNodeVersions)
+
++ minimal constructor |
+|
CrWorkspaceCredential(CrWorkspace crWorkspace,
+ CrCredential crCredential)
+
++ full constructor |
+
+Uses of CrWorkspace in com.lamsinternational.lams.contentrepository.dao | +
+ +
Methods in com.lamsinternational.lams.contentrepository.dao that return CrWorkspace | +|
+ CrWorkspace |
+IWorkspaceDAO.findByName(java.lang.String workspaceName)
+
++ Get a workspace. |
+
+Uses of CrWorkspace in com.lamsinternational.lams.contentrepository.dao.hibernate | +
+ +
Methods in com.lamsinternational.lams.contentrepository.dao.hibernate that return CrWorkspace | +|
+ CrWorkspace |
+WorkspaceDAO.findByName(java.lang.String workspaceName)
+
++ Get a workspace. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use FileException | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.dao | ++ |
com.lamsinternational.lams.contentrepository.dao.file | ++ |
com.lamsinternational.lams.contentrepository.struts.action | ++ |
+Uses of FileException in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that throw FileException | +|
+ NodeKey |
+SimpleRepository.addFileItem(ITicket ticket,
+ java.io.InputStream istream,
+ java.lang.String filename,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ |
+
+ NodeKey |
+SimpleRepository.addPackageItem(ITicket ticket,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ |
+
+ IVersionedNode |
+SimpleRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ |
+
+ IVersionedNode |
+SimpleRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String relPath,
+ java.lang.Long version)
+
++ |
+
+ NodeKey |
+SimpleRepository.updateFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String filename,
+ java.io.InputStream istream,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ |
+
+ NodeKey |
+SimpleRepository.updatePackageItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ |
+
+ java.io.InputStream |
+IVersionedNode.getFile()
+
++ Get the file, as an inputstream. |
+
+ NodeKey |
+IRepository.addFileItem(ITicket ticket,
+ java.io.InputStream istream,
+ java.lang.String filename,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ Add a new file to the repository. |
+
+ NodeKey |
+IRepository.addPackageItem(ITicket ticket,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ Add a new package of files to the repository. |
+
+ NodeKey |
+IRepository.updateFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String filename,
+ java.io.InputStream istream,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ Update an existing file in the repository. |
+
+ NodeKey |
+IRepository.updatePackageItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ Add a new package of files to the repository. |
+
+ IVersionedNode |
+IRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ Get an item from the repository based on the UUID. |
+
+ IVersionedNode |
+IRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String relPath,
+ java.lang.Long versionId)
+
++ Get an item from the repository based on the UUID and relative + path. |
+
+ java.io.InputStream |
+SimpleVersionedNode.getFile()
+
++ Get the file, as an inputstream. |
+
+Uses of FileException in com.lamsinternational.lams.contentrepository.dao | +
+ +
Methods in com.lamsinternational.lams.contentrepository.dao that throw FileException | +|
+ void |
+IFileDAO.writeFile(java.lang.Long uuid,
+ java.lang.Long versionId,
+ java.io.InputStream is)
+
++ Write out a file to the repository. |
+
+ java.io.InputStream |
+IFileDAO.getFile(java.lang.Long uuid,
+ java.lang.Long versionId)
+
++ Gets a file from the repository. |
+
+ boolean |
+IFileDAO.delete(java.lang.Long uuid,
+ java.lang.Long versionId)
+
++ Delete a file from the repository. |
+
+ java.lang.String |
+IFileDAO.getFilePath(java.lang.Long uuid,
+ java.lang.Long versionId)
+
++ Get the actual path of the file ie the path on disk |
+
+Uses of FileException in com.lamsinternational.lams.contentrepository.dao.file | +
+ +
Methods in com.lamsinternational.lams.contentrepository.dao.file that throw FileException | +|
+ void |
+FileDAO.writeFile(java.lang.Long uuid,
+ java.lang.Long versionId,
+ java.io.InputStream is)
+
++ Write out a file to the repository. |
+
+ java.io.InputStream |
+FileDAO.getFile(java.lang.Long uuid,
+ java.lang.Long versionId)
+
++ Gets a file from the repository. |
+
+ boolean |
+FileDAO.delete(java.lang.Long uuid,
+ java.lang.Long versionId)
+
++ Delete a file from the repository. |
+
+ java.lang.String |
+FileDAO.getFilePath(java.lang.Long uuid,
+ java.lang.Long versionId)
+
++ Get the actual path of the file ie the path on disk |
+
+Uses of FileException in com.lamsinternational.lams.contentrepository.struts.action | +
+ +
Methods in com.lamsinternational.lams.contentrepository.struts.action that throw FileException | +|
+ org.apache.struts.action.ActionForward |
+AddFileContentAction.uploadFile(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Uploads a single file. |
+
+ org.apache.struts.action.ActionForward |
+AddFileContentAction.uploadPackage(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Uploads a package |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use ICredentials | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.dao | ++ |
com.lamsinternational.lams.contentrepository.dao.hibernate | ++ |
+Uses of ICredentials in com.lamsinternational.lams.contentrepository | +
+ +
Classes in com.lamsinternational.lams.contentrepository that implement ICredentials | +|
+ class |
+SimpleCredentials
+
++ Basic implementation of credentials. |
+
+ +
Methods in com.lamsinternational.lams.contentrepository with parameters of type ICredentials | +|
+ ITicket |
+SimpleRepository.login(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ |
+
+ void |
+SimpleRepository.addWorkspace(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Add a workspace, giving the credentials as the user of this workspace. |
+
+ void |
+SimpleRepository.createCredential(ICredentials newCredential)
+
++ Create a new repository "user" - usually a tool. |
+
+ void |
+SimpleRepository.updateCredentials(ICredentials oldCredential,
+ ICredentials newCredential)
+
++ Update a credential. |
+
+ void |
+SimpleRepository.assignCredentials(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Assign credentials to a workspace. |
+
+ void |
+IRepositoryAdmin.assignCredentials(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ |
+
+ ITicket |
+IRepository.login(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Login, creating a new ticket for the given credentials and specified + workspace. |
+
+ void |
+IRepository.addWorkspace(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Create a new workspace, with the tool identified in the creditials + as the owner. |
+
+ void |
+IRepository.createCredential(ICredentials newCredential)
+
++ Create a new repository "user" - usually a tool. |
+
+ void |
+IRepository.updateCredentials(ICredentials oldCredential,
+ ICredentials newCredential)
+
++ Update a credential. |
+
+Uses of ICredentials in com.lamsinternational.lams.contentrepository.dao | +
+ +
Methods in com.lamsinternational.lams.contentrepository.dao with parameters of type ICredentials | +|
+ boolean |
+ICredentialDAO.checkCredential(ICredentials credential,
+ IWorkspace workspace)
+
++ Check the supplied credential to the workspace. |
+
+ boolean |
+ICredentialDAO.checkCredential(ICredentials credential)
+
++ Check the supplied credential to the repository + By doing the check at this level, the password does + not need to be read from the database. |
+
+Uses of ICredentials in com.lamsinternational.lams.contentrepository.dao.hibernate | +
+ +
Methods in com.lamsinternational.lams.contentrepository.dao.hibernate with parameters of type ICredentials | +|
+ boolean |
+CredentialDAO.checkCredential(ICredentials credential,
+ IWorkspace workspace)
+
++ Checks whether a user can login to this workspace. |
+
+ boolean |
+CredentialDAO.checkCredential(ICredentials credential)
+
++ Checks whether a user can login to the repository. |
+
+ boolean |
+CredentialDAO.checkCredentialInternal(ICredentials credential,
+ IWorkspace workspace)
+
++ Checks whether a user can login to the repository. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use IRepository | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
+Uses of IRepository in com.lamsinternational.lams.contentrepository | +
+ +
Subinterfaces of IRepository in com.lamsinternational.lams.contentrepository | +|
+ interface |
+IRepositoryAdmin
+
++ Administrative interface to the Repository. |
+
+ +
Classes in com.lamsinternational.lams.contentrepository that implement IRepository | +|
+ class |
+SimpleRepository
+
++ Many methods in this class will throw a RepositoryRuntimeException + if the internal data is missing. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use IRepositoryAdmin | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
+Uses of IRepositoryAdmin in com.lamsinternational.lams.contentrepository | +
+ +
Classes in com.lamsinternational.lams.contentrepository that implement IRepositoryAdmin | +|
+ class |
+SimpleRepository
+
++ Many methods in this class will throw a RepositoryRuntimeException + if the internal data is missing. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use ITicket | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
+Uses of ITicket in com.lamsinternational.lams.contentrepository | +
+ +
Classes in com.lamsinternational.lams.contentrepository that implement ITicket | +|
+ class |
+SimpleTicket
+
++ SimpleTicket is a basic implementation of Ticket. |
+
+ +
Methods in com.lamsinternational.lams.contentrepository that return ITicket | +|
+ ITicket |
+SimpleRepository.login(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ |
+
+ ITicket |
+IVersionedNode.getTicket()
+
++ Get the ticket through which this node was accessed. |
+
+ ITicket |
+IRepository.login(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Login, creating a new ticket for the given credentials and specified + workspace. |
+
+ ITicket |
+SimpleVersionedNode.getTicket()
+
++ |
+
+ +
Methods in com.lamsinternational.lams.contentrepository with parameters of type ITicket | +|
+ void |
+SimpleRepository.logout(ITicket ticket)
+
++ |
+
+ NodeKey |
+SimpleRepository.addFileItem(ITicket ticket,
+ java.io.InputStream istream,
+ java.lang.String filename,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ |
+
+ NodeKey |
+SimpleRepository.addPackageItem(ITicket ticket,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ |
+
+ IVersionedNode |
+SimpleRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ |
+
+ IVersionedNode |
+SimpleRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String relPath,
+ java.lang.Long version)
+
++ |
+
+ java.util.SortedMap |
+SimpleRepository.getNodeList(ITicket ticket)
+
++ |
+
+ java.util.SortedSet |
+SimpleRepository.getVersionHistory(ITicket ticket,
+ java.lang.Long uuid)
+
++ |
+
+ NodeKey |
+SimpleRepository.updateFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String filename,
+ java.io.InputStream istream,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ |
+
+ NodeKey |
+SimpleRepository.updatePackageItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ |
+
+ java.lang.String[] |
+SimpleRepository.deleteNode(ITicket ticket,
+ java.lang.Long uuid)
+
++ |
+
+ java.lang.String[] |
+SimpleRepository.deleteVersion(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ |
+
+ NodeKey |
+IRepository.addFileItem(ITicket ticket,
+ java.io.InputStream istream,
+ java.lang.String filename,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ Add a new file to the repository. |
+
+ NodeKey |
+IRepository.addPackageItem(ITicket ticket,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ Add a new package of files to the repository. |
+
+ NodeKey |
+IRepository.updateFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String filename,
+ java.io.InputStream istream,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ Update an existing file in the repository. |
+
+ NodeKey |
+IRepository.updatePackageItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ Add a new package of files to the repository. |
+
+ IVersionedNode |
+IRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ Get an item from the repository based on the UUID. |
+
+ IVersionedNode |
+IRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String relPath,
+ java.lang.Long versionId)
+
++ Get an item from the repository based on the UUID and relative + path. |
+
+ java.util.SortedSet |
+IRepository.getVersionHistory(ITicket ticket,
+ java.lang.Long uuid)
+
++ Get the history for a node. |
+
+ java.lang.String[] |
+IRepository.deleteVersion(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ Delete the current version of a node, returning a list of the files + that could not be deleted properly. |
+
+ java.lang.String[] |
+IRepository.deleteNode(ITicket ticket,
+ java.lang.Long uuid)
+
++ Delete a node and all its versions, returning a list of the files + that could not be deleted properly. |
+
+ void |
+IRepository.logout(ITicket ticket)
+
++ Finish using this ticket. |
+
+ java.util.SortedMap |
+IRepository.getNodeList(ITicket ticket)
+
++ Get a complete list of all nodes in the workspace and their + version histories. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use IValue | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
+Uses of IValue in com.lamsinternational.lams.contentrepository | +
+ +
Classes in com.lamsinternational.lams.contentrepository that implement IValue | +|
+ class |
+CrNodeVersionProperty
+
++ |
+
+ +
Methods in com.lamsinternational.lams.contentrepository that return IValue | +|
+ IValue |
+IVersionedNode.getProperty(java.lang.String name)
+
++ Returns the property at relPath relative to this + node. |
+
+ IValue |
+SimpleVersionedNode.getProperty(java.lang.String name)
+
++ |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use IVersionDetail | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
+Uses of IVersionDetail in com.lamsinternational.lams.contentrepository | +
+ +
Classes in com.lamsinternational.lams.contentrepository that implement IVersionDetail | +|
+ class |
+SimpleVersionDetail
+
++ Describes the version details - for displaying a version + history. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use IVersionedNode | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
+Uses of IVersionedNode in com.lamsinternational.lams.contentrepository | +
+ +
Subinterfaces of IVersionedNode in com.lamsinternational.lams.contentrepository | +|
+ interface |
+IVersionedNodeAdmin
+
++ IVersionedNodeAdmin represents the full functionality for a versioned node. |
+
+ +
Classes in com.lamsinternational.lams.contentrepository that implement IVersionedNode | +|
+ class |
+SimpleVersionedNode
+
++ This is the default implementation for IVersionedNode. |
+
+ +
Methods in com.lamsinternational.lams.contentrepository that return IVersionedNode | +|
+ IVersionedNode |
+SimpleRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ |
+
+ IVersionedNode |
+SimpleRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String relPath,
+ java.lang.Long version)
+
++ |
+
+ IVersionedNode |
+IVersionedNode.getNode(java.lang.String relPath)
+
++ Returns the node at relPath, which is a child of this node. |
+
+ IVersionedNode |
+IRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ Get an item from the repository based on the UUID. |
+
+ IVersionedNode |
+IRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String relPath,
+ java.lang.Long versionId)
+
++ Get an item from the repository based on the UUID and relative + path. |
+
+ IVersionedNode |
+SimpleVersionedNode.getNode(java.lang.String relPath)
+
++ Another case for the factory? |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use IVersionedNodeAdmin | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
+Uses of IVersionedNodeAdmin in com.lamsinternational.lams.contentrepository | +
+ +
Classes in com.lamsinternational.lams.contentrepository that implement IVersionedNodeAdmin | +|
+ class |
+SimpleVersionedNode
+
++ This is the default implementation for IVersionedNode. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use IWorkspace | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.dao | ++ |
com.lamsinternational.lams.contentrepository.dao.hibernate | ++ |
+Uses of IWorkspace in com.lamsinternational.lams.contentrepository | +
+ +
Classes in com.lamsinternational.lams.contentrepository that implement IWorkspace | +|
+ class |
+CrWorkspace
+
++ |
+
+Uses of IWorkspace in com.lamsinternational.lams.contentrepository.dao | +
+ +
Methods in com.lamsinternational.lams.contentrepository.dao with parameters of type IWorkspace | +|
+ boolean |
+ICredentialDAO.checkCredential(ICredentials credential,
+ IWorkspace workspace)
+
++ Check the supplied credential to the workspace. |
+
+Uses of IWorkspace in com.lamsinternational.lams.contentrepository.dao.hibernate | +
+ +
Methods in com.lamsinternational.lams.contentrepository.dao.hibernate with parameters of type IWorkspace | +|
+ boolean |
+CredentialDAO.checkCredential(ICredentials credential,
+ IWorkspace workspace)
+
++ Checks whether a user can login to this workspace. |
+
+ boolean |
+CredentialDAO.checkCredentialInternal(ICredentials credential,
+ IWorkspace workspace)
+
++ Checks whether a user can login to the repository. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use InvalidParameterException | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.struts.action | ++ |
+Uses of InvalidParameterException in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that throw InvalidParameterException | +|
+ void |
+IVersionedNodeAdmin.setFile(java.io.InputStream iStream,
+ java.lang.String filename,
+ java.lang.String mimeType)
+
++ Set the file, passed in as an inputstream. |
+
+ NodeKey |
+SimpleRepository.addFileItem(ITicket ticket,
+ java.io.InputStream istream,
+ java.lang.String filename,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ |
+
+ NodeKey |
+SimpleRepository.addPackageItem(ITicket ticket,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ |
+
+ NodeKey |
+SimpleRepository.updateFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String filename,
+ java.io.InputStream istream,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ |
+
+ NodeKey |
+SimpleRepository.updatePackageItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ |
+
+ java.lang.String[] |
+SimpleRepository.deleteNode(ITicket ticket,
+ java.lang.Long uuid)
+
++ |
+
+ java.lang.String[] |
+SimpleRepository.deleteVersion(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ |
+
+ NodeKey |
+IRepository.addFileItem(ITicket ticket,
+ java.io.InputStream istream,
+ java.lang.String filename,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ Add a new file to the repository. |
+
+ NodeKey |
+IRepository.addPackageItem(ITicket ticket,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ Add a new package of files to the repository. |
+
+ NodeKey |
+IRepository.updateFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String filename,
+ java.io.InputStream istream,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ Update an existing file in the repository. |
+
+ NodeKey |
+IRepository.updatePackageItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ Add a new package of files to the repository. |
+
+ java.lang.String[] |
+IRepository.deleteVersion(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ Delete the current version of a node, returning a list of the files + that could not be deleted properly. |
+
+ java.lang.String[] |
+IRepository.deleteNode(ITicket ticket,
+ java.lang.Long uuid)
+
++ Delete a node and all its versions, returning a list of the files + that could not be deleted properly. |
+
+ void |
+SimpleVersionedNode.setFile(java.io.InputStream iStream,
+ java.lang.String filename,
+ java.lang.String mimeType)
+
++ Set the file, passed in as an inputstream. |
+
+Uses of InvalidParameterException in com.lamsinternational.lams.contentrepository.struts.action | +
+ +
Methods in com.lamsinternational.lams.contentrepository.struts.action that throw InvalidParameterException | +|
+ org.apache.struts.action.ActionForward |
+NodeSelectionAction.deleteNode(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Delete a version of a node, or the whole node. |
+
+ org.apache.struts.action.ActionForward |
+AddFileContentAction.uploadFile(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Uploads a single file. |
+
+ org.apache.struts.action.ActionForward |
+AddFileContentAction.uploadPackage(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Uploads a package |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use ItemExistsException | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
+Uses of ItemExistsException in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that throw ItemExistsException | +|
+ void |
+SimpleRepository.addWorkspace(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Add a workspace, giving the credentials as the user of this workspace. |
+
+ void |
+IRepository.addWorkspace(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Create a new workspace, with the tool identified in the creditials + as the owner. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use ItemNotFoundException | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.struts.action | ++ |
+Uses of ItemNotFoundException in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that throw ItemNotFoundException | +|
+ IVersionedNode |
+SimpleRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ |
+
+ IVersionedNode |
+SimpleRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String relPath,
+ java.lang.Long version)
+
++ |
+
+ java.util.SortedSet |
+SimpleRepository.getVersionHistory(ITicket ticket,
+ java.lang.Long uuid)
+
++ |
+
+ NodeKey |
+SimpleRepository.updateFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String filename,
+ java.io.InputStream istream,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ |
+
+ NodeKey |
+SimpleRepository.updatePackageItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ |
+
+ java.lang.String[] |
+SimpleRepository.deleteNode(ITicket ticket,
+ java.lang.Long uuid)
+
++ |
+
+ java.lang.String[] |
+SimpleRepository.deleteVersion(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ |
+
+ IVersionedNode |
+IVersionedNode.getNode(java.lang.String relPath)
+
++ Returns the node at relPath, which is a child of this node. |
+
+ NodeKey |
+IRepository.updateFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String filename,
+ java.io.InputStream istream,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ Update an existing file in the repository. |
+
+ NodeKey |
+IRepository.updatePackageItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ Add a new package of files to the repository. |
+
+ IVersionedNode |
+IRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ Get an item from the repository based on the UUID. |
+
+ IVersionedNode |
+IRepository.getFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String relPath,
+ java.lang.Long versionId)
+
++ Get an item from the repository based on the UUID and relative + path. |
+
+ java.util.SortedSet |
+IRepository.getVersionHistory(ITicket ticket,
+ java.lang.Long uuid)
+
++ Get the history for a node. |
+
+ java.lang.String[] |
+IRepository.deleteVersion(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.Long version)
+
++ Delete the current version of a node, returning a list of the files + that could not be deleted properly. |
+
+ java.lang.String[] |
+IRepository.deleteNode(ITicket ticket,
+ java.lang.Long uuid)
+
++ Delete a node and all its versions, returning a list of the files + that could not be deleted properly. |
+
+ IVersionedNode |
+SimpleVersionedNode.getNode(java.lang.String relPath)
+
++ Another case for the factory? |
+
+Uses of ItemNotFoundException in com.lamsinternational.lams.contentrepository.struts.action | +
+ +
Methods in com.lamsinternational.lams.contentrepository.struts.action that throw ItemNotFoundException | +|
+ org.apache.struts.action.ActionForward |
+NodeSelectionAction.deleteNode(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Delete a version of a node, or the whole node. |
+
+ org.apache.struts.action.ActionForward |
+AddFileContentAction.uploadFile(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Uploads a single file. |
+
+ org.apache.struts.action.ActionForward |
+AddFileContentAction.uploadPackage(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Uploads a package |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use LoginException | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
+Uses of LoginException in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that throw LoginException | +|
+ ITicket |
+SimpleRepository.login(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ |
+
+ void |
+SimpleRepository.addWorkspace(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Add a workspace, giving the credentials as the user of this workspace. |
+
+ void |
+SimpleRepository.updateCredentials(ICredentials oldCredential,
+ ICredentials newCredential)
+
++ Update a credential. |
+
+ void |
+SimpleRepository.assignCredentials(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Assign credentials to a workspace. |
+
+ ITicket |
+IRepository.login(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Login, creating a new ticket for the given credentials and specified + workspace. |
+
+ void |
+IRepository.addWorkspace(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Create a new workspace, with the tool identified in the creditials + as the owner. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use NodeKey | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
+Uses of NodeKey in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that return NodeKey | +|
+ NodeKey |
+SimpleRepository.addFileItem(ITicket ticket,
+ java.io.InputStream istream,
+ java.lang.String filename,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ |
+
+ NodeKey |
+SimpleRepository.addPackageItem(ITicket ticket,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ |
+
+ NodeKey |
+SimpleRepository.updateFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String filename,
+ java.io.InputStream istream,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ |
+
+ NodeKey |
+SimpleRepository.updatePackageItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ |
+
+ NodeKey |
+IVersionedNode.getNodeKey()
+
++ Get the uuid and version of this node/version |
+
+ NodeKey |
+IRepository.addFileItem(ITicket ticket,
+ java.io.InputStream istream,
+ java.lang.String filename,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ Add a new file to the repository. |
+
+ NodeKey |
+IRepository.addPackageItem(ITicket ticket,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ Add a new package of files to the repository. |
+
+ NodeKey |
+IRepository.updateFileItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String filename,
+ java.io.InputStream istream,
+ java.lang.String mimeType,
+ java.lang.String versionDescription)
+
++ Update an existing file in the repository. |
+
+ NodeKey |
+IRepository.updatePackageItem(ITicket ticket,
+ java.lang.Long uuid,
+ java.lang.String dirPath,
+ java.lang.String startFile,
+ java.lang.String versionDescription)
+
++ Add a new package of files to the repository. |
+
+ NodeKey |
+SimpleVersionedNode.getNodeKey()
+
++ |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use RepositoryCheckedException | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.dao.hibernate | ++ |
com.lamsinternational.lams.contentrepository.struts.action | ++ |
+Uses of RepositoryCheckedException in com.lamsinternational.lams.contentrepository | +
+ +
Subclasses of RepositoryCheckedException in com.lamsinternational.lams.contentrepository | +|
+ class |
+AccessDeniedException
+
++ The current ticket doesn't have sufficient rights for the requested action. |
+
+ class |
+FileException
+
++ Some error was generated reading or writing the files + to disk. |
+
+ class |
+InvalidParameterException
+
++ Generic exception thrown whenever a parameter is missing. |
+
+ class |
+ItemExistsException
+
++ An item already exists with the given id or path. |
+
+ class |
+ItemNotFoundException
+
++ Item requested does not exist. |
+
+ class |
+LoginException
+
++ Login failed. |
+
+ class |
+NoSuchNodeTypeException
+
++ Tried to create a node with an unknown type. |
+
+ class |
+ValidationException
+
++ The node is invalid for some reason. |
+
+ class |
+ValueFormatException
+
++ Thrown when value is assigned to a propery of the wrong type, or some + other formatting type problem. |
+
+ class |
+WorkspaceNotFoundException
+
++ Requested workspace not found. |
+
+ +
Methods in com.lamsinternational.lams.contentrepository that throw RepositoryCheckedException | +|
+ void |
+IVersionedNodeAdmin.setProperty(java.lang.String name,
+ java.lang.String value,
+ int type)
+
++ Sets the property to a value, based on the specified type, after converting + from the string. |
+
+ void |
+IVersionedNodeAdmin.setProperty(java.lang.String name,
+ java.lang.String value)
+
++ Sets the property to a STRING value. |
+
+ void |
+IVersionedNodeAdmin.setProperty(java.lang.String name,
+ boolean value)
+
++ Sets the property to a BOOLEAN value. |
+
+ void |
+IVersionedNodeAdmin.setProperty(java.lang.String name,
+ double value)
+
++ Sets the property to a DOUBLE value. |
+
+ void |
+IVersionedNodeAdmin.setProperty(java.lang.String name,
+ long value)
+
++ Sets the property to a LONG value. |
+
+ void |
+IVersionedNodeAdmin.setProperty(java.lang.String name,
+ java.util.Calendar value)
+
++ Sets the property a CALENDAR value. |
+
+ void |
+SimpleRepository.addWorkspace(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Add a workspace, giving the credentials as the user of this workspace. |
+
+ void |
+SimpleRepository.createCredential(ICredentials newCredential)
+
++ Create a new repository "user" - usually a tool. |
+
+ void |
+SimpleRepository.updateCredentials(ICredentials oldCredential,
+ ICredentials newCredential)
+
++ Update a credential. |
+
+ void |
+SimpleRepository.assignCredentials(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Assign credentials to a workspace. |
+
+static java.lang.String |
+PropertyType.nameFromValue(int type)
+
++ Returns the name of the specified type. |
+
+static int |
+PropertyType.valueFromName(java.lang.String name)
+
++ Returns the numeric constant value of the type with the specified name. |
+
+ void |
+IRepositoryAdmin.assignCredentials(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ |
+
+ void |
+IRepository.addWorkspace(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Create a new workspace, with the tool identified in the creditials + as the owner. |
+
+ void |
+IRepository.createCredential(ICredentials newCredential)
+
++ Create a new repository "user" - usually a tool. |
+
+ void |
+IRepository.updateCredentials(ICredentials oldCredential,
+ ICredentials newCredential)
+
++ Update a credential. |
+
+Uses of RepositoryCheckedException in com.lamsinternational.lams.contentrepository.dao.hibernate | +
+ +
Methods in com.lamsinternational.lams.contentrepository.dao.hibernate that throw RepositoryCheckedException | +|
+ void |
+WorkspaceDAO.flushSession()
+
++ |
+
+Uses of RepositoryCheckedException in com.lamsinternational.lams.contentrepository.struts.action | +
+ +
Methods in com.lamsinternational.lams.contentrepository.struts.action that throw RepositoryCheckedException | +|
+ org.apache.struts.action.ActionForward |
+RepositoryDispatchAction.logout(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Logout of the workspace. |
+
+ org.apache.struts.action.ActionForward |
+NodeSelectionAction.getNode(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Get the file specified by this node. |
+
+ org.apache.struts.action.ActionForward |
+LoginRepositoryAction.loginToWorkspace(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Login to the repository |
+
+ org.apache.struts.action.ActionForward |
+LoginRepositoryAction.createNewWorkspace(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Create and login to a new workspace |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use RepositoryRuntimeException | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.dao | ++ |
com.lamsinternational.lams.contentrepository.dao.hibernate | ++ |
+Uses of RepositoryRuntimeException in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that throw RepositoryRuntimeException | +|
+ void |
+SimpleRepository.updateCredentials(ICredentials oldCredential,
+ ICredentials newCredential)
+
++ Update a credential. |
+
+ CrNodeVersionProperty |
+CrNodeVersion.setProperty(java.lang.String name,
+ java.lang.Object value,
+ int valueType)
+
++ Set a property value. |
+
+ void |
+SimpleVersionedNode.setProperty(java.lang.String name,
+ java.lang.String value)
+
++ |
+
+Uses of RepositoryRuntimeException in com.lamsinternational.lams.contentrepository.dao | +
+ +
Methods in com.lamsinternational.lams.contentrepository.dao that throw RepositoryRuntimeException | +|
+ boolean |
+ICredentialDAO.checkCredential(ICredentials credential,
+ IWorkspace workspace)
+
++ Check the supplied credential to the workspace. |
+
+ boolean |
+ICredentialDAO.checkCredential(ICredentials credential)
+
++ Check the supplied credential to the repository + By doing the check at this level, the password does + not need to be read from the database. |
+
+Uses of RepositoryRuntimeException in com.lamsinternational.lams.contentrepository.dao.hibernate | +
+ +
Methods in com.lamsinternational.lams.contentrepository.dao.hibernate that throw RepositoryRuntimeException | +|
+ boolean |
+CredentialDAO.checkCredential(ICredentials credential,
+ IWorkspace workspace)
+
++ Checks whether a user can login to this workspace. |
+
+ boolean |
+CredentialDAO.checkCredential(ICredentials credential)
+
++ Checks whether a user can login to the repository. |
+
+ boolean |
+CredentialDAO.checkCredentialInternal(ICredentials credential,
+ IWorkspace workspace)
+
++ Checks whether a user can login to the repository. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use ValueFormatException | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
+Uses of ValueFormatException in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that throw ValueFormatException | +|
+ java.lang.String |
+IValue.getString()
+
++ Returns a string representation of the value. |
+
+ double |
+IValue.getDouble()
+
++ Returns a double representation of the value. |
+
+ java.util.Calendar |
+IValue.getDate()
+
++ Returns a Calendar representation of the value. |
+
+ long |
+IValue.getLong()
+
++ Returns a long representation of the value. |
+
+ boolean |
+IValue.getBoolean()
+
++ Returns a boolean representation of the value. |
+
+ double |
+CrNodeVersionProperty.getDouble()
+
++ Returns a double representation of the value. |
+
+ java.util.Calendar |
+CrNodeVersionProperty.getDate()
+
++ Returns a Calendar representation of the value. |
+
+ long |
+CrNodeVersionProperty.getLong()
+
++ Returns a long representation of the value. |
+
+ boolean |
+CrNodeVersionProperty.getBoolean()
+
++ Returns a boolean representation of the value. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use WorkspaceNotFoundException | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
+Uses of WorkspaceNotFoundException in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that throw WorkspaceNotFoundException | +|
+ ITicket |
+SimpleRepository.login(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ |
+
+ void |
+SimpleRepository.assignCredentials(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Assign credentials to a workspace. |
+
+ void |
+IRepositoryAdmin.assignCredentials(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ |
+
+ ITicket |
+IRepository.login(ICredentials credentials,
+ java.lang.String workspaceName)
+
++ Login, creating a new ticket for the given credentials and specified + workspace. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+Method Summary | +|
+ boolean |
+checkCredential(ICredentials credential)
+
++ Check the supplied credential to the repository + By doing the check at this level, the password does + not need to be read from the database. |
+
+ boolean |
+checkCredential(ICredentials credential,
+ IWorkspace workspace)
+
++ Check the supplied credential to the workspace. |
+
+ void |
+delete(java.lang.Object object)
+
++ |
+
+ CrCredential |
+findByName(java.lang.String name)
+
++ |
+
+ void |
+insert(java.lang.Object object)
+
++ |
+
+ void |
+update(java.lang.Object object)
+
++ |
+
+Method Detail | +
+public boolean checkCredential(ICredentials credential, + IWorkspace workspace) + throws RepositoryRuntimeException+
+
repository
- exception if an internal (db) error occurs
+RepositoryRuntimeException
+public boolean checkCredential(ICredentials credential) + throws RepositoryRuntimeException+
+
repository
- exception if an internal (db) error occurs
+RepositoryRuntimeException
+public void insert(java.lang.Object object)+
+public void update(java.lang.Object object)+
+public void delete(java.lang.Object object)+
+public CrCredential findByName(java.lang.String name)+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+Manages the reading and writing of files to the repository directories. +
+ +
+
+Method Summary | +|
+ boolean |
+delete(java.lang.Long uuid,
+ java.lang.Long versionId)
+
++ Delete a file from the repository. |
+
+ java.io.InputStream |
+getFile(java.lang.Long uuid,
+ java.lang.Long versionId)
+
++ Gets a file from the repository. |
+
+ java.lang.String |
+getFilePath(java.lang.Long uuid,
+ java.lang.Long versionId)
+
++ Get the actual path of the file ie the path on disk |
+
+ void |
+writeFile(java.lang.Long uuid,
+ java.lang.Long versionId,
+ java.io.InputStream is)
+
++ Write out a file to the repository. |
+
+Method Detail | +
+public void writeFile(java.lang.Long uuid, + java.lang.Long versionId, + java.io.InputStream is) + throws FileException+
+
FileException
+public java.io.InputStream getFile(java.lang.Long uuid, + java.lang.Long versionId) + throws FileException+
+
FileException
+public boolean delete(java.lang.Long uuid, + java.lang.Long versionId) + throws FileException+
+
FileException
+public java.lang.String getFilePath(java.lang.Long uuid, + java.lang.Long versionId) + throws FileException+
+
FileException
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+Data access routines for Nodes, versions and properties +
+ +
+
+Method Summary | +|
+ void |
+delete(java.lang.Object object)
+
++ |
+
+ java.lang.Object |
+find(java.lang.Class objClass,
+ java.io.Serializable id)
+
++ Finds an object. |
+
+ java.util.List |
+findAll(java.lang.Class objClass)
+
++ |
+
+ java.util.List |
+findAllNodesInWorkspace(java.lang.Long workspaceId)
+
++ |
+
+ void |
+insert(java.lang.Object object)
+
++ |
+
+ void |
+update(java.lang.Object object)
+
++ |
+
+Method Detail | +
+public java.lang.Object find(java.lang.Class objClass, + java.io.Serializable id)+
+
+public void insert(java.lang.Object object)+
+public void update(java.lang.Object object)+
+public void delete(java.lang.Object object)+
+public java.util.List findAllNodesInWorkspace(java.lang.Long workspaceId)+
+public java.util.List findAll(java.lang.Class objClass)+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+Data access routines for Workspaces. +
+ +
+
+Method Summary | +|
+ void |
+delete(java.lang.Object object)
+
++ |
+
+ java.lang.Object |
+find(java.lang.Class objClass,
+ java.io.Serializable id)
+
++ Finds an object. |
+
+ java.util.List |
+findAll(java.lang.Class objClass)
+
++ |
+
+ CrWorkspace |
+findByName(java.lang.String workspaceName)
+
++ Get a workspace. |
+
+ void |
+insert(java.lang.Object object)
+
++ |
+
+ void |
+update(java.lang.Object object)
+
++ |
+
+Method Detail | +
+public CrWorkspace findByName(java.lang.String workspaceName)+
+
workspaceName
-
++public java.lang.Object find(java.lang.Class objClass, + java.io.Serializable id)+
+
objClass
- id
-
++public void insert(java.lang.Object object)+
+public void update(java.lang.Object object)+
+public void delete(java.lang.Object object)+
+public java.util.List findAll(java.lang.Class objClass)+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+Interfaces
+
+ +ICredentialDAO + +IFileDAO + +INodeDAO + +IWorkspaceDAO |
+
+
+
|
++ + | +||||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + | +
+Interface Summary | +|
ICredentialDAO | ++ |
IFileDAO | +Manages the reading and writing of files to the repository directories. | +
INodeDAO | +Data access routines for Nodes, versions and properties | +
IWorkspaceDAO | +Data access routines for Workspaces. | +
+
+
+
|
++ + | +||||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use com.lamsinternational.lams.contentrepository.dao | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.dao.file | ++ |
com.lamsinternational.lams.contentrepository.dao.hibernate | ++ |
+Classes in com.lamsinternational.lams.contentrepository.dao used by com.lamsinternational.lams.contentrepository | +|
ICredentialDAO
+
+ + |
+|
IFileDAO
+
+ + Manages the reading and writing of files to the repository directories. |
+|
INodeDAO
+
+ + Data access routines for Nodes, versions and properties |
+|
IWorkspaceDAO
+
+ + Data access routines for Workspaces. |
+
+Classes in com.lamsinternational.lams.contentrepository.dao used by com.lamsinternational.lams.contentrepository.dao.file | +|
IFileDAO
+
+ + Manages the reading and writing of files to the repository directories. |
+
+Classes in com.lamsinternational.lams.contentrepository.dao used by com.lamsinternational.lams.contentrepository.dao.hibernate | +|
ICredentialDAO
+
+ + |
+|
INodeDAO
+
+ + Data access routines for Nodes, versions and properties |
+|
IWorkspaceDAO
+
+ + Data access routines for Workspaces. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use ICredentialDAO | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.dao.hibernate | ++ |
+Uses of ICredentialDAO in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that return ICredentialDAO | +|
+ ICredentialDAO |
+SimpleRepository.getCredentialDAO()
+
++ |
+
+ +
Methods in com.lamsinternational.lams.contentrepository with parameters of type ICredentialDAO | +|
+ void |
+SimpleRepository.setCredentialDAO(ICredentialDAO credentialDAO)
+
++ |
+
+Uses of ICredentialDAO in com.lamsinternational.lams.contentrepository.dao.hibernate | +
+ +
Classes in com.lamsinternational.lams.contentrepository.dao.hibernate that implement ICredentialDAO | +|
+ class |
+CredentialDAO
+
++ Implements the credentials lookup using Hibernate. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use IFileDAO | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.dao.file | ++ |
+Uses of IFileDAO in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that return IFileDAO | +|
+ IFileDAO |
+SimpleVersionedNode.getFileDAO()
+
++ |
+
+ +
Methods in com.lamsinternational.lams.contentrepository with parameters of type IFileDAO | +|
+ void |
+SimpleVersionedNode.setFileDAO(IFileDAO fileDAO)
+
++ |
+
+Uses of IFileDAO in com.lamsinternational.lams.contentrepository.dao.file | +
+ +
Classes in com.lamsinternational.lams.contentrepository.dao.file that implement IFileDAO | +|
+ class |
+FileDAO
+
++ Manages the reading and writing of files to the repository directories. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use INodeDAO | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.dao.hibernate | ++ |
+Uses of INodeDAO in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that return INodeDAO | +|
+ INodeDAO |
+SimpleVersionedNode.getNodeDAO()
+
++ |
+
+ +
Methods in com.lamsinternational.lams.contentrepository with parameters of type INodeDAO | +|
+ void |
+SimpleVersionedNode.setNodeDAO(INodeDAO nodeDAO)
+
++ |
+
+Uses of INodeDAO in com.lamsinternational.lams.contentrepository.dao.hibernate | +
+ +
Classes in com.lamsinternational.lams.contentrepository.dao.hibernate that implement INodeDAO | +|
+ class |
+NodeDAO
+
++ Data access routines for Nodes |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use IWorkspaceDAO | +|
com.lamsinternational.lams.contentrepository | ++This content repository is designed to store single files and +packages of files on disk in a relatively. | +
com.lamsinternational.lams.contentrepository.dao.hibernate | ++ |
+Uses of IWorkspaceDAO in com.lamsinternational.lams.contentrepository | +
+ +
Methods in com.lamsinternational.lams.contentrepository that return IWorkspaceDAO | +|
+ IWorkspaceDAO |
+SimpleRepository.getWorkspaceDAO()
+
++ |
+
+ +
Methods in com.lamsinternational.lams.contentrepository with parameters of type IWorkspaceDAO | +|
+ void |
+SimpleRepository.setWorkspaceDAO(IWorkspaceDAO workspaceDAO)
+
++ |
+
+Uses of IWorkspaceDAO in com.lamsinternational.lams.contentrepository.dao.hibernate | +
+ +
Classes in com.lamsinternational.lams.contentrepository.dao.hibernate that implement IWorkspaceDAO | +|
+ class |
+WorkspaceDAO
+
++ Data access routines for Workspaces. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.lamsinternational.lams.contentrepository.dao.file.FileDAO +
+Manages the reading and writing of files to the repository directories. + Note: this does not involve the database - so no Hibernate! +
+ +
+
+Constructor Summary | +|
FileDAO()
+
++ |
+
+Method Summary | +|
+ boolean |
+delete(java.lang.Long uuid,
+ java.lang.Long versionId)
+
++ Delete a file from the repository. |
+
+ java.io.InputStream |
+getFile(java.lang.Long uuid,
+ java.lang.Long versionId)
+
++ Gets a file from the repository. |
+
+ java.lang.String |
+getFilePath(java.lang.Long uuid,
+ java.lang.Long versionId)
+
++ Get the actual path of the file ie the path on disk |
+
+ java.lang.String |
+getRepositoryLocation()
+
++ |
+
+ void |
+setRepositoryLocation(java.lang.String repositoryLocation)
+
++ |
+
+ void |
+writeFile(java.lang.Long uuid,
+ java.lang.Long versionId,
+ java.io.InputStream is)
+
++ Write out a file to the repository. |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
+public FileDAO()+
+Method Detail | +
+public void writeFile(java.lang.Long uuid, + java.lang.Long versionId, + java.io.InputStream is) + throws FileException+
+
writeFile
in interface IFileDAO
FileException
+public java.io.InputStream getFile(java.lang.Long uuid, + java.lang.Long versionId) + throws FileException+
+
getFile
in interface IFileDAO
uuid
- node idversionId
- version id
+FileException
+public boolean delete(java.lang.Long uuid, + java.lang.Long versionId) + throws FileException+
+
delete
in interface IFileDAO
FileException
+public java.lang.String getFilePath(java.lang.Long uuid, + java.lang.Long versionId) + throws FileException+
+
getFilePath
in interface IFileDAO
FileException
+public java.lang.String getRepositoryLocation()+
+public void setRepositoryLocation(java.lang.String repositoryLocation)+
repositoryLocation
- The repositoryLocation to set.
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++junit.framework.Assert +
junit.framework.TestCase +
com.lamsinternational.lams.contentrepository.BaseTestCase +
com.lamsinternational.lams.contentrepository.dao.file.TestFileDAO +
+
+Constructor Summary | +|
TestFileDAO()
+
++ |
+
+Method Summary | +|
+ void |
+setUp()
+
++ |
+
+ void |
+testGenerateFilePathEven1()
+
++ |
+
+ void |
+testGenerateFilePathEven101()
+
++ |
+
+ void |
+testGenerateFilePathOdd1()
+
++ |
+
+ void |
+testGenerateFilePathOdd101()
+
++ |
+
Methods inherited from class junit.framework.TestCase | +
countTestCases, getName, run, run, runBare, setName, toString |
+
Methods inherited from class junit.framework.Assert | +
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
+public TestFileDAO()+
+Method Detail | +
+public void setUp()+
+public void testGenerateFilePathEven1()+
+public void testGenerateFilePathEven101()+
+public void testGenerateFilePathOdd1()+
+public void testGenerateFilePathOdd101()+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+Classes
+
+ +FileDAO |
+
+
+
|
++ + | +||||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + | +
+Class Summary | +|
FileDAO | +Manages the reading and writing of files to the repository directories. | +
+
+
+
|
++ + | +||||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++org.springframework.orm.hibernate.support.HibernateDaoSupport +
com.lamsinternational.lams.contentrepository.dao.hibernate.CredentialDAO +
+Implements the credentials lookup using Hibernate. +
+ +
+
+Constructor Summary | +|
CredentialDAO()
+
++ |
+
+Method Summary | +|
+ boolean |
+checkCredential(ICredentials credential)
+
++ Checks whether a user can login to the repository. |
+
+ boolean |
+checkCredential(ICredentials credential,
+ IWorkspace workspace)
+
++ Checks whether a user can login to this workspace. |
+
+ boolean |
+checkCredentialInternal(ICredentials credential,
+ IWorkspace workspace)
+
++ Checks whether a user can login to the repository. |
+
+ void |
+delete(java.lang.Object object)
+
++ |
+
+ java.util.List |
+findAll(java.lang.Class objClass)
+
++ |
+
+ CrCredential |
+findByName(java.lang.String name)
+
++ |
+
+ void |
+insert(java.lang.Object object)
+
++ |
+
+ void |
+update(java.lang.Object object)
+
++ |
+
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport | +
afterPropertiesSet, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
+public CredentialDAO()+
+Method Detail | +
+public boolean checkCredential(ICredentials credential, + IWorkspace workspace) + throws RepositoryRuntimeException+
+
checkCredential
in interface ICredentialDAO
RepositoryRuntimeException
+public boolean checkCredential(ICredentials credential) + throws RepositoryRuntimeException+
+
checkCredential
in interface ICredentialDAO
RepositoryRuntimeException
+public boolean checkCredentialInternal(ICredentials credential, + IWorkspace workspace) + throws RepositoryRuntimeException+
+
RepositoryRuntimeException
+public void insert(java.lang.Object object)+
insert
in interface ICredentialDAO
+public void update(java.lang.Object object)+
update
in interface ICredentialDAO
+public void delete(java.lang.Object object)+
delete
in interface ICredentialDAO
+public CrCredential findByName(java.lang.String name)+
findByName
in interface ICredentialDAO
+public java.util.List findAll(java.lang.Class objClass)+
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++org.springframework.orm.hibernate.support.HibernateDaoSupport +
com.lamsinternational.lams.contentrepository.dao.hibernate.NodeDAO +
+Data access routines for Nodes +
+ +
+
+Constructor Summary | +|
NodeDAO()
+
++ |
+
+Method Summary | +|
+ void |
+delete(java.lang.Object object)
+
++ |
+
+ java.lang.Object |
+find(java.lang.Class objClass,
+ java.io.Serializable id)
+
++ Finds an object. |
+
+ java.util.List |
+findAll(java.lang.Class objClass)
+
++ |
+
+ java.util.List |
+findAllNodesInWorkspace(java.lang.Long workspaceId)
+
++ |
+
+ void |
+insert(java.lang.Object object)
+
++ |
+
+ void |
+update(java.lang.Object object)
+
++ |
+
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport | +
afterPropertiesSet, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
+public NodeDAO()+
+Method Detail | +
+public java.lang.Object find(java.lang.Class objClass, + java.io.Serializable id)+
INodeDAO
+
find
in interface INodeDAO
+public void insert(java.lang.Object object)+
insert
in interface INodeDAO
+public void update(java.lang.Object object)+
update
in interface INodeDAO
+public void delete(java.lang.Object object)+
delete
in interface INodeDAO
+public java.util.List findAllNodesInWorkspace(java.lang.Long workspaceId)+
findAllNodesInWorkspace
in interface INodeDAO
+public java.util.List findAll(java.lang.Class objClass)+
findAll
in interface INodeDAO
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++org.springframework.orm.hibernate.support.HibernateDaoSupport +
com.lamsinternational.lams.contentrepository.dao.hibernate.WorkspaceDAO +
+Data access routines for Workspaces. +
+ +
+
+Constructor Summary | +|
WorkspaceDAO()
+
++ |
+
+Method Summary | +|
+ void |
+delete(java.lang.Object object)
+
++ |
+
+ java.lang.Object |
+find(java.lang.Class objClass,
+ java.io.Serializable id)
+
++ Finds an object. |
+
+ java.util.List |
+findAll(java.lang.Class objClass)
+
++ |
+
+ CrWorkspace |
+findByName(java.lang.String workspaceName)
+
++ Get a workspace. |
+
+ void |
+flushSession()
+
++ |
+
+ void |
+insert(java.lang.Object object)
+
++ |
+
+ void |
+update(java.lang.Object object)
+
++ |
+
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport | +
afterPropertiesSet, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
+public WorkspaceDAO()+
+Method Detail | +
+public CrWorkspace findByName(java.lang.String workspaceName)+
+
findByName
in interface IWorkspaceDAO
workspaceName
-
++public java.lang.Object find(java.lang.Class objClass, + java.io.Serializable id)+
IWorkspaceDAO
+
find
in interface IWorkspaceDAO
objClass
- id
-
++public void insert(java.lang.Object object)+
insert
in interface IWorkspaceDAO
+public void update(java.lang.Object object)+
update
in interface IWorkspaceDAO
+public void delete(java.lang.Object object)+
delete
in interface IWorkspaceDAO
+public java.util.List findAll(java.lang.Class objClass)+
findAll
in interface IWorkspaceDAO
+public void flushSession() + throws RepositoryCheckedException+
RepositoryCheckedException
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+Classes
+
+ +CredentialDAO + +NodeDAO + +WorkspaceDAO |
+
+
+
|
++ + | +||||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + | +
+Class Summary | +|
CredentialDAO | +Implements the credentials lookup using Hibernate. | +
NodeDAO | +Data access routines for Nodes | +
WorkspaceDAO | +Data access routines for Workspaces. | +
+
+
+
|
++ + | +||||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++org.apache.struts.action.Action +
org.apache.struts.actions.DispatchAction +
com.lamsinternational.lams.contentrepository.struts.action.RepositoryDispatchAction +
com.lamsinternational.lams.contentrepository.struts.action.AddFileContentAction +
+MyEclipse Struts + Creation date: 11-30-2004 + + XDoclet definition: +
+ +
+
+Field Summary | +
Fields inherited from class com.lamsinternational.lams.contentrepository.struts.action.RepositoryDispatchAction | +
ERROR_PATH, LOGOUT_PATH, NODE_CACHE, NODE_MAP_NAME, SUCCESS_PATH, TICKET_NAME, UUID_NAME, VERSION_NAME |
+
Fields inherited from class org.apache.struts.action.Action | +
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, SERVLET_KEY, TRANSACTION_TOKEN_KEY |
+
+Constructor Summary | +|
AddFileContentAction()
+
++ |
+
+Method Summary | +|
+ org.apache.struts.action.ActionForward |
+uploadFile(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Uploads a single file. |
+
+ org.apache.struts.action.ActionForward |
+uploadPackage(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Uploads a package |
+
Methods inherited from class com.lamsinternational.lams.contentrepository.struts.action.RepositoryDispatchAction | +
logout |
+
Methods inherited from class org.apache.struts.actions.DispatchAction | +
execute |
+
Methods inherited from class org.apache.struts.action.Action | +
execute, getServlet, perform, perform, setServlet |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
+public AddFileContentAction()+
+Method Detail | +
+public org.apache.struts.action.ActionForward uploadFile(org.apache.struts.action.ActionMapping mapping, + org.apache.struts.action.ActionForm form, + javax.servlet.http.HttpServletRequest request, + javax.servlet.http.HttpServletResponse response) + throws FileException, + AccessDeniedException, + InvalidParameterException, + ItemNotFoundException+
+
mapping
- form
- request
- response
-
+FileException
+AccessDeniedException
+InvalidParameterException
+ItemNotFoundException
+public org.apache.struts.action.ActionForward uploadPackage(org.apache.struts.action.ActionMapping mapping, + org.apache.struts.action.ActionForm form, + javax.servlet.http.HttpServletRequest request, + javax.servlet.http.HttpServletResponse response) + throws FileException, + AccessDeniedException, + InvalidParameterException, + ItemNotFoundException+
+
mapping
- form
- request
- response
-
+FileException
+AccessDeniedException
+InvalidParameterException
+ItemNotFoundException
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++org.apache.struts.action.Action +
org.apache.struts.actions.DispatchAction +
com.lamsinternational.lams.contentrepository.struts.action.RepositoryDispatchAction +
com.lamsinternational.lams.contentrepository.struts.action.LoginRepositoryAction +
+MyEclipse Struts + Creation date: 01-13-2005 + + The exceptions will be handled by struts but are listed explicitly + here so (1) I can log them and (2) you can see what exceptions are thrown. + + XDoclet definition: +
+ +
+
+Field Summary | +
Fields inherited from class com.lamsinternational.lams.contentrepository.struts.action.RepositoryDispatchAction | +
ERROR_PATH, LOGOUT_PATH, NODE_CACHE, NODE_MAP_NAME, SUCCESS_PATH, TICKET_NAME, UUID_NAME, VERSION_NAME |
+
Fields inherited from class org.apache.struts.action.Action | +
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, SERVLET_KEY, TRANSACTION_TOKEN_KEY |
+
+Constructor Summary | +|
LoginRepositoryAction()
+
++ |
+
+Method Summary | +|
+ org.apache.struts.action.ActionForward |
+createNewWorkspace(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Create and login to a new workspace |
+
+ org.apache.struts.action.ActionForward |
+loginToWorkspace(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Login to the repository |
+
Methods inherited from class com.lamsinternational.lams.contentrepository.struts.action.RepositoryDispatchAction | +
logout |
+
Methods inherited from class org.apache.struts.actions.DispatchAction | +
execute |
+
Methods inherited from class org.apache.struts.action.Action | +
execute, getServlet, perform, perform, setServlet |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
+public LoginRepositoryAction()+
+Method Detail | +
+public org.apache.struts.action.ActionForward loginToWorkspace(org.apache.struts.action.ActionMapping mapping, + org.apache.struts.action.ActionForm form, + javax.servlet.http.HttpServletRequest request, + javax.servlet.http.HttpServletResponse response) + throws RepositoryCheckedException+
+
mapping
- form
- request
- response
-
+RepositoryCheckedException
+public org.apache.struts.action.ActionForward createNewWorkspace(org.apache.struts.action.ActionMapping mapping, + org.apache.struts.action.ActionForm form, + javax.servlet.http.HttpServletRequest request, + javax.servlet.http.HttpServletResponse response) + throws RepositoryCheckedException+
+
mapping
- form
- request
- response
-
+RepositoryCheckedException
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++org.apache.struts.action.Action +
org.apache.struts.actions.DispatchAction +
com.lamsinternational.lams.contentrepository.struts.action.RepositoryDispatchAction +
com.lamsinternational.lams.contentrepository.struts.action.NodeSelectionAction +
+MyEclipse Struts + Creation date: 01-13-2005 + + The exceptions will be handled by struts but are listed explicitly + here so (1) I can log them and (2) you can see what exceptions are thrown. + + XDoclet definition: +
+ +
+
+Field Summary | +
Fields inherited from class com.lamsinternational.lams.contentrepository.struts.action.RepositoryDispatchAction | +
ERROR_PATH, LOGOUT_PATH, NODE_CACHE, NODE_MAP_NAME, SUCCESS_PATH, TICKET_NAME, UUID_NAME, VERSION_NAME |
+
Fields inherited from class org.apache.struts.action.Action | +
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, SERVLET_KEY, TRANSACTION_TOKEN_KEY |
+
+Constructor Summary | +|
NodeSelectionAction()
+
++ |
+
+Method Summary | +|
+ org.apache.struts.action.ActionForward |
+deleteNode(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Delete a version of a node, or the whole node. |
+
+ org.apache.struts.action.ActionForward |
+getList(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Get the list of nodes in the workspace. |
+
+ org.apache.struts.action.ActionForward |
+getNode(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Get the file specified by this node. |
+
Methods inherited from class com.lamsinternational.lams.contentrepository.struts.action.RepositoryDispatchAction | +
logout |
+
Methods inherited from class org.apache.struts.actions.DispatchAction | +
execute |
+
Methods inherited from class org.apache.struts.action.Action | +
execute, getServlet, perform, perform, setServlet |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
+public NodeSelectionAction()+
+Method Detail | +
+public org.apache.struts.action.ActionForward getList(org.apache.struts.action.ActionMapping mapping, + org.apache.struts.action.ActionForm form, + javax.servlet.http.HttpServletRequest request, + javax.servlet.http.HttpServletResponse response) + throws AccessDeniedException+
+
mapping
- form
- request
- response
-
+AccessDeniedException
+public org.apache.struts.action.ActionForward getNode(org.apache.struts.action.ActionMapping mapping, + org.apache.struts.action.ActionForm form, + javax.servlet.http.HttpServletRequest request, + javax.servlet.http.HttpServletResponse response) + throws RepositoryCheckedException, + java.io.IOException, + java.lang.Exception+
+
mapping
- form
- request
- response
-
+RepositoryCheckedException
+java.io.IOException
+java.lang.Exception
+public org.apache.struts.action.ActionForward deleteNode(org.apache.struts.action.ActionMapping mapping, + org.apache.struts.action.ActionForm form, + javax.servlet.http.HttpServletRequest request, + javax.servlet.http.HttpServletResponse response) + throws ItemNotFoundException, + InvalidParameterException, + AccessDeniedException+
+
mapping
- form
- request
- response
-
+ItemNotFoundException
+InvalidParameterException
+AccessDeniedException
+java.lang.Exception
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++org.apache.struts.action.Action +
org.apache.struts.actions.DispatchAction +
com.lamsinternational.lams.contentrepository.struts.action.RepositoryDispatchAction +
+Base class for the dispatch actions used in the repository tests. + Shares functionality such as checking ticket. +
+ +
+
+Field Summary | +|
+static java.lang.String |
+ERROR_PATH
+
++ |
+
+static java.lang.String |
+LOGOUT_PATH
+
++ |
+
+static java.lang.String |
+NODE_CACHE
+
++ |
+
+static java.lang.String |
+NODE_MAP_NAME
+
++ |
+
+static java.lang.String |
+SUCCESS_PATH
+
++ |
+
+static java.lang.String |
+TICKET_NAME
+
++ |
+
+static java.lang.String |
+UUID_NAME
+
++ |
+
+static java.lang.String |
+VERSION_NAME
+
++ |
+
Fields inherited from class org.apache.struts.action.Action | +
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, SERVLET_KEY, TRANSACTION_TOKEN_KEY |
+
+Constructor Summary | +|
RepositoryDispatchAction()
+
++ |
+
+Method Summary | +|
+ org.apache.struts.action.ActionForward |
+logout(org.apache.struts.action.ActionMapping mapping,
+ org.apache.struts.action.ActionForm form,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Logout of the workspace. |
+
Methods inherited from class org.apache.struts.actions.DispatchAction | +
execute |
+
Methods inherited from class org.apache.struts.action.Action | +
execute, getServlet, perform, perform, setServlet |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Field Detail | +
+public static final java.lang.String TICKET_NAME+
+public static final java.lang.String NODE_MAP_NAME+
+public static final java.lang.String UUID_NAME+
+public static final java.lang.String VERSION_NAME+
+public static final java.lang.String SUCCESS_PATH+
+public static final java.lang.String ERROR_PATH+
+public static final java.lang.String LOGOUT_PATH+
+public static final java.lang.String NODE_CACHE+
+Constructor Detail | +
+public RepositoryDispatchAction()+
+Method Detail | +
+public org.apache.struts.action.ActionForward logout(org.apache.struts.action.ActionMapping mapping, + org.apache.struts.action.ActionForm form, + javax.servlet.http.HttpServletRequest request, + javax.servlet.http.HttpServletResponse response) + throws RepositoryCheckedException+
+
mapping
- form
- request
- response
-
+RepositoryCheckedException
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+Classes
+
+ +AddFileContentAction + +LoginRepositoryAction + +NodeSelectionAction + +RepositoryDispatchAction |
+
+
+
|
++ + | +||||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + | +
+Class Summary | +|
AddFileContentAction | +MyEclipse Struts + Creation date: 11-30-2004 + + XDoclet definition: | +
LoginRepositoryAction | +MyEclipse Struts + Creation date: 01-13-2005 + + The exceptions will be handled by struts but are listed explicitly + here so (1) I can log them and (2) you can see what exceptions are thrown. | +
NodeSelectionAction | +MyEclipse Struts + Creation date: 01-13-2005 + + The exceptions will be handled by struts but are listed explicitly + here so (1) I can log them and (2) you can see what exceptions are thrown. | +
RepositoryDispatchAction | +Base class for the dispatch actions used in the repository tests. | +
+
+
+
|
++ + | +||||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use com.lamsinternational.lams.contentrepository.struts.action | +|
com.lamsinternational.lams.contentrepository.struts.action | ++ |
+Classes in com.lamsinternational.lams.contentrepository.struts.action used by com.lamsinternational.lams.contentrepository.struts.action | +|
RepositoryDispatchAction
+
+ + Base class for the dispatch actions used in the repository tests. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+Packages that use RepositoryDispatchAction | +|
com.lamsinternational.lams.contentrepository.struts.action | ++ |
+Uses of RepositoryDispatchAction in com.lamsinternational.lams.contentrepository.struts.action | +
+ +
Subclasses of RepositoryDispatchAction in com.lamsinternational.lams.contentrepository.struts.action | +|
+ class |
+AddFileContentAction
+
++ MyEclipse Struts + Creation date: 11-30-2004 + + XDoclet definition: |
+
+ class |
+LoginRepositoryAction
+
++ MyEclipse Struts + Creation date: 01-13-2005 + + The exceptions will be handled by struts but are listed explicitly + here so (1) I can log them and (2) you can see what exceptions are thrown. |
+
+ class |
+NodeSelectionAction
+
++ MyEclipse Struts + Creation date: 01-13-2005 + + The exceptions will be handled by struts but are listed explicitly + here so (1) I can log them and (2) you can see what exceptions are thrown. |
+
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++org.apache.struts.action.ActionForm +
com.lamsinternational.lams.contentrepository.struts.form.AddFileContentForm +
+MyEclipse Struts + Creation date: 11-30-2004 + + XDoclet definition: +
+ +
+
+Constructor Summary | +|
AddFileContentForm()
+
++ |
+
+Method Summary | +|
+ java.lang.String |
+getDescription()
+
++ |
+
+ java.lang.String |
+getDirName()
+
++ |
+
+ java.lang.String |
+getEntryString()
+
++ |
+
+ java.lang.String |
+getMethod()
+
++ |
+
+ org.apache.struts.upload.FormFile |
+getTheFile()
+
++ Returns the theFile. |
+
+ java.lang.Long |
+getUuid()
+
++ |
+
+ void |
+reset(org.apache.struts.action.ActionMapping mapping,
+ javax.servlet.http.HttpServletRequest request)
+
++ Method reset |
+
+ void |
+setDescription(java.lang.String description)
+
++ |
+
+ void |
+setDirName(java.lang.String dirName)
+
++ |
+
+ void |
+setEntryString(java.lang.String entryString)
+
++ |
+
+ void |
+setMethod(java.lang.String method)
+
++ |
+
+ void |
+setTheFile(org.apache.struts.upload.FormFile theFile)
+
++ Set the theFile. |
+
+ void |
+setUuid(java.lang.Long uuid)
+
++ |
+
+ org.apache.struts.action.ActionErrors |
+validate(org.apache.struts.action.ActionMapping mapping,
+ javax.servlet.http.HttpServletRequest request)
+
++ Method validate |
+
Methods inherited from class org.apache.struts.action.ActionForm | +
getMultipartRequestHandler, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
+public AddFileContentForm()+
+Method Detail | +
+public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, + javax.servlet.http.HttpServletRequest request)+
+
mapping
- request
-
++public void reset(org.apache.struts.action.ActionMapping mapping, + javax.servlet.http.HttpServletRequest request)+
+
mapping
- request
- +public org.apache.struts.upload.FormFile getTheFile()+
+
+public void setTheFile(org.apache.struts.upload.FormFile theFile)+
+
theFile
- The theFile to set+public java.lang.String getDirName()+
+public void setDirName(java.lang.String dirName)+
dirName
- Sets dirName+public java.lang.Long getUuid()+
+public void setUuid(java.lang.Long uuid)+
uuid
- The uuid to set.+public java.lang.String getEntryString()+
+public void setEntryString(java.lang.String entryString)+
entryString
- The entryString to set.+public java.lang.String getMethod()+
+public void setMethod(java.lang.String method)+
method
- The method to set.+public java.lang.String getDescription()+
+public void setDescription(java.lang.String description)+
description
- The description to set.
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++org.apache.struts.action.ActionForm +
com.lamsinternational.lams.contentrepository.struts.form.LoginRepositoryForm +
+MyEclipse Struts + Creation date: 01-13-2005 + + XDoclet definition: +
+ +
+
+Constructor Summary | +|
LoginRepositoryForm()
+
++ |
+
+Method Summary | +|
+ java.lang.String |
+getIndentificationString()
+
++ Returns the indentificationString. |
+
+ java.lang.String |
+getToolName()
+
++ Returns the toolName. |
+
+ java.lang.String |
+getWorkspaceName()
+
++ Returns the workspaceName. |
+
+ void |
+reset(org.apache.struts.action.ActionMapping mapping,
+ javax.servlet.http.HttpServletRequest request)
+
++ Method reset |
+
+ void |
+setIndentificationString(java.lang.String indentificationString)
+
++ Set the indentificationString. |
+
+ void |
+setToolName(java.lang.String toolName)
+
++ Set the toolName. |
+
+ void |
+setWorkspaceName(java.lang.String workspaceName)
+
++ Set the workspaceName. |
+
+ org.apache.struts.action.ActionErrors |
+validate(org.apache.struts.action.ActionMapping mapping,
+ javax.servlet.http.HttpServletRequest request)
+
++ Method validate |
+
Methods inherited from class org.apache.struts.action.ActionForm | +
getMultipartRequestHandler, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
+public LoginRepositoryForm()+
+Method Detail | +
+public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, + javax.servlet.http.HttpServletRequest request)+
+
mapping
- request
-
++public void reset(org.apache.struts.action.ActionMapping mapping, + javax.servlet.http.HttpServletRequest request)+
+
mapping
- request
- +public java.lang.String getToolName()+
+
+public void setToolName(java.lang.String toolName)+
+
toolName
- The toolName to set+public java.lang.String getWorkspaceName()+
+
+public void setWorkspaceName(java.lang.String workspaceName)+
+
workspaceName
- The workspaceName to set+public java.lang.String getIndentificationString()+
+
+public void setIndentificationString(java.lang.String indentificationString)+
+
indentificationString
- The indentificationString to set
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++org.apache.struts.action.ActionForm +
com.lamsinternational.lams.contentrepository.struts.form.NodeSelectionForm +
+Didn't want to create this class, but I keep getting "Cannot retrieve definition for form bean null" + exception so it was just easier to write it and ignore it... + XDoclet definition: +
+ +
+
+Constructor Summary | +|
NodeSelectionForm()
+
++ |
+
+Method Summary | +|
+ java.util.Map |
+getNodeMap()
+
++ |
+
+ void |
+reset(org.apache.struts.action.ActionMapping mapping,
+ javax.servlet.http.HttpServletRequest request)
+
++ Method reset |
+
+ void |
+setNodeMap(java.util.Map nodeMap)
+
++ |
+
+ org.apache.struts.action.ActionErrors |
+validate(org.apache.struts.action.ActionMapping mapping,
+ javax.servlet.http.HttpServletRequest request)
+
++ Method validate |
+
Methods inherited from class org.apache.struts.action.ActionForm | +
getMultipartRequestHandler, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate |
+
Methods inherited from class java.lang.Object | +
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
+public NodeSelectionForm()+
+Method Detail | +
+public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, + javax.servlet.http.HttpServletRequest request)+
+
mapping
- request
-
++public void reset(org.apache.struts.action.ActionMapping mapping, + javax.servlet.http.HttpServletRequest request)+
+
mapping
- request
- +public java.util.Map getNodeMap()+
+public void setNodeMap(java.util.Map nodeMap)+
nodeMap
- The nodeMap to set.
+
+
|
++ + | +||||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+Classes
+
+ +AddFileContentForm + +LoginRepositoryForm + +NodeSelectionForm |
+
+
+
|
++ + | +||||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + | +
+Class Summary | +|
AddFileContentForm | +MyEclipse Struts + Creation date: 11-30-2004 + + XDoclet definition: | +
LoginRepositoryForm | +MyEclipse Struts + Creation date: 01-13-2005 + + XDoclet definition: | +
NodeSelectionForm | +Didn't want to create this class, but I keep getting "Cannot retrieve definition for form bean null" + exception so it was just easier to write it and ignore it... | +
+
+
+
|
++ + | +||||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
+
|
++ + | +||||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +
+
+
|
++ + | +||||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + | +