public class EntryPointResource extends StringConditionResource
Although the user will usually specify the entry point names as legacy 4GL procedure names,
any such name will be converted to the corresponding Java converted class name before any
resource checking will occur. This means that resource names MUST be specified as the Java
class name in dot-separated package name format. For a legacy 4GL name of
some-converted-program-name.p
that exists in the "pkgroot" of the project, this
is the correct form:
com.goldencode.testcases.SomeConvertedProgramName
It is valid to implement inexact (regex) matches as well. This would allow all possible matches:
.*
objectPointer, resourceIndex, sm
Constructor and Description |
---|
EntryPointResource()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Rights |
getRightsInstance(java.lang.Object[] rights)
Instantiates a plugin's class that implements the
Rights interface, using
the array of objects representing a set of access rights fields. |
java.lang.String |
getTypeName()
Returns the plugin resource type name as a string.
|
boolean |
isInstanceNameValid(java.lang.String resource)
Checks whether a given string is a valid resource name for this resource type.
|
describeRights, isAllowed, isRightsSetValid
associate, attach, disassociate, getEnclosingScope, getLibrary, getLink, getPermissions, init, refresh, registeredAs, toString
public java.lang.String getTypeName()
getTypeName
in interface Resource
getTypeName
in class StringConditionResource
public Rights getRightsInstance(java.lang.Object[] rights)
Rights
interface, using
the array of objects representing a set of access rights fields.getRightsInstance
in interface Resource
getRightsInstance
in class StringConditionResource
rights
- The objects needed to create an access rights instance.public boolean isInstanceNameValid(java.lang.String resource)
isInstanceNameValid
in interface Resource
isInstanceNameValid
in class StringConditionResource
resource
- A string naming a resource.true
if the name is syntactically correct.