|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.sp.inmemory.StorageImpl
public class StorageImpl
In-memory implementation of xCMIS storage. This is storage is limited in number of items and total amount of content. Storage is not designed for high concurrency load. In some cases data in storage can be in inconsistency state.
| Field Summary | |
|---|---|
protected RenditionManager |
renditionManager
The rendition manager. |
| Constructor Summary | |
|---|---|
StorageImpl(StorageConfiguration configuration)
|
|
StorageImpl(StorageConfiguration configuration,
RenditionManager manager,
PermissionService permissionService)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected RenditionManager renditionManager
| Constructor Detail |
|---|
public StorageImpl(StorageConfiguration configuration,
RenditionManager manager,
PermissionService permissionService)
public StorageImpl(StorageConfiguration configuration)
| Method Detail |
|---|
public static String generateId()
public AllowableActions calculateAllowableActions(ObjectData object)
calculateAllowableActions in interface Storage
public DocumentData copyDocument(DocumentData source,
FolderData parent,
Map<String,Property<?>> properties,
List<AccessControlEntry> acl,
Collection<PolicyData> policies,
VersioningState versioningState)
throws ConstraintException,
NameConstraintViolationException,
StorageException
copyDocument in interface StorageConstraintException
NameConstraintViolationException
StorageException
public DocumentData createDocument(FolderData parent,
TypeDefinition typeDefinition,
Map<String,Property<?>> properties,
ContentStream content,
List<AccessControlEntry> acl,
Collection<PolicyData> policies,
VersioningState versioningState)
throws ConstraintException,
NameConstraintViolationException,
IOException,
StorageException
createDocument in interface StorageConstraintException
NameConstraintViolationException
IOException
StorageException
public FolderData createFolder(FolderData parent,
TypeDefinition typeDefinition,
Map<String,Property<?>> properties,
List<AccessControlEntry> acl,
Collection<PolicyData> policies)
throws ConstraintException,
NameConstraintViolationException,
StorageException
createFolder in interface StorageConstraintException
NameConstraintViolationException
StorageException
public PolicyData createPolicy(FolderData parent,
TypeDefinition typeDefinition,
Map<String,Property<?>> properties,
List<AccessControlEntry> acl,
Collection<PolicyData> policies)
throws ConstraintException,
NameConstraintViolationException,
StorageException
createPolicy in interface StorageConstraintException
NameConstraintViolationException
StorageException
public RelationshipData createRelationship(ObjectData source,
ObjectData target,
TypeDefinition typeDefinition,
Map<String,Property<?>> properties,
List<AccessControlEntry> acl,
Collection<PolicyData> policies)
throws NameConstraintViolationException,
StorageException
createRelationship in interface StorageNameConstraintViolationException
StorageException
public void deleteObject(ObjectData object,
boolean deleteAllVersions)
throws VersioningException,
UpdateConflictException,
StorageException
deleteObject in interface StorageVersioningException
UpdateConflictException
StorageException
public Collection<String> deleteTree(FolderData folder,
boolean deleteAllVersions,
UnfileObject unfileObject,
boolean continueOnFailure)
throws UpdateConflictException
deleteTree in interface StorageUpdateConflictException
public Collection<DocumentData> getAllVersions(String versionSeriesId)
throws ObjectNotFoundException
getAllVersions in interface StorageObjectNotFoundException
public ItemsIterator<ChangeEvent> getChangeLog(String changeLogToken)
throws ConstraintException
getChangeLog in interface StorageConstraintException
public ItemsIterator<DocumentData> getCheckedOutDocuments(FolderData folder,
String orderBy)
getCheckedOutDocuments in interface Storagepublic String getId()
getId in interface Storage
public ObjectData getObjectById(String objectId)
throws ObjectNotFoundException
getObjectById in interface StorageObjectNotFoundException
public ObjectData getObjectByPath(String path)
throws ObjectNotFoundException
getObjectByPath in interface StorageObjectNotFoundExceptionpublic ItemsIterator<Rendition> getRenditions(ObjectData object)
getRenditions in interface Storagepublic RepositoryInfo getRepositoryInfo()
getRepositoryInfo in interface Storage
public ObjectData moveObject(ObjectData object,
FolderData target,
FolderData source)
throws UpdateConflictException,
VersioningException,
NameConstraintViolationException,
StorageException
moveObject in interface StorageUpdateConflictException
VersioningException
NameConstraintViolationException
StorageException
public ItemsIterator<Result> query(Query query)
throws InvalidArgumentException
query in interface StorageInvalidArgumentExceptionpublic void unfileObject(ObjectData object)
unfileObject in interface Storage
public Iterator<String> getUnfiledObjectsId()
throws StorageException
getUnfiledObjectsId in interface StorageStorageException
public String addType(TypeDefinition type)
throws StorageException,
CmisRuntimeException
addType in interface TypeManagerStorageException
CmisRuntimeException
public ItemsIterator<TypeDefinition> getTypeChildren(String typeId,
boolean includePropertyDefinitions)
throws TypeNotFoundException,
CmisRuntimeException
getTypeChildren in interface TypeManagerTypeNotFoundException
CmisRuntimeException
public TypeDefinition getTypeDefinition(String typeId,
boolean includePropertyDefinition)
throws TypeNotFoundException,
CmisRuntimeException
getTypeDefinition in interface TypeManagerTypeNotFoundException
CmisRuntimeException
public void removeType(String typeId)
throws TypeNotFoundException,
StorageException,
ConstraintException
removeType in interface TypeManagerTypeNotFoundException
StorageException
ConstraintExceptionprotected String getCurrentUser()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||