# RHNodeVersion
Inherits from: RHObject :: RHWrapper :: RHPrimaryKey
# Class Methods
# Inherited methods
# New
function Dynamic New(Object prgCtx, Dynamic item=Undefined)
# Overrides:
New
in class RHObject
# ToDAPIVERSION
function ToDAPIVERSION(Object prgCtx, Dynamic item)
Class function.
# Instance Methods
# Property Methods
Property methods can be accessed with the valueForKey
method.
attrdata base64 cachekey categories categoryvalues categoryvaluesidentifier checksum classidentifier classname clone comment content createdate dapinode dapiversion dataid dpsdocumentproperties errorassoc fileextension filename filesize filetype guid hash identityhashcode img img145 img32 islocked ismajorversion isminorversion ispdf isrendition istextmimetype isvalid iterator lock metadata metadatatype methods mimetype modifydate node noderec nodeversion okassoc owner ownerid pk propertymethods providerid providerinfo providername providernamelong renditions renditiontypes serialize size storagepath string subtype tobase64 tohtml totext type unlock user version versionmajor versionminor versionnum versiontype webnode
# Inherited methods
assert cacheKey cacheKeyTouch cacheMethod cacheValueForKey callSuper checkError class classIdentifier className clone deserialize dict endTrans identityHashCode isAccessorMethod isCached isEqual isInstanceOf isProperty isPropertyMethod isPropertyRelated iterator lrucacheGet lrucacheSet memcachedDelete memcachedGet memcachedGetValue memcachedSet metadata metadataDelete metadataGet metadataSet methods model_get model_set pluck prepareForReuse primitiveValueForKey propertyMethods removeFromCache reset resetCache resolveRelatedProperty respondsTo serialize setCacheValueForKey setValueForKey setValueForKeyPath startTrans super touch valueForKey valueForKeyPath
# attrdata
function Frame attrdata()
Returns an RHAttrData
.
# base64
function String toBase64()
# categories
function Frame categories()
# categoryValues
function Assoc categoryValues()
# categoryValuesIdentifier
function Assoc categoryValuesIdentifier()
# checksum
function String checksum()
# comment
function String comment()
# content
function Dynamic content(Boolean noAudit=false)
# createDate
function Date createDate()
# dapinode
function DAPINODE dapinode()
# dapiversion
function DAPIVERSION dapiversion()
# dataid
function Integer dataid()
# delete
function Assoc delete()
# dpsBindings
function Assoc dpsBindings(Integer event)
# dpsDocumentProperties
function Assoc dpsDocumentProperties()
# fileextension
function String fileextension()
# filename
function String filename()
# filesize
function String filesize()
# filetype
function String filename()
# guid
function String guid()
# hash
function String hash()
# Overrides:
hash
in class RHObject
# img
function String img()
# img145
function String img()
# img32
function String img32()
# isLocked
function Boolean isLocked()
# isMajorVersion
function Boolean isMajorVersion()
# isMinorVersion
function Boolean isMinorVersion()
# isPDF
function Boolean isPDF()
# isRendition
function Boolean isRendition()
# isTextMimetype
function Boolean isTextMimetype()
# isValid
function Boolean isValid()
# Overrides:
isValid
in class RHPrimaryKey
# link
function String link(Record request=$RHCore.Utils.FakeRequest(.fPrgCtx), String cmdName="open", String anchor=Undefined, String nextURL=Undefined, Boolean disabledlink=false)
# llnode
function Object llnode(Integer subType=Undefined)
# lock
function Assoc lock()
# metadataType
function Integer metadataType()
# Overrides:
metadataType
in class RHPrimaryKey
# mimetype
function String mimetype()
# modifyDate
function Date modifydate()
# node
function Frame node()
# nodeRec
function Record nodeRec()
# nodeVersion
function Frame nodeVersion()
# owner
function Frame ownwer()
# ownerid
function Integer ownerid()
# pk
function Integer pk()
# Overrides:
pk
in class RHPrimaryKey
# promote
function Assoc promote()
TODO: Should we assert the current version isn't a rendition? Apparently this doesn't work with renditions. Or is the error already handled?
# providerChange
function Assoc providerChange(String provider)
# providerID
function Integer providerID()
# providerInfo
function Assoc providerInfo()
# providerName
function String providerName()
# providerNameLong
function String providerNameLong()
# rename
function Assoc rename(String newName)
# rendition
function Frame rendition(String verType)
# renditionAdd
function Assoc renditionAdd(String filePath, String verType, String mimetype=$RHCore.FileUtils.GetMimeType(filePath), String fileName=File.GetName(filePath))
Add a rendition to this version.
@parm fileName (Optional) The rendition filename
# Parameters
filePath
- The file system path.verType
- The rendition type.mimetype
- (Optional) The rendition mimetype.
# Returns
An assoc with the status of the rendition creation. The
node
is that of the original version andnodeVersion
is the newly added rendition.
# renditionDeleteAll
function Assoc renditionDeleteAll()
# renditionHasType
function Boolean renditionHasType(String renditionType)
# renditions
function Frame renditions()
# renditionTypes
function List renditiontypes()
# resetSubclass
function Void resetSubclass()
# Overrides:
resetSubclass
in class RHObject
# saveToFile
function Assoc saveToFile(String filePath)
This function also works with regular versions and renditions.
# setComment
function Assoc setComment(String comment)
# setFilename
function Assoc setFilename(String newName)
# setMimetype
function Assoc setMimetype(String mimeType)
# setValues
function Frame setValues(Dynamic value)
# Overrides:
setValues
in class RHObject
# size
function String size()
# storagepath
function String storagepath()
# string
function String string()
This method returns a string
representation of the object.
# Overrides:
string
in class RHObject
# subtype
function Integer subtype()
Returns the subtype integer of this node.
# test
function Assoc test(Integer major, Integer minor)
# toBase64
function String toBase64()
# toHTML
function String toHTML()
# toText
function String toText(Boolean noAudit=false)
# type
function String type()
# unlock
function Assoc unlock()
# updateVersion
function Assoc updateVersion(Assoc updateInfo=Undefined)
# url
function String url(Record request=$RHCore.Utils.FakeRequest(.fPrgCtx), String cmdName='open', String nextUrl=Undefined)
# user
function Frame user()
# version
function Integer version()
# versionMajor
function Integer versionMajor()
# versionMinor
function Integer versionMinor()
# versionNum
function String versionNum()
# versionType
function String versionType()
# webNode
function Object webNode(Integer subType=.subtype())
← RHNodeQuery RHObject →