DOCUMENTS 5 - PortalScripting API
|
The CustomProperty class provides access to the user properties. More...
Public Member Functions | |
CustomProperty | addSubProperty (String name, String type, String value) |
Creates a new subproperty for the custom property. More... | |
boolean | deleteCustomProperty () |
Deletes the CustomProperty. More... | |
String | getAttribute (String attribute) |
Get the String value of an attribute of the CustomProperty. More... | |
String | getLastError () |
Function to get the description of the last error that occurred. More... | |
CustomPropertyIterator | getSubProperties (String nameFilter="", String typeFilter="") |
Get a CustomPropertyIterator with subproperties of the custom property. More... | |
boolean | setAccessProfile (String nameAccessProfile="") |
Connects a custom property to an AccessProfile. More... | |
boolean | setAttribute (String attribute, String value) |
Set the String value of an attribute of the CustomProperty to the desired value. More... | |
boolean | setFiletype (String nameFiletype="") |
Connects a custom property to a filetype. More... | |
CustomProperty | setOrAddSubProperty (String name, String type, String value) |
Creates a new subproperty or modifies a subproperty according the name and type for the custom property. More... | |
boolean | setSystemUser (String login="") |
Connects a custom property to a SystemUser. More... | |
Public Attributes | |
String | name |
String containing the name of the CustomProperty. | |
String | type |
String containing the type of the CustomProperty. | |
String | value |
String containing the value of the CustomProperty. | |
The CustomProperty class provides access to the user properties.
The class CustomProperty provides a container where used specific data can be stored. E.g it will be used to store the last search masks. You can save project specific data using this class. The scripting classes SystemUser, AccessProfile and Context have the following access methods available:
In the DOCUMENTS-Manager you can find the CustomProperty on the relation-tab properties at the fellow and user account, access profiles and file types. The global custom properties are listed in Documents > Global properties. A global custom property must not belong to a SystemUser, an AccessProfile, a file type and another custom property. All custom properties are located in Documents > All properties.
CustomProperty CustomProperty::addSubProperty | ( | String | name, |
String | type, | ||
String | value | ||
) |
Creates a new subproperty for the custom property.
name | String value defining the name |
type | String value defining the type |
value | String value defining the value |
boolean CustomProperty::deleteCustomProperty | ( | ) |
Deletes the CustomProperty.
true
if successful, false
in case of any error String CustomProperty::getAttribute | ( | String | attribute | ) |
Get the String value of an attribute of the CustomProperty.
Valid attribute names are name
, type
and value
attribute | String containing the name of the desired attribute |
String CustomProperty::getLastError | ( | ) |
Function to get the description of the last error that occurred.
CustomPropertyIterator CustomProperty::getSubProperties | ( | String | nameFilter = "" , |
String | typeFilter = "" |
||
) |
Get a CustomPropertyIterator with subproperties of the custom property.
nameFilter | String value defining an optional filter depending on the name |
typeFilter | String value defining an optional filter depending on the type |
boolean CustomProperty::setAccessProfile | ( | String | nameAccessProfile = "" | ) |
Connects a custom property to an AccessProfile.
An empty profile name disconnects the AccessProfile
nameAccessProfile | Optional String value containing the name of the AccessProfile |
true
if successful, false
in case of any error boolean CustomProperty::setAttribute | ( | String | attribute, |
String | value | ||
) |
Set the String value of an attribute of the CustomProperty to the desired value.
Valid attribute names are name
, type
and 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 CustomProperty::setFiletype | ( | String | nameFiletype = "" | ) |
Connects a custom property to a filetype.
An empty filetype name disconnects the filetype
nameFiletype | Optional String value containing the technical name of the filetype |
true
if successful, false
in case of any error CustomProperty CustomProperty::setOrAddSubProperty | ( | String | name, |
String | type, | ||
String | value | ||
) |
Creates a new subproperty or modifies a subproperty according the name and type for the custom property.
This method creates or modifies a unique subproperty for the custom property. The combination of the name and the type make the subproperty unique for the custom property.
name | String value defining the name |
type | String value defining the type |
value | String value defining the value |
boolean CustomProperty::setSystemUser | ( | String | login = "" | ) |
Connects a custom property to a SystemUser.
An empty login disconnects the SystemUser
login | Optional String value containing the login name of the SystemUser. |
true
if successful, false
in case of any error