public class JSLinkManager extends JSBaseScriptableObject
myLogger
Constructor and Description |
---|
JSLinkManager() |
Modifier and Type | Method and Description |
---|---|
JSLink |
jsFunction_addToLinkGroup(ManagedFile theFile,
ManagedFile theFile2,
java.lang.Boolean theDirectional,
java.lang.String theDescription,
java.lang.String theLinkGroupId)
Add the second given asset to the first given asset's link group identified by the given link group id.
|
JSLink |
jsFunction_createLink(ManagedFile theAsset,
ManagedFile theAsset2,
java.lang.Boolean theDirectional,
java.lang.String theDescription,
java.lang.String theGlobalDescription)
Create a directional or named link between the given assets.
|
JSLink |
jsFunction_createLinkById(java.lang.Integer theAssetId,
java.lang.Integer theAssetId2,
java.lang.Boolean theDirectional,
java.lang.String theDescription,
java.lang.String theGlobalDescription)
Create a directional or named link between the given assets.
|
JSLink |
jsFunction_createLinksByResolver(java.lang.String theResolverUrl,
java.lang.String theGlobalDescription,
Parameters theIndividualDescriptions)
Create named links between the given assets.
|
ManagedFile[] |
jsFunction_getAssetsInLinkGroup(ManagedFile theAsset,
JSLink theLinkGroup)
Get the other assets linked to the given asset by the given link group.
|
ManagedFile[] |
jsFunction_getDocumentLinks(ManagedFile theAsset)
Returns Assets that are referenced in theAsset.
|
JSEmbeddedFile[] |
jsFunction_getEmbeddedFiles(ManagedFile theAsset)
Get the Embedded Assets for the asset with the asset ID
|
JSEmbeddedFile[] |
jsFunction_getEmbeddedFilesFromManifest(ManagedFile theAsset)
Get the Embedded Assets for the given asset
|
ManagedFile[] |
jsFunction_getLinkedAssets(java.lang.Integer theAssetId)
Get assets linked to the given asset.
|
JSLink[] |
jsFunction_getLinks(java.lang.Integer theAssetId)
Get a given asset's template links which define which assets are linked to the given asset.
|
java.lang.String[] |
jsFunction_getStampedFiles(ManagedFile theAsset)
Get all stamped child document IDs for the given asset
|
JSLink |
jsFunction_linkAssetWithResolver(java.lang.Integer theAssetId,
java.lang.String theResolverUrl,
java.lang.String theGlobalDescription,
Parameters theIndividualDescriptions)
Creates a named link between an asset to each asset defined by a resolver.
|
void |
jsFunction_removeFromLinkGroup(ManagedFile theAsset,
JSLink theLinkGroup)
Remove the given asset from the given link group.
|
void |
jsFunction_setGlobalDescription(JSLink theLinkGroup,
java.lang.String theGlobalDescription)
Updates the global description for a link group.
|
void |
jsFunction_setLinkStamp(java.lang.Integer theParentAssetId,
java.lang.Integer theChildAssetId,
java.lang.Integer theScore,
java.lang.String theChildDocumentId)
set a link stamp for the given parent
|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public JSLink jsFunction_createLink(ManagedFile theAsset, ManagedFile theAsset2, java.lang.Boolean theDirectional, java.lang.String theDescription, java.lang.String theGlobalDescription)
theAsset
- An asset to link.theAsset2
- An asset to link.theDirectional
- Is the link directional? If true will only link from asset 1 to asset 2.theDescription
- The link description.theGlobalDescription
- the global link description (optional)public JSLink jsFunction_createLinksByResolver(java.lang.String theResolverUrl, java.lang.String theGlobalDescription, Parameters theIndividualDescriptions)
theResolverUrl
- the resolver urltheGlobalDescription
- the global link descriptiontheIndividualDescriptions
- the individual descriptions parameter map, keyed by asset id.public JSLink jsFunction_linkAssetWithResolver(java.lang.Integer theAssetId, java.lang.String theResolverUrl, java.lang.String theGlobalDescription, Parameters theIndividualDescriptions)
theAssetId
- the asset id.theResolverUrl
- the resolver URL.theGlobalDescription
- the global link description.theIndividualDescriptions
- the individual descriptions parameter map, keyed by asset id.public JSLink jsFunction_createLinkById(java.lang.Integer theAssetId, java.lang.Integer theAssetId2, java.lang.Boolean theDirectional, java.lang.String theDescription, java.lang.String theGlobalDescription)
theAssetId
- An asset to link.theAssetId2
- An asset to link.theDirectional
- Is the link directional? If true will only link from asset 1 to asset 2.theDescription
- The link description.theGlobalDescription
- the global link description (optional)public JSLink jsFunction_addToLinkGroup(ManagedFile theFile, ManagedFile theFile2, java.lang.Boolean theDirectional, java.lang.String theDescription, java.lang.String theLinkGroupId)
theFile
- The asset being linked to.theFile2
- The linking asset.theDirectional
- Is this a directional link?theDescription
- The link descriptiontheLinkGroupId
- The link group id.public void jsFunction_removeFromLinkGroup(ManagedFile theAsset, JSLink theLinkGroup)
theAsset
- The given asset.theLinkGroup
- The id of the link group to be deleted.public ManagedFile[] jsFunction_getLinkedAssets(java.lang.Integer theAssetId)
theAssetId
- the given asset.public ManagedFile[] jsFunction_getAssetsInLinkGroup(ManagedFile theAsset, JSLink theLinkGroup)
theAsset
- The given asset.theLinkGroup
- The given link group to find the other members of.public JSLink[] jsFunction_getLinks(java.lang.Integer theAssetId)
theAssetId
- The given asset.public void jsFunction_setGlobalDescription(JSLink theLinkGroup, java.lang.String theGlobalDescription)
theLinkGroup
- the link group to changetheGlobalDescription
- the new global descriptionpublic ManagedFile[] jsFunction_getDocumentLinks(ManagedFile theAsset)
theAsset
- the asset to check for linkspublic JSEmbeddedFile[] jsFunction_getEmbeddedFiles(ManagedFile theAsset)
theAsset
- public void jsFunction_setLinkStamp(java.lang.Integer theParentAssetId, java.lang.Integer theChildAssetId, java.lang.Integer theScore, java.lang.String theChildDocumentId)
theParentAssetId
- theChildDocumentId
- theChildAssetId
- public JSEmbeddedFile[] jsFunction_getEmbeddedFilesFromManifest(ManagedFile theAsset)
theAsset
- public java.lang.String[] jsFunction_getStampedFiles(ManagedFile theAsset)
theAsset
- Copyright © 2023 MediaBeacon, Inc. All Rights Reserved.