4Suite
™
API Documentation
►
Module
Ft
.
Server
.
Server
.
SCore
.ResourceMetaDataImp
######################################################################## # $Header: /var/local/cvsroot/4Suite/Ft/Server/Server/SCore/ResourceMetaDataImp.py,v 1.56 2005/03/28 11:29:12 mbrown Exp $
Classes:
ResourceMetaDataImp
Fields:
FTSERVER_NAMESPACE
,
OBJECT_TYPE_LITERAL
,
OBJECT_TYPE_RESOURCE
,
RESERVED_NAMESPACE
,
SET_OWNER_XUPDATE
,
SET_TIME_TO_LIVE_XUPDATE
,
UPDATE_TIME_TO_LIVE_XUPDATE
,
XLINK_NAMESPACE
Classes
class
ResourceMetaDataImp
Methods
__init__
(
self
,
path
,
driver
,
cache
)
__str__
(
self
)
########################################## #String interfaces ##########################################
addAcl
(
self
,
aclKey
,
aclIdent
,
allowed
=1
)
##################################### #ACL Interfaces #####################################
addAlias
(
self
,
path
,
docDef
=None
)
################################### #Creation Interfaces ###################################
addLiteralProperty
(
self
,
predicate
,
object
,
scope
=''
,
statementUri
=''
)
addResourceProperty
(
self
,
predicate
,
object
,
scope
=''
,
statementUri
=''
)
applyXslt
(
self
,
chain
,
params
=None
,
ignorePis
=1
,
extParams
=None
,
extModules
=None
)
asDom
(
self
,
stripElements
=None
)
delete
(
self
)
fetchResource
(
self
,
path
,
traverseAliases
=None
)
##################################### #Retrieval Interfaces #####################################
getAbsolutePath
(
self
)
getAbsolutePathAsUri
(
self
)
getAcl
(
self
,
aclKey
=None
)
getAclIdent
(
self
)
getAclIdentifiers
(
self
)
getAliases
(
self
)
getBasePath
(
self
)
getContent
(
self
)
getContentResource
(
self
)
getContentSlice
(
self
,
start
=None
,
end
=None
)
getCreationDate
(
self
)
getDisplayPath
(
self
)
getExtFunctionsAndElements
(
self
)
getImt
(
self
)
getLastModifiedDate
(
self
)
getMetaDataResource
(
self
)
getModel
(
self
)
getName
(
self
)
getOwner
(
self
)
getParent
(
self
)
getPath
(
self
)
############################################### #General interfaces for getting information about the object ###############################################
getResourceType
(
self
)
getRoot
(
self
)
getSize
(
self
)
getStatementsAbout
(
self
)
getStatementsGeneratedBy
(
self
)
getValidationInfo
(
self
)
hasResource
(
self
,
path
)
##################################### #Query Interfaces #####################################
inheritAcl
(
self
,
aclKey
)
isResourceType
(
self
,
testType
)
markTemporary
(
self
,
timeToLive
)
######################################## #Temporary file Interfaces ########################################
removeAcl
(
self
,
aclKey
,
aclIdent
)
removeAlias
(
self
,
path
)
###################################### #Delete Interface ######################################
removeLiteralProperty
(
self
,
predicate
,
object
)
removeResourceProperty
(
self
,
predicate
,
object
)
setAcl
(
self
,
aclKey
,
aclIdent
,
allowed
=1
)
setContent
(
self
,
src
)
########################################## #Mutation Interfaces ##########################################
setOwner
(
self
,
newOwner
)
toXPathContext
(
self
,
nss
=None
)
verifyAcl
(
self
,
aclKey
,
verifyTraverse
=1
)
xUpdate
(
self
,
updateSrc
)
Fields
resourceType
= 16
Fields
FTSERVER_NAMESPACE
= 'http://xmlns.4suite.org/reserved'
OBJECT_TYPE_LITERAL
= 'L'
OBJECT_TYPE_RESOURCE
= 'R'
RESERVED_NAMESPACE
= 'http://xmlns.4suite.org/reserved'
SET_OWNER_XUPDATE
= '<xupdate:modifications\n version="1.0"\n xmlns:x...ner">%s</xupdate:update>\n</xupdate:modifications>'
SET_TIME_TO_LIVE_XUPDATE
= '<?xml version="1.0"?>\n<xupdate:modifications\n v...oLive></xupdate:append>\n</xupdate:modifications>\n'
UPDATE_TIME_TO_LIVE_XUPDATE
= '<?xml version="1.0"?>\n<xupdate:modifications\n v...ve">%s</xupdate:update>\n</xupdate:modifications>\n'
XLINK_NAMESPACE
= u'http://www.w3.org/1999/xlink'