![]() |
Micro Focus Content Manager SDK 10.0
|
The TrimAccessControlList class is used to encapsulate the access controls that can be applied to an object an access control list consists of an array of entries that control who has access to a particular restricted function. These restricted functions may differ depending upon which object the access control list applies to, for example a meeting object may wish to restrict who can 'Take Minutes'. Each object that support access control lists will have an enum describing its set of restricted functions - in this class, the elements of this enum are simple defined as an int. More...
Public Member Functions | |
bool | GetAccessAllowed (int forFunction) |
Returns a Boolean value indicating whether the currently logged in user is provided access to the specified function. More... | |
bool | get_AccessAllowed (int forFunction) |
bool | GetAccessAllowedForUser (int toFunction, Location forAccessLocation) |
Returns a Boolean value indicating whether the given user is provided access to the specified function. More... | |
string | GetAsString (int forFunction) |
Gets a string containing a description of the nominated access control for this object. The string consists of a list of location names for this Access Control, delimited by semicolons. More... | |
string | get_AsString (int forFunction) |
LocationList | get_AccessLocations (int forFunction) |
Gets or sets the list of locations that should be given access to the specified function. When updating the list, if the new list is empty or null, access to that function will revert to 'Everyone' or 'Public', otherwise the current user list will be replaced. More... | |
void | set_AccessLocations (int forFunction, LocationList replaceWith) |
LocationList | GetAccessLocations (int forFunction) |
void | SetAccessLocations (int forFunction, LocationList replaceWith) |
void | SetAccessLocationsOrContainer (int forFunction, LocationList replaceWith) |
A special function that will set access to the specified function to the nominated set of locations, however will also include any locations in the corresponding access control of the container to be included. More... | |
void | SetPrivate (int forFunction, Location toLocation) |
Sets the access control for the nominated function to be a single location. More... | |
void | SetPrivateOrContainer (int forFunction, Location toLocation) |
A special function that will set access to the specified function to the nominated location, however will also include any locations in the corresponding access control of the container to be included. More... | |
void | SetInherited (int forFunction) |
Sets the access control for the nominated function to be inherited from the record's container More... | |
void | SetPublic (int forFunction) |
Sets the access control for the nominated function to be public More... | |
AccessControlSettings | get_CurrentSetting (int forFunction) |
Gets or sets an AccessControlSettings enum value indicating whether the Access Control is Inherited, Private (Custom) or Public. Note that the Inherited value only applied to record, indicating that the record's access control is based on the record's container. If you change this value to 'Private', it will be made private to the currently logged in user More... | |
void | set_CurrentSetting (int forFunction, AccessControlSettings newValue) |
AccessControlSettings | GetCurrentAccessControlSettings (int forFunction) |
void | SetCurrentAccessControlSettings (int forFunction, AccessControlSettings newValue) |
AccessReferenceStyle | get_ReferenceStyle (int forFunction) |
Gets or sets an AccessReferenceStyle enum value indicating how this access control list is is to be applied to the target object which it will be copied to. Reference style only applies to access controls that are to be copied, i.e. the default record access control that is defined for a record type. Check the IsCopied property to see if this is applicable. More... | |
void | set_ReferenceStyle (int forFunction, AccessReferenceStyle newValue) |
AccessReferenceStyle | GetReferenceStyle (int forFunction) |
void | SetReferenceStyle (int forFunction, AccessReferenceStyle newValue) |
void | SetAllInherited () |
Allows you to set all the access controls to be based on the record's container More... | |
void | SetAllPrivate (LocationList toLocations) |
Allows you to set all the access controls to the nominated list of locations More... | |
void | SetAllPrivate (Location toLocation) |
Allows you to set all the access controls to the nominated single location More... | |
void | SetAllPrivate () |
Allows you to set all the access controls to the current user More... | |
void | SetAllPublic () |
Allows you to set all the access controls to the 'Public'/'Everyone' same setting. More... | |
Properties | |
AllEnumerations | FunctionEnum [get] |
Gets the enumeration which lists the functions that are applicable for this access control list. More... | |
bool | IsCopied [get] |
Gets a boolean value indicating if this access control list is one that is a copy default list. More... | |
bool | IsModified [get] |
Gets a boolean parameter indicating if any changes have been made to this access control list since it was first constructed. More... | |
The TrimAccessControlList class is used to encapsulate the access controls that can be applied to an object an access control list consists of an array of entries that control who has access to a particular restricted function. These restricted functions may differ depending upon which object the access control list applies to, for example a meeting object may wish to restrict who can 'Take Minutes'. Each object that support access control lists will have an enum describing its set of restricted functions - in this class, the elements of this enum are simple defined as an int.
bool TRIM.SDK.TrimAccessControlList.get_AccessAllowed | ( | int | forFunction | ) |
LocationList TRIM.SDK.TrimAccessControlList.get_AccessLocations | ( | int | forFunction | ) |
Gets or sets the list of locations that should be given access to the specified function. When updating the list, if the new list is empty or null, access to that function will revert to 'Everyone' or 'Public', otherwise the current user list will be replaced.
string TRIM.SDK.TrimAccessControlList.get_AsString | ( | int | forFunction | ) |
AccessControlSettings TRIM.SDK.TrimAccessControlList.get_CurrentSetting | ( | int | forFunction | ) |
Gets or sets an AccessControlSettings enum value indicating whether the Access Control is Inherited, Private (Custom) or Public. Note that the Inherited value only applied to record, indicating that the record's access control is based on the record's container. If you change this value to 'Private', it will be made private to the currently logged in user
AccessReferenceStyle TRIM.SDK.TrimAccessControlList.get_ReferenceStyle | ( | int | forFunction | ) |
Gets or sets an AccessReferenceStyle enum value indicating how this access control list is is to be applied to the target object which it will be copied to. Reference style only applies to access controls that are to be copied, i.e. the default record access control that is defined for a record type. Check the IsCopied property to see if this is applicable.
bool TRIM.SDK.TrimAccessControlList.GetAccessAllowed | ( | int | forFunction | ) |
Returns a Boolean value indicating whether the currently logged in user is provided access to the specified function.
bool TRIM.SDK.TrimAccessControlList.GetAccessAllowedForUser | ( | int | toFunction, |
Location | forAccessLocation | ||
) |
Returns a Boolean value indicating whether the given user is provided access to the specified function.
LocationList TRIM.SDK.TrimAccessControlList.GetAccessLocations | ( | int | forFunction | ) |
string TRIM.SDK.TrimAccessControlList.GetAsString | ( | int | forFunction | ) |
Gets a string containing a description of the nominated access control for this object. The string consists of a list of location names for this Access Control, delimited by semicolons.
AccessControlSettings TRIM.SDK.TrimAccessControlList.GetCurrentAccessControlSettings | ( | int | forFunction | ) |
AccessReferenceStyle TRIM.SDK.TrimAccessControlList.GetReferenceStyle | ( | int | forFunction | ) |
void TRIM.SDK.TrimAccessControlList.set_AccessLocations | ( | int | forFunction, |
LocationList | replaceWith | ||
) |
void TRIM.SDK.TrimAccessControlList.set_CurrentSetting | ( | int | forFunction, |
AccessControlSettings | newValue | ||
) |
void TRIM.SDK.TrimAccessControlList.set_ReferenceStyle | ( | int | forFunction, |
AccessReferenceStyle | newValue | ||
) |
void TRIM.SDK.TrimAccessControlList.SetAccessLocations | ( | int | forFunction, |
LocationList | replaceWith | ||
) |
void TRIM.SDK.TrimAccessControlList.SetAccessLocationsOrContainer | ( | int | forFunction, |
LocationList | replaceWith | ||
) |
A special function that will set access to the specified function to the nominated set of locations, however will also include any locations in the corresponding access control of the container to be included.
void TRIM.SDK.TrimAccessControlList.SetAllInherited | ( | ) |
Allows you to set all the access controls to be based on the record's container
void TRIM.SDK.TrimAccessControlList.SetAllPrivate | ( | ) |
Allows you to set all the access controls to the current user
void TRIM.SDK.TrimAccessControlList.SetAllPrivate | ( | Location | toLocation | ) |
Allows you to set all the access controls to the nominated single location
void TRIM.SDK.TrimAccessControlList.SetAllPrivate | ( | LocationList | toLocations | ) |
Allows you to set all the access controls to the nominated list of locations
void TRIM.SDK.TrimAccessControlList.SetAllPublic | ( | ) |
Allows you to set all the access controls to the 'Public'/'Everyone' same setting.
void TRIM.SDK.TrimAccessControlList.SetCurrentAccessControlSettings | ( | int | forFunction, |
AccessControlSettings | newValue | ||
) |
void TRIM.SDK.TrimAccessControlList.SetInherited | ( | int | forFunction | ) |
Sets the access control for the nominated function to be inherited from the record's container
void TRIM.SDK.TrimAccessControlList.SetPrivate | ( | int | forFunction, |
Location | toLocation | ||
) |
Sets the access control for the nominated function to be a single location.
void TRIM.SDK.TrimAccessControlList.SetPrivateOrContainer | ( | int | forFunction, |
Location | toLocation | ||
) |
A special function that will set access to the specified function to the nominated location, however will also include any locations in the corresponding access control of the container to be included.
void TRIM.SDK.TrimAccessControlList.SetPublic | ( | int | forFunction | ) |
Sets the access control for the nominated function to be public
void TRIM.SDK.TrimAccessControlList.SetReferenceStyle | ( | int | forFunction, |
AccessReferenceStyle | newValue | ||
) |
|
get |
Gets the enumeration which lists the functions that are applicable for this access control list.
|
get |
Gets a boolean value indicating if this access control list is one that is a copy default list.
|
get |
Gets a boolean parameter indicating if any changes have been made to this access control list since it was first constructed.