...
A login is required to participate in the forum. Don't be shy - create your account today!
Announcing the SmartFramework ERD Designer
...
SCL-2360 Support for Enum properties of parameter objects passed by the RestEntitiesWebHandler to the invoked methods
Description:
Implemented support for assigning Enum properties of parameter instances passed to methods of Business Entities and Business Tasks. Before this change only properties of primitive types have been supported. Now it is supported to map character values to Enum type properties (Progress.Lang.Enum or Consultingwerk.Enum) in the parameter object.
SCL-2367 Defined RESTful URL's for Authorization related Business Entities
Description:
Added annotations for the following RESTful URL's of the Authorization related Business Entities.
/web/Entities/SmartFramework/Users
/web/Entities/SmartFramework/Groups
/web/Entities/SmartFramework/LoginCompanies
/web/Entities/SmartFramework/SecurityRealms
/web/Entities/SmartFramework/SecurityAssignments
/web/Entities/SmartFramework/SecurityTokens
/web/Entities/SmartFramework/FieldSecurityItems
See https://documentation.consultingwerkcloud.com/display/SCL/RESTful+services for a documentation of our RESTful end points for Business Entities.
SCL-2368 Implemented Method in SecurityAssignmentBusinessEntity to return distinct SecurityItemGuids for a security realm
Description:
We have implemented a new method in the SecurityAssignmentBusinessEntity. This method returns the list of distinct assigned security items for a security realm. This list contains every security item in a Dataset one, which is assigned to any user.
Code Block | ||
---|---|---|
| ||
@InvokeMethod (parameterClassName="Consultingwerk.CharacterHolder", datasetInput="false", datasetOutput="true") . @RestMethod (address="/SmartFramework/SecurityAssignments/GetDistinctSecurityItems/~{Value}", requestMethod="get", parameterClassName="Consultingwerk.CharacterHolder", response="dsSecurityItemKeys"). METHOD PUBLIC VOID GetDistinctSecurityItems (INPUT-OUTPUT DATASET dsSecurityItemKeys, poSecurityRealm AS CharacterHolder): |
This method allows developers to implement custom authorization assignment maintenance functions. The method is also accessible as a RESTful endpoint, e.g.
/web/Entities/SmartFramework/SecurityAssignments/GetDistinctSecurityItems/SST
for the distinct security item id's assigned in the Smart Security Token Realm (SST).
SCL-2370 Implemented new XmlHelper method to locate a child node recursively by it's name
Description:
Added new method which locales the first child now with the given name recursively:
Code Block | ||
---|---|---|
| ||
/** * Purpose: Recursively locates a Node with the given name * Notes: The caller is responsible for cleaning of the returned x-noderef * @param phParentNode The x-noderef of the parent node * @param pcNodeName The name of the element * @return The x-noderef representing the located node or ? */ METHOD PUBLIC STATIC HANDLE ChildNodeByName (phParentNode AS HANDLE, pcNodeName AS CHARACTER): |
...
SCL-2371 Implemented an XmlHelper method that returns a node by a path
Description:
Implemented the new method GetChildNodeByPath
Code Block | ||
---|---|---|
| ||
/** * Purpose: Returns the child node by a path * Notes: Performs an XPath-Like selection of an XML Node. Nodes are referenced * by the name or attributes or position in a set, e.g.: * /lm:eCafModel/lm:serviceCollection/lm:details * /lm:eCafModel/lm:serviceCollection/lm:details/lm:adapterDetails/lm:properties[2] * /lm:eCafModel/lm:serviceCollection/lm:services/lm:details/lm:adapterDetails/lm:properties[2] * /lm:eCafModel/lm:serviceCollection/lm:services/lm:details/lm:adapterDetails/lm:properties/[2] * /lm:eCafModel/lm:serviceCollection/lm:services[@displayName="api" and @id="api"][1] * @param phNode The x-noderef or x-document * @param pcPath The node path * @return The X-NODEREF referencing the selected node */ METHOD PUBLIC STATIC HANDLE GetChildNodeByPath (phNode AS HANDLE, pcPath AS CHARACTER): |
The method supports node paths in a simplified XPath syntax like these samples:
No Format |
---|
/lm:eCafModel/lm:serviceCollection/lm:details |
Follows the node path returning the first nodes with the given name either from the document root or the provided parent node
No Format |
---|
/lm:eCafModel/lm:serviceCollection/lm:services/lm:details/lm:adapterDetails/lm:properties[2] /lm:eCafModel/lm:serviceCollection/lm:services/lm:details/lm:adapterDetails/lm:properties/[2] |
Returns the 2nd child node of the lm:properties node. The use of a slash between the _lm:properties and the index 2 is optional.
No Format |
---|
/lm:eCafModel/lm:serviceCollection/lm:services[@displayName="api" and @id="api"][1] |
Returns the 1st child node of the lm:services node. Seeks for the lm:services node with the attribute values displayName "api" and id "api". Multiple attributes can be searched. Currently and is the only supported boolean operator.