Retrieve Constant Value by Name

Get constant value using the name (string) of the constant!

Enables two functions:

  • getconstantvaluebyname(constantName)
  • getconstantvaluebynameandversion(constantName, versionInt)

Both return the value of the constant for the latest version or the version indicated (any type) for the given constant name.

Anonymous
Parents
  • I've run a test in our environments for a minor update on this plug-in to see if I could get the response down a bit.
    Could you please update to use the following changes:

    ContentFilter constantTypeFilter = new ContentFilter(ContentConstants.TYPE_RULE, ContentConstants.SUBTYPE_RULE_CONSTANT)
    Long[] ids = contentSvc.queryIdsByRoot(rulesRootId, "name:" + constantName.trim(), constantTypeFilter)

Comment
  • I've run a test in our environments for a minor update on this plug-in to see if I could get the response down a bit.
    Could you please update to use the following changes:

    ContentFilter constantTypeFilter = new ContentFilter(ContentConstants.TYPE_RULE, ContentConstants.SUBTYPE_RULE_CONSTANT)
    Long[] ids = contentSvc.queryIdsByRoot(rulesRootId, "name:" + constantName.trim(), constantTypeFilter)

Children