| Modifier and Type | Method and Description |
|---|---|
ICollection |
createCollection(String name)
Creates a new collection with the specified name in this collection.
|
IResource |
createResource(String name,
byte[] content)
Create resource under this collection by recognizing the content type and binary flag by its file extension.
|
IResource |
createResource(String name,
byte[] content,
boolean isBinary,
String contentType)
Create resource under this collection by specifying the binary flag.
|
List<IEntity> |
getChildren()
List the children of this collection.
|
ICollection |
getCollection(String name)
Returns the collection with the specified name contained in this
collection.
|
List<ICollection> |
getCollections()
Returns a list of all the child collections held by this collection.
|
List<String> |
getCollectionsNames()
Returns a list containing the names of all the child collections directly
contained within this collection.
|
IResource |
getResource(String name)
Returns the resource with the specified name contained in this
collection.
|
List<IResource> |
getResources()
Returns a list of all the resources held by this collection.
|
List<String> |
getResourcesNames()
Returns a list containing the names of all the resources directly
contained in this collection.
|
void |
removeCollection(ICollection collection)
Removes the child collection represented by the parameter.
|
void |
removeCollection(String name)
Removes the collection with the specified name contained in this
collection.
|
void |
removeResource(IResource resource)
Removes the child resource represented by the parameter.
|
void |
removeResource(String name)
Removes the resource with the specified name from this collection.
|
List<ICollection> getCollections() throws RepositoryReadException
ICollection instancesRepositoryReadException - in case the list of ICollection cannot be retrievedList<String> getCollectionsNames() throws RepositoryReadException
ICollection instances namesRepositoryReadException - in case the names cannot be retrievedICollection createCollection(String name) throws RepositoryReadException
The name should not contain any slashes.
The change is persisted to the backend.
name - the ICollection nameICollection instanceRepositoryReadException - in the ICollection cannot be createdICollection getCollection(String name) throws RepositoryReadException
The returned collection is just a representation. It may not exist on the backend.
name - the name of the collectionICollection instance.RepositoryReadException - in case the ICollection cannot be retrievedvoid removeCollection(String name) throws RepositoryWriteException
The name should not contain any slashes.
The change is persisted to the backend.
name - the name of the ICollection to be removedRepositoryWriteException - in case the ICollectioncannot be removedvoid removeCollection(ICollection collection) throws RepositoryWriteException
collection - the ICollection instance to be removedRepositoryWriteException - in case the ICollection cannot be removedList<IResource> getResources() throws RepositoryReadException
IResource instancesRepositoryReadException - in case the list of IResource cannot be retrievedList<String> getResourcesNames() throws RepositoryReadException
IResource instances namesRepositoryReadException - in case the list of IResource names cannot be retrievedIResource getResource(String name) throws RepositoryReadException
The returned resource is just a representation. It may not exist on the backend.
name - the name of the IResourceIResource instanceRepositoryReadException - in case the IResource cannot be retrievedvoid removeResource(String name) throws RepositoryWriteException
Changes are persisted to the backend.
name - the name of the IResource instance to be removedRepositoryWriteException - in case the IResource cannot be removedvoid removeResource(IResource resource) throws RepositoryWriteException
Changes are persisted to the backend.
resource - the IResource to be removedRepositoryWriteException - in case the IResource cannot be removedList<IEntity> getChildren() throws RepositoryReadException
IEntity instancesRepositoryReadException - in case the list of the IEntity cannot be retrievedIResource createResource(String name, byte[] content, boolean isBinary, String contentType) throws RepositoryWriteException
name - the name of the IResourcecontent - the raw contentisBinary - whether it is binarycontentType - the type of the contentIResource instanceRepositoryWriteException - in case the IResource cannot be createdIResource createResource(String name, byte[] content) throws RepositoryWriteException
name - the name of the IResourcecontent - the raw contentIResource instanceRepositoryWriteException - in case the IResource cannot be createdCopyright © 2010–2018 Eclipse Foundation. All rights reserved.