Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
XML
No permission is required to read the information.
However if the caller does not have the READ_CONTAINER permission only a subset of the list returned.
This method supports anonymous calls.
[This is preliminary documentation and is subject to change.]
Returns detailed information about a category.
Namespace: ContentStudio.Document
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public string GetItem( ConnectionId connectionId, SessionId sessionId, CategoryId categoryId )
Parameters
- connectionId
- Type: ContentStudioConnectionId
A value that identifies the web site - sessionId
- Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId). - categoryId
- Type: ContentStudio.DocumentCategoryId
An identifier to to the category to get details for
Return Value
Type: StringXML
<root> <status>0</status> <statustext>Success</statustext> <cs_category> <documenttype>integer flag value</documenttype> <categoryname>string value</categoryname> <modulename>string value</modulename> <statusint>integer flag value</statusint> <bodyproperties>string value</bodyproperties> <fullname>string value</fullname> <plaintext>bit value</plaintext> <nometadata>bit value</nometadata> <searchable>bit value</searchable> <statustext>bit value</statustext> <hashistory>bit value</hashistory> <unitid>integer value</unitid> <startid>integer value</startid> <edittemplateid>integer value</edittemplateid> <defaultcacheduration>integer value</defaultcacheduration> <ownerid>integer value</ownerid> <owner>integer value</owner> <presentationtemplateid>integer value</presentationtemplateid> <defaultformid>integer value</defaultformid> <ispresentationtemplate>integer value</ispresentationtemplate> <isedittemplate>integer value</isedittemplate> <userpermission>integer flag value</userpermission> <parentcategoryid>integer value</parentcategoryid> <mlcstatus>integer flag value</mlcstatus> <fullpath>string value</fullpath> <description>string value</description> <documentcounter>integer value</documentcounter> <isenabledforpdf>bit value</isenabledforpdf> <guoid>string value</guoid> <serversidevalidation>bit value</serversidevalidation> <usemetasecurity>bit value</usemetasecurity> <customviewurl>string value</customviewurl> <!-- these fields was added in Content Studio 5.1--> <allowedfiletypes>string value</allowedfiletypes> <maxcontentsize>integer value</maxcontentsize> <!-- these fields was added in Content Studio 5.2--> <documentfilenamingconvention>integer value</documentfilenamingconvention> <categoryid>integer value</categoryid> </cs_category> </root>
Name | Meaning | Comment | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
root/cs_category/documenttype | The type of document that this category can contain. For more information see the DocumentTypes enumeration. | |||||||||||||||||||
root/cs_category/categoryname | The name of the category | |||||||||||||||||||
root/cs_category/modulename | An internal value that defines the type of category | The table below lists the supported value for ModuleName.
| ||||||||||||||||||
root/cs_category/statusint | The status of the category. This is a value used internal only. The status has been interpreted as returned field such as plaintext and nometadata. | This field is omitted if the caller has readpermissions only. | ||||||||||||||||||
root/cs_category/bodyproperties | The content of the body tag of the generated document. | |||||||||||||||||||
root/cs_category/fullname | Not used. | This field is always empty. | ||||||||||||||||||
root/cs_category/plaintext | A value that indicates whether the category is for plain text documents only | |||||||||||||||||||
root/cs_category/nometadata> | A value that indicates whether the category contains documents that does not have auto generated meta data | |||||||||||||||||||
root/cs_category/searchable | A value that indicates whether the category is enabled for full text search | This field is omitted if the caller has read permissions only. | ||||||||||||||||||
root/cs_category/statustext | description | This field is omitted if the caller has read permissions only. | ||||||||||||||||||
root/cs_category/hashistory | A value that indicates whether the category uses versioning support. | |||||||||||||||||||
root/cs_category/unitid | The identifier of the unit where the category exists. | A category is always connected to a unit regardless of its structure depth. | ||||||||||||||||||
root/cs_category/startid | An identifier of a document that acts as the default document for this category | |||||||||||||||||||
root/cs_category/edittemplateid | The id of the editing template to use. | This value is relevant for EPT documents categories only. | ||||||||||||||||||
root/cs_category/defaultcacheduration | Not used in CS 5. | This field is omitted if the caller has readpermissions only. | ||||||||||||||||||
root/cs_category/ownerid | description | This field is omitted if the caller has readpermissions only. | ||||||||||||||||||
root/cs_category/owner | description | This field is omitted if the caller has readpermissions only. | ||||||||||||||||||
root/cs_category/presentationtemplateid | Defines the default presentation template to use. | This value is relevant for EPT documents categories only. | ||||||||||||||||||
root/cs_category/defaultformid | A template document that acts as the template for HTML document in the category. | This value is zero if no template is used. | ||||||||||||||||||
root/cs_category/ispresentationtemplate | A value that indicates whether the category contains presentation templates. Only presentation template categories can have this value set. | |||||||||||||||||||
root/cs_category/isedittemplate | A value that indicates whether the category contains editing templates. Only editing template categories can have this value set. | |||||||||||||||||||
root/cs_category/userpermission | An access mask flag value that defines the caller's permission. | |||||||||||||||||||
root/cs_category/parentcategoryid | The id of the parent category. | This value is equal to the categoryid field value for root categories. | ||||||||||||||||||
root/cs_category/mlcstatus | A flag value that indicate the MLC status of the category |
This value can be either zero which indicates that the category is no an MLC member or a combination of the following flags values.
| ||||||||||||||||||
root/cs_category/fullpath | The relative url path of the category | |||||||||||||||||||
root/cs_category/description | A brief optional description of the category | |||||||||||||||||||
root/cs_category/documentcounter | Indicates an incremental counter of documents in the category. | This value does not reflect the number of documents in the category - it should be seen as a value that indicates how many documents that have ever been created in the category. | ||||||||||||||||||
root/cs_category/isenabledforpdf | A value that indicates whether the category is enabled for use with the PDF server | |||||||||||||||||||
root/cs_category/guoid | The global unique identifier of this category. | This mainly value is used for the advanced copying functionality. | ||||||||||||||||||
root/cs_category/serversidevalidation | A value that indicates whether the an EPT document should validate the content of its field before saving. | This value is relevant for EPT documents categories only. | ||||||||||||||||||
root/cs_category/usemetasecurity | A value that indicates whether the category uses meta security | This value is relevant for EPT documents categories only. | ||||||||||||||||||
root/cs_category/customviewurl | A URL to a document that will be displayed instead of the regular document list in the administrative interface. | This value must be a valid source for the web browser. | ||||||||||||||||||
root/cs_category/allowedfiletypes | A comma delimited list of file extensions that can be used for document filenames in this category. | An empty string denies all file types, .* allows any file type. | ||||||||||||||||||
root/cs_category/maxcontentsize | A value that indicates the maximum allowed size (in bytes) of the content to save. | Zero means that Content Studio does not check the size of the content saved. | ||||||||||||||||||
root/cs_category/documentfilenamingconvention | A value that dictates how document filenames are determined. | This field is new in CS 5.2 and can have one of the following integer values.
| ||||||||||||||||||
root/cs_category/categoryid | A value that indicates the identifier of the category. | This field is new in CS 5.2. |
Exceptions
Exception | Condition |
---|---|
SqlException | An error occurred when executing the command against the Content Studio database |
CSInvalidSessionException | The session is invalid. |
Content Studio permissions
See Also