2005-04-06 23:05:46

XSLT and XPath extensions supporting the 4SS ResourceMetaData API

Copyright 2004 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Add access for an given identifer and level to the ACL of a resource

Empty is the content model for childless elements

<Ft.Xml.Xslt.ContentInfo.Atom instance>
{'access': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'allowed': <Ft.Xml.Xslt.AttributeInfo.YesNoAvt instance>, 'ident': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'path': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>}

Adds an alias for this resource to the repository.

Empty is the content model for childless elements

<Ft.Xml.Xslt.ContentInfo.Atom instance>
{'alias': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>, 'doc-def': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>, 'path': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>}

Delete this resource

Empty is the content model for childless elements

<Ft.Xml.Xslt.ContentInfo.Atom instance>
{'path': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>}

Set the inheritance ACL of a resource

Empty is the content model for childless elements

<Ft.Xml.Xslt.ContentInfo.Atom instance>
{'access': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'path': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>}

Mark a resource as temporary

Empty is the content model for childless elements

<Ft.Xml.Xslt.ContentInfo.Atom instance>
{'path': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>, 'time-to-live': <Ft.Xml.Xslt.AttributeInfo.NumberAvt instance>}

Remove the ACL from a resource

Empty is the content model for childless elements

<Ft.Xml.Xslt.ContentInfo.Atom instance>
{'access': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'ident': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'path': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>}

Remove an alias for this resource from the repository.

Empty is the content model for childless elements

<Ft.Xml.Xslt.ContentInfo.Atom instance>
{'alias': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>, 'path': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>}

Reset the ACL for a resource, and then optionally add access for an given identifer and level to the ACL of a resource

Empty is the content model for childless elements

<Ft.Xml.Xslt.ContentInfo.Atom instance>
{'access': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'allowed': <Ft.Xml.Xslt.AttributeInfo.YesNoAvt instance>, 'ident': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'path': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>}

Set the string content of the resource with the given path, document definition and type. The output of the body of the element makes up the content of the resulting document, either literally or as a result of the contained XSLT instructions (according to the literal-content attribute). All the attributes available on the xsl:output instruction are also allowed on this element, in order to control the creation of the content. If the resource is a document whose definition specifies a full text index, then the content is re-indexed

Template is the set of text, instructions or result-elements

<Ft.Xml.Xslt.ContentInfo.Rep instance>
True
{'base-path': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>, 'cdata-section-elements': <Ft.Xml.Xslt.AttributeInfo.QNamesAvt instance>, 'content-as-string': <Ft.Xml.Xslt.AttributeInfo.YesNo instance>, 'doctype-public': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'doctype-system': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'encoding': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'indent': <Ft.Xml.Xslt.AttributeInfo.YesNoAvt instance>, 'literal-content': <Ft.Xml.Xslt.AttributeInfo.YesNo instance>, 'media-type': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'method': <Ft.Xml.Xslt.AttributeInfo.QNameAvt instance>, ...}

Change the owner of a resource

Empty is the content model for childless elements

<Ft.Xml.Xslt.ContentInfo.Atom instance>
{'owner': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>, 'path': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>}

Allows XML content to be updated with the XUpdate protocol

The content of the fcore:xupdate element is a template for the XUpdate document source.

Template is the set of text, instructions or result-elements

<Ft.Xml.Xslt.ContentInfo.Rep instance>
{'path': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>}

Get an RTF that is as a live version of the document function. NOTE: This does not work like document(), where document() caches RTFs and always returns the same one per the spec, as-dom will return the latest in the repo.

Get the full path into the system, resolving aliases if needed

Get a list of alias objects that reference this object

Get the string content of this resource as an XPath string object

path - the repository path to the object to retrieve encoding - the encoding to use in converting the content to Unicode

Get the date the resource was created

Get the date the resource was last modified

Get the string meta data of this resource

Get the name of the resource.

Get the owner of the resource

Get the parent container of this resource

Get the string content of this resource as a raw Unicode object

path - the repository path to the object to retrieve encoding - the encoding to use in converting the content to Unicode

Get the size of the resource

Get the resource type of the resource

Verify that the testAclIdent is in the acl list specified by the acl key for this object.

Get a list of users and groups specified by the aclKey

{('http://xmlns.4suite.org/4ss/score', 'add-acl'): <class Ft.Server.Server.Xslt.ResourceMetaData.AddAclElement>, ('http://xmlns.4suite.org/4ss/score', 'add-alias'): <class Ft.Server.Server.Xslt.ResourceMetaData.AddAliasElement>, ('http://xmlns.4suite.org/4ss/score', 'delete-resource'): <class Ft.Server.Server.Xslt.ResourceMetaData.DeleteElement>, ('http://xmlns.4suite.org/4ss/score', 'inherit-acl'): <class Ft.Server.Server.Xslt.ResourceMetaData.InheritAclElement>, ('http://xmlns.4suite.org/4ss/score', 'mark-temporary'): <class Ft.Server.Server.Xslt.ResourceMetaData.MarkTemporaryElement>, ('http://xmlns.4suite.org/4ss/score', 'remove-acl'): <class Ft.Server.Server.Xslt.ResourceMetaData.RemoveAclElement>, ('http://xmlns.4suite.org/4ss/score', 'remove-alias'): <class Ft.Server.Server.Xslt.ResourceMetaData.RemoveAliasElement>, ('http://xmlns.4suite.org/4ss/score', 'set-acl'): <class Ft.Server.Server.Xslt.ResourceMetaData.SetAclElement>, ('http://xmlns.4suite.org/4ss/score', 'set-content'): <class Ft.Server.Server.Xslt.ResourceMetaData.SetContentElement>, ('http://xmlns.4suite.org/4ss/score', 'set-owner'): <class Ft.Server.Server.Xslt.ResourceMetaData.SetOwnerElement>, ...}
{('http://xmlns.4suite.org/4ss/score', 'as-dom'): <function AsDom>, ('http://xmlns.4suite.org/4ss/score', 'get-absolute-path'): <function GetAbsolutePath>, ('http://xmlns.4suite.org/4ss/score', 'get-acl-by-key'): <function GetAclByKey>, ('http://xmlns.4suite.org/4ss/score', 'get-aliases'): <function GetAliases>, ('http://xmlns.4suite.org/4ss/score', 'get-all-acl'): <function GetAllAcl>, ('http://xmlns.4suite.org/4ss/score', 'get-content'): <function GetContent>, ('http://xmlns.4suite.org/4ss/score', 'get-creation-date'): <function GetCreationDate>, ('http://xmlns.4suite.org/4ss/score', 'get-last-modified-date'): <function GetLastModifiedDate>, ('http://xmlns.4suite.org/4ss/score', 'get-metadata-resource'): <function GetMetaDataResource>, ('http://xmlns.4suite.org/4ss/score', 'get-name'): <function GetName>, ...}
'http://xmlns.4suite.org/reserved'
'http://xmlns.4suite.org/4ss/score'