Class ContentPath
java.lang.Object
io.skipcheck.tm1.client.service.content.ContentPath
Where an entry is in the contents tree: a root folder, then each folder's child by ID.
// Children by ID, which for most entries is the name plus a suffix for the kind
ContentPath notes = ContentPath.applications().child("Planning").child("notes.txt.blob");
// Contents('Applications')/Contents('Planning')/Contents('notes.txt.blob')
Children are found by their ID, not their Name, though
$metadata keys entries by Name: TM1 (11.8) gives most entries an ID of
the name plus a suffix for its kind, such as notes.txt.blob for a document,
ibm.extr for a link and }ClientGroups.cube for a cube
reference. A folder's ID is its name. The ID is in the entry TM1 returns when it's
made. $metadata deprecates Entry.ID in schema 11.5.0, but TM1 11.8
still keys by it. Paths are immutable.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContentPathTheApplicationsfolder, where applications are built.static ContentPathblobs()TheBlobsfolder, holding the documents behind the document references in applications.A public child of this folder, as TM1 returned it, such as fromContentService.create: found by itsID, which$metadatadeprecates but TM1 (11.8) still keys entries by, so callers needn't read it.child(Entry entry, ContentScope scope) A child of this folder as TM1 returned it, public or private: seechild(Entry).A public child of this folder:…/Contents('id').child(String id, ContentScope scope) A child of this folder, public or private.booleaninthashCode()booleaninBlobs()Whether this is in theBlobsfolder, where documents themselves are.path()The OData path to the entry.static ContentPathA root folder:Contents('id').toString()The IDs from the root, such asApplications/Planning/notes.txt.blob.
-
Method Details
-
root
A root folder:Contents('id').- Parameters:
id- the folder's ID, such asApplications- Returns:
- the path
-
applications
TheApplicationsfolder, where applications are built.- Returns:
- the path
-
blobs
TheBlobsfolder, holding the documents behind the document references in applications.- Returns:
- the path
-
child
A public child of this folder:…/Contents('id').- Parameters:
id- the child's ID- Returns:
- the child's path
-
child
A public child of this folder, as TM1 returned it, such as fromContentService.create: found by itsID, which$metadatadeprecates but TM1 (11.8) still keys entries by, so callers needn't read it.- Parameters:
entry- the entry- Returns:
- the child's path
- Throws:
IllegalArgumentException- if the entry has no ID (it was selected away)
-
child
A child of this folder as TM1 returned it, public or private: seechild(Entry).- Parameters:
entry- the entryscope- which of the folder's collections holds it- Returns:
- the child's path
- Throws:
IllegalArgumentException- if the entry has no ID
-
child
A child of this folder, public or private.- Parameters:
id- the child's IDscope- which of the folder's collections holds it- Returns:
- the child's path
-
inBlobs
public boolean inBlobs()Whether this is in theBlobsfolder, where documents themselves are.- Returns:
- whether the root is
Blobs
-
path
The OData path to the entry.- Returns:
- the path, such as
Contents('Applications')/Contents('Planning')
-
toString
-
equals
-
hashCode
-