public class Octane extends Object
server_url:port/api/shared_spaces/[sharedspace_id]/workspaces/[workspace_id]
server_url:port/api/shared_spaces
server_url:port/api/shared_spaces/[sharedspace_id]
The Octane class is instantialized using the Octane.Builder class. Once that instance has been
obtained the Octane context can be used to create further entity, metadata, attachment contexts or to sign out of the server.
The Octane instance can be reused to create different contexts
| Modifier and Type | Class and Description |
|---|---|
static class |
Octane.Builder
This class is used to create an
Octane instance for normal API usage. |
static class |
Octane.OctaneCustomSettings
Octane settings holder containing lower level configurations
|
static class |
Octane.OctaneInternalConfiguration
Used to aggregate internal configurations that need to be passed around
|
| Modifier and Type | Field and Description |
|---|---|
static String |
NO_ENTITY |
static long |
NO_WORKSPACE_ID |
| Modifier and Type | Method and Description |
|---|---|
AttachmentList |
attachmentList()
Creates a new attachmentList object.
|
<T extends TypedEntityList> |
entityList(Class<T> entityListClass)
Creates a new
TypedEntityList context. |
EntityList |
entityList(String entityName)
Creates a new EntityList context.
|
Metadata |
metadata()
Creates a new Metadata object.
|
void |
signOut()
Signs out of the Octane server.
|
public static final long NO_WORKSPACE_ID
public static final String NO_ENTITY
public EntityList entityList(String entityName)
Creates a new EntityList context. The entity name should be the collection name of the entity.
For example defects, tests, releases
By using NO_ENTITY this is set to be the admin context to get the list of spaces or workspaces
entityName - - The name of the entity as a collectionpublic <T extends TypedEntityList> T entityList(Class<T> entityListClass)
TypedEntityList context. The class is the concrete instance of the TypedEntityListT - The type of classentityListClass - The class that is the instance of the TypedEntityListpublic Metadata metadata()
[workspace_url/metadata
This can then be used further to get metadata information from the server
public AttachmentList attachmentList()
[workspace_url/attachmentspublic void signOut()
Copyright © 2021 Micro Focus. All rights reserved.