Package us.kbase.workspace
Class ObjectSpecification
- java.lang.Object
-
- us.kbase.workspace.ObjectSpecification
-
@Generated("com.googlecode.jsonschema2pojo") public class ObjectSpecification extends Object
Original spec-file type: ObjectSpecification
An Object Specification (OS). Inherits from ObjectIdentity (OI). Specifies which object, and which parts of that object, to retrieve from the Workspace Service. The fields wsid, workspace, objid, name, and ver are identical to the OI fields. The ref field's behavior is extended from OI. It maintains its previous behavior, but now also can act as a reference string. See reference following below for more information. REFERENCE FOLLOWING: Reference following guarantees that a user that has access to an object can always see a) objects that are referenced inside the object and b) objects that are referenced in the object's provenance. This ensures that the user has visibility into the entire provenance of the object and the object's object dependencies (e.g. references). The user must have at least read access to the object specified in this SO, but need not have access to any further objects in the reference chain, and those objects may be deleted. Optional reference following fields: Note that only one of the following fields may be specified. ref_chain obj_path - a path to the desired object from the object specified in this OS. In other words, the object specified in this OS is assumed to be accessible to the user, and the objects in the object path represent a chain of references to the desired object at the end of the object path. If the references are all valid, the desired object will be returned. - OR - list
obj_ref_path - shorthand for the obj_path. - OR - ref_chain to_obj_path - identical to obj_path, except that the path is TO the object specified in this OS, rather than from the object. In other words the object specified by wsid/objid/ref etc. is the end of the path, and to_obj_path is the rest of the path. The user must have access to the first object in the to_obj_path. - OR - list to_obj_ref_path - shorthand for the to_obj_path. - OR - ref_string ref - A string representing a reference path from one object to another. Unlike the previous reference following options, the ref_string represents the ENTIRE path from the source object to the target object. As with the OI object, the ref field may contain a single reference. - OR - boolean find_refence_path - This is the last, slowest, and most expensive resort for getting a referenced object - do not use this method unless the path to the object is unavailable by any other means. Setting the find_refence_path parameter to true means that the workspace service will search through the object reference graph from the object specified in this OS to find an object that 1) the user can access, and 2) has an unbroken reference path to the target object. If the search succeeds, the object will be returned as normal. Note that the search will automatically fail after a certain (but much larger than necessary for the vast majority of cases) number of objects are traversed. OBJECT SUBSETS: When selecting a subset of an array in an object, the returned array is compressed to the size of the subset, but the ordering of the array is maintained. For example, if the array stored at the 'feature' key of a Genome object has 4000 entries, and the object paths provided are: /feature/7 /feature/3015 /feature/700 The returned feature array will be of length three and the entries will consist, in order, of the 7th, 700th, and 3015th entries of the original array. Optional object subset fields: list included - the portions of the object to include in the object subset. boolean strict_maps - if true, throw an exception if the subset specification traverses a non-existent map key (default false) boolean strict_arrays - if true, throw an exception if the subset specification exceeds the size of an array (default true)
-
-
Constructor Summary
Constructors Constructor Description ObjectSpecification()
-
Method Summary
-
-
-
Method Detail
-
getWorkspace
public String getWorkspace()
-
setWorkspace
public void setWorkspace(String workspace)
-
withWorkspace
public ObjectSpecification withWorkspace(String workspace)
-
getWsid
public Long getWsid()
-
setWsid
public void setWsid(Long wsid)
-
withWsid
public ObjectSpecification withWsid(Long wsid)
-
getName
public String getName()
-
setName
public void setName(String name)
-
withName
public ObjectSpecification withName(String name)
-
getObjid
public Long getObjid()
-
setObjid
public void setObjid(Long objid)
-
withObjid
public ObjectSpecification withObjid(Long objid)
-
getVer
public Long getVer()
-
setVer
public void setVer(Long ver)
-
withVer
public ObjectSpecification withVer(Long ver)
-
getRef
public String getRef()
-
setRef
public void setRef(String ref)
-
withRef
public ObjectSpecification withRef(String ref)
-
getObjPath
public List<ObjectIdentity> getObjPath()
-
setObjPath
public void setObjPath(List<ObjectIdentity> objPath)
-
withObjPath
public ObjectSpecification withObjPath(List<ObjectIdentity> objPath)
-
withObjRefPath
public ObjectSpecification withObjRefPath(List<String> objRefPath)
-
getToObjPath
public List<ObjectIdentity> getToObjPath()
-
setToObjPath
public void setToObjPath(List<ObjectIdentity> toObjPath)
-
withToObjPath
public ObjectSpecification withToObjPath(List<ObjectIdentity> toObjPath)
-
withToObjRefPath
public ObjectSpecification withToObjRefPath(List<String> toObjRefPath)
-
getFindReferencePath
public Long getFindReferencePath()
-
setFindReferencePath
public void setFindReferencePath(Long findReferencePath)
-
withFindReferencePath
public ObjectSpecification withFindReferencePath(Long findReferencePath)
-
withIncluded
public ObjectSpecification withIncluded(List<String> included)
-
getStrictMaps
public Long getStrictMaps()
-
setStrictMaps
public void setStrictMaps(Long strictMaps)
-
withStrictMaps
public ObjectSpecification withStrictMaps(Long strictMaps)
-
getStrictArrays
public Long getStrictArrays()
-
setStrictArrays
public void setStrictArrays(Long strictArrays)
-
withStrictArrays
public ObjectSpecification withStrictArrays(Long strictArrays)
-
-