DOCUMENTS 5 - PortalScripting API
|
The Folder class has been added to the DOCUMENTS PortalScripting API to gain full access to the DOCUMENTS folders by scripting means. More...
Public Member Functions | |
boolean | addAccessProfile (String accessProfileName, boolean allowInsertFiles, boolean allowRemoveFiles) |
Add a folder access right for the user group defined by an access profile to the folder. More... | |
boolean | addFile (DocFile docFile) |
Store a reference to a desired DocFile object in the current Folder. More... | |
boolean | addFilterEDAServer (String serverName) |
Add an EDA server to the filter of the folder. More... | |
boolean | addFilterEEiArchive (String archiveKey) |
Add an EE.i archive to the filter of the folder. More... | |
boolean | addFilterEExView (String viewKey) |
Add an EE.x view to the filter of the folder. More... | |
boolean | addFilterFileType (String fileType) |
Add a file type to the filter of the folder. More... | |
boolean | addSystemUser (String loginName, boolean allowInsertFiles, boolean allowRemoveFiles) |
Add a folder access right for a system user to the folder. More... | |
boolean | addToOutbar (String outbarName) |
Add the folder to an outbar. More... | |
Folder | copyFolder (boolean includeSubFolders, boolean copyRights, boolean copyActions) |
The current Folder object is duplicated to create a new Folder object. More... | |
Folder | createSubFolder (String name, String type) |
Create a new subfolder of the specified folder type. More... | |
boolean | deleteFolder () |
Delete the folder in DOCUMENTS. More... | |
UserAction | getActionByName (String actionName) |
Retrieve a user-defined action of the Folder. More... | |
String | getAttribute (String attribute) |
Get the String value of an attribute of the Folder. More... | |
FileResultset | getFiles () |
Retrieve a FileResultset of all the DocFile objects stored in the Folder. More... | |
Array | getFilterFileTypes () |
Retrieve the filter file types of the folder. More... | |
HitResultset | getHitResultset () |
Create a HitResultset, which summarizes all DocFiles in the folder. More... | |
String | getLastError () |
Function to get the description of the last error that occurred. More... | |
String | getLocaleLabel (String locale) |
Get the ergonomic label of the Folder. More... | |
String | getOID (boolean oidLow=false) |
Returns the object-id. More... | |
int | getPosition (Folder subFolder) |
Retrieve the position of a subfolder within the subfolder list. More... | |
FolderIterator | getSubFolders () |
Retrieve a FolderIterator containing all Folder objects which represent subfolders of the given Folder. More... | |
boolean | hasFiles () |
Retrieve information whether the Folder is empty or not. More... | |
boolean | removeAccessProfile (String accessProfileName) |
Remove all folder access rights of the user group defined by an access profile from the folder. More... | |
boolean | removeFile (DocFile docFile) |
Remove the reference to a desired DocFile object out of the current Folder. More... | |
boolean | removeFilterEDAServer (String serverName) |
Remove an EDA server from the filter of the folder. More... | |
boolean | removeFilterEEiArchive (String archiveKey) |
Remove an EE.i archive from the filter of the folder. More... | |
boolean | removeFilterEExView (String viewKey) |
Remove an EE.x view from the filter of the folder. More... | |
boolean | removeFilterFileType (String fileType) |
Remove a file type from the filter of the folder. More... | |
boolean | removeFromOutbar (String outbarName) |
Remove the folder from an outbar. More... | |
boolean | removeSystemUser (String loginName) |
Remove all folder access rights of a system user from the folder. More... | |
boolean | setAllowedActionScript (String scriptName) |
Set the script containing the allowed user-defined actions. More... | |
boolean | setAttribute (String attribute, String value) |
Set the String value of an attribute of the Folder to the desired value. More... | |
boolean | setParentFolder (Folder parentFolder) |
Set the parent folder of the current folder. More... | |
boolean | setPosition (Folder subFolder, int position) |
Place a subfolder at the given position in the subfolder list. More... | |
Public Attributes | |
boolean | allowArchive |
This property specifies whether the action 'Archive' is available for the folder. More... | |
boolean | allowCopyTo |
This property specifies whether the action 'Copy to' is available for the folder. More... | |
boolean | allowCreatePDF |
This property specifies whether the action 'PDF creation (Print)' is available for the folder. More... | |
boolean | allowDelete |
This property specifies whether the action 'Delete' is available for the folder. More... | |
boolean | allowExport |
This property specifies whether the action 'Export' is available for the folder. More... | |
boolean | allowForward |
This property specifies whether the action 'Forward' is available for the folder. More... | |
boolean | allowMoveTo |
This property specifies whether the action 'Store in' is available for the folder. More... | |
String | comparator1 |
The comparator for the first filter of the Folder object. More... | |
String | comparator2 |
The comparator for the second filter of the Folder object. More... | |
String | comparator3 |
The comparator for the third filter of the Folder object. More... | |
String | filterExpression |
The expression of the filter of the folder. More... | |
String | filterfieldname1 |
The field to use for the first filter of the Folder object. More... | |
String | filterfieldname2 |
The field to use for the second filter of the Folder object. More... | |
String | filterfieldname3 |
The field to use for the third filter of the Folder object. More... | |
String | filterStyle |
The filter style of the folder. More... | |
String | icon |
The icon to use in the folder tree. More... | |
String | id |
The internal id of the Folder object. More... | |
boolean | invisible |
This property specifies whether the folder is invisible to the users. More... | |
String | label |
The entire label defined for the Folder object. More... | |
String | name |
The technical name of the Folder object. More... | |
boolean | released |
This property specifies whether the folder is available to the users. More... | |
String | sortColumn |
The column used to sort the entries in the folder. More... | |
boolean | sortDescending |
This property specifies the sort order of the entries in the folder. More... | |
String | sortFieldName |
The technical name of the custom field used to sort the entries in the folder. More... | |
SystemUser | systemUser |
Returns the owner of a private folder. More... | |
String | type |
The type of the Folder object. More... | |
String | value1 |
The desired field value to use for the first filter of the Folder object. More... | |
String | value2 |
The desired field value to use for the second filter of the Folder object. More... | |
String | value3 |
The desired field value to use for the third filter of the Folder object. More... | |
The Folder class has been added to the DOCUMENTS PortalScripting API to gain full access to the DOCUMENTS folders by scripting means.
boolean Folder::addAccessProfile | ( | String | accessProfileName, |
boolean | allowInsertFiles, | ||
boolean | allowRemoveFiles | ||
) |
Add a folder access right for the user group defined by an access profile to the folder.
accessProfileName | The technical name of the access profile. |
allowInsertFiles | Flag indicating whether inserting files into the folder is allowed. |
allowRemoveFiles | Flag indicating whether removing files from the folder is allowed. |
true
if successful, false
in case of any error. boolean Folder::addFile | ( | DocFile | docFile | ) |
Store a reference to a desired DocFile object in the current Folder.
true
if successful, false
in case of any error boolean Folder::addFilterEDAServer | ( | String | serverName | ) |
Add an EDA server to the filter of the folder.
serverName | The technical name of the desired EDA server. |
true
if successful, false
in case of any error. boolean Folder::addFilterEEiArchive | ( | String | archiveKey | ) |
Add an EE.i archive to the filter of the folder.
archiveKey | The key of the desired EE.i archive. |
true
if successful, false
in case of any error. boolean Folder::addFilterEExView | ( | String | viewKey | ) |
Add an EE.x view to the filter of the folder.
viewKey | The key of the desired EE.x view. |
true
if successful, false
in case of any error. boolean Folder::addFilterFileType | ( | String | fileType | ) |
Add a file type to the filter of the folder.
fileType | The technical name of the desired file type. |
true
if successful, false
in case of any error. boolean Folder::addSystemUser | ( | String | loginName, |
boolean | allowInsertFiles, | ||
boolean | allowRemoveFiles | ||
) |
Add a folder access right for a system user to the folder.
loginName | The login name of the system user. |
allowInsertFiles | Flag indicating whether inserting files into the folder is allowed. |
allowRemoveFiles | Flag indicating whether removing files from the folder is allowed. |
true
if successful, false
in case of any error. boolean Folder::addToOutbar | ( | String | outbarName | ) |
Add the folder to an outbar.
outbarName | The technical name of the outbar. |
true
if successful, false
in case of any error. Folder Folder::copyFolder | ( | boolean | includeSubFolders, |
boolean | copyRights, | ||
boolean | copyActions | ||
) |
The current Folder object is duplicated to create a new Folder object.
The new Folder object is placed at the same hierarchical stage as the Folder used as its source object. After the duplication of the Folder you can change all its public attributes, e.g. to modify the filter definition of a dynamic public folder.
includeSubFolders | boolean whether to duplicate any subfolders contained in the source folder as well |
copyRights | boolean whether to assign the same access privileges as those assigned to the source Folder |
copyActions | boolean whether to duplicate any userdefined actions attached to the source folder as well |
Folder Folder::createSubFolder | ( | String | name, |
String | type | ||
) |
Create a new subfolder of the specified folder type.
public
dynamicpublic
onlysubfolder
name | The technical name of the subfolder to be created. |
type | The desired type of the subfolder. |
null
if failed. boolean Folder::deleteFolder | ( | ) |
Delete the folder in DOCUMENTS.
true
if successful, false
in case of any error. UserAction Folder::getActionByName | ( | String | actionName | ) |
Retrieve a user-defined action of the Folder.
actionName | String value containing the desired action name. |
String Folder::getAttribute | ( | String | attribute | ) |
Get the String value of an attribute of the Folder.
attribute | String containing the name of the desired attribute |
FileResultset Folder::getFiles | ( | ) |
Retrieve a FileResultset of all the DocFile objects stored in the Folder.
Array Folder::getFilterFileTypes | ( | ) |
Retrieve the filter file types of the folder.
HitResultset Folder::getHitResultset | ( | ) |
Create a HitResultset, which summarizes all DocFiles in the folder.
This function executes an empty (=unfiltered) search in the folder. It creates a HitResultset, which summarizes all the Folder's files. The Resultset contains the same columns as the folder's default web view.
HitResultset.getLastErrorCode()
or HitResultset.getLastError()
on the returned object. String Folder::getLastError | ( | ) |
Function to get the description of the last error that occurred.
String Folder::getLocaleLabel | ( | String | locale | ) |
Get the ergonomic label of the Folder.
locale | Optional String value with the locale abbreviation (according to the principal's configuration); if omitted, the current user's portal language is used automatically. |
String
containing the ergonomic label of the Folder in the appropriate portal language. String Folder::getOID | ( | boolean | oidLow = false | ) |
Returns the object-id.
oidLow | Optional flag: If true only the id of the Folder object (m_oid ) will be returned. If false the id of the Folder object will be returned together with the id of the corresponding class in the form class-id:m_oid . The default value is false . |
String
with the object-id oidLow
) int Folder::getPosition | ( | Folder | subFolder | ) |
Retrieve the position of a subfolder within the subfolder list.
subFolder | Folder object whose position to be retrieved. |
FolderIterator Folder::getSubFolders | ( | ) |
Retrieve a FolderIterator containing all Folder objects which represent subfolders of the given Folder.
boolean Folder::hasFiles | ( | ) |
boolean Folder::removeAccessProfile | ( | String | accessProfileName | ) |
Remove all folder access rights of the user group defined by an access profile from the folder.
accessProfileName | The technical name of the access profile. |
true
if successful, false
in case of any error. boolean Folder::removeFile | ( | DocFile | docFile | ) |
Remove the reference to a desired DocFile object out of the current Folder.
true
if successful, false
in case of any error boolean Folder::removeFilterEDAServer | ( | String | serverName | ) |
Remove an EDA server from the filter of the folder.
serverName | The technical name of the desired EDA server. |
true
if successful, false
in case of any error. boolean Folder::removeFilterEEiArchive | ( | String | archiveKey | ) |
Remove an EE.i archive from the filter of the folder.
archiveKey | The key of the desired EE.i archive. |
true
if successful, false
in case of any error. boolean Folder::removeFilterEExView | ( | String | viewKey | ) |
Remove an EE.x view from the filter of the folder.
viewKey | The key of the desired EE.x view. |
true
if successful, false
in case of any error. boolean Folder::removeFilterFileType | ( | String | fileType | ) |
Remove a file type from the filter of the folder.
fileType | The technical name of the desired file type. |
true
if successful, false
in case of any error. boolean Folder::removeFromOutbar | ( | String | outbarName | ) |
Remove the folder from an outbar.
outbarName | The technical name of the outbar. |
true
if successful, false
in case of any error. boolean Folder::removeSystemUser | ( | String | loginName | ) |
Remove all folder access rights of a system user from the folder.
loginName | The login name of the system user. |
true
if successful, false
in case of any error. boolean Folder::setAllowedActionScript | ( | String | scriptName | ) |
Set the script containing the allowed user-defined actions.
scriptName | The name of the desired script; use empty string ('') if you want to remove the associated action script. |
true
if successful, false
in case of any error. boolean Folder::setAttribute | ( | String | attribute, |
String | value | ||
) |
Set the String value of an attribute of the Folder to the desired value.
attribute | String containing the name of the desired attribute |
value | String containing the desired value of the attribute |
true
if successful, false
in case of any error boolean Folder::setParentFolder | ( | Folder | parentFolder | ) |
Set the parent folder of the current folder.
parentFolder | optional Folder object being the parent folder of the current folder. If no parent folder is defined, the current folder will be moved to the top level. |
true
if successful, false
in case of any error boolean Folder::setPosition | ( | Folder | subFolder, |
int | position | ||
) |
Place a subfolder at the given position in the subfolder list.
subFolder | Folder object to be placed at the given position. |
position | The 0-based position for the subfolder. |
true
if successful, false
in case of any error. boolean Folder::allowArchive |
This property specifies whether the action 'Archive' is available for the folder.
boolean Folder::allowCopyTo |
This property specifies whether the action 'Copy to' is available for the folder.
boolean Folder::allowCreatePDF |
This property specifies whether the action 'PDF creation (Print)' is available for the folder.
boolean Folder::allowDelete |
This property specifies whether the action 'Delete' is available for the folder.
boolean Folder::allowExport |
This property specifies whether the action 'Export' is available for the folder.
boolean Folder::allowForward |
This property specifies whether the action 'Forward' is available for the folder.
boolean Folder::allowMoveTo |
This property specifies whether the action 'Store in' is available for the folder.
String Folder::comparator1 |
The comparator for the first filter of the Folder object.
=
equal !=
unequal <
smaller than >
greater than ~
contains |~
starts with String Folder::comparator2 |
The comparator for the second filter of the Folder object.
=
equal !=
unequal <
smaller than >
greater than ~
contains |~
starts with String Folder::comparator3 |
The comparator for the third filter of the Folder object.
=
equal !=
unequal <
smaller than >
greater than ~
contains |~
starts with String Folder::filterExpression |
The expression of the filter of the folder.
String Folder::filterfieldname1 |
String Folder::filterfieldname2 |
String Folder::filterfieldname3 |
String Folder::filterStyle |
The filter style of the folder.
There are two filter styles available:
Standard
Extended
String Folder::icon |
The icon to use in the folder tree.
String Folder::id |
boolean Folder::invisible |
This property specifies whether the folder is invisible to the users.
String Folder::label |
String Folder::name |
boolean Folder::released |
This property specifies whether the folder is available to the users.
String Folder::sortColumn |
The column used to sort the entries in the folder.
The following sort columns are available:
Title
LastModifiedAt
LastEditor
CreateAt
Owner
CustomField
boolean Folder::sortDescending |
This property specifies the sort order of the entries in the folder.
String Folder::sortFieldName |
The technical name of the custom field used to sort the entries in the folder.
SystemUser Folder::systemUser |
Returns the owner of a private folder.
null
. String Folder::type |
String Folder::value1 |
String Folder::value2 |