Interface RuntimeClass
-
- All Superinterfaces:
RuntimeClassComp
- All Known Subinterfaces:
RuntimeObject
public interface RuntimeClass extends RuntimeClassComp
Runtime object type information
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RWIterable<com.redwood.scheduler.api.scripting.ScriptingFunction>getBuiltInFunctions(SchedulerSession aSession)Returns available built in scripting functions, current session has access toRWIterable<com.redwood.scheduler.api.scripting.ScriptingVariable>getContextVariables(String aMemberName)For given member return the variables that can be used for the SchedulerEntity this RuntimeClass representsStringgetDescription()Get the description of the class as it is described in the model.RWIterable<String>getMembers()Obtain all available members for the object-typeRuntimeMemberTypegetMemberType(String name)Obtain the type information for the given member.RuntimeMemberTypegetMemberTypeString(String name)Obtain the String-specific type information for the given member of type String.StringgetObjectType()Returns the object type of this RuntimeClass (name of ObjectDefinition), e.g.RWIterable<com.redwood.scheduler.api.scripting.ScriptingFunction>getRELEntryPoints(SchedulerSession aSession)Return all entry points the current session has access toClass<? extends SchedulerEntity>getRuntimeClass()Return the actual SchedulerEntity class for this RuntimeClass.booleanhasMember(String name)Does the given member exist for the object-type.booleanisAuditable()Returns true if this class (object type) can be audited.booleanisAuditableAtLevel(AuditLevel level)Returns true if this class (object type) can be audited at given level.booleansupportsREL(String aMemberName)Returns true if given member for the SchedulerEntity this RuntimeClass represents suppors rel expressions.
-
-
-
Method Detail
-
hasMember
boolean hasMember(String name)
Does the given member exist for the object-type.- Parameters:
name- The member name- Returns:
- True if the member does exist
-
getMemberType
RuntimeMemberType getMemberType(String name)
Obtain the type information for the given member.- Parameters:
name- The member name- Returns:
- The member type information or null if the member not exist
-
getMemberTypeString
RuntimeMemberType getMemberTypeString(String name)
Obtain the String-specific type information for the given member of type String.- Parameters:
name- The member name- Returns:
- The member type information if it exist or null if the member either does not exist or is not of type String
-
getMembers
RWIterable<String> getMembers()
Obtain all available members for the object-type- Specified by:
getMembersin interfaceRuntimeClassComp- Returns:
- An iterator<String> containing all member names.
-
getRuntimeClass
Class<? extends SchedulerEntity> getRuntimeClass()
Return the actual SchedulerEntity class for this RuntimeClass. For example if this RuntimeClass represents JobDefinition, this will return JobDefinition.class (so the class of JobDefinition)- Returns:
SchedulerEntityclass this RuntimeClass represents
-
getObjectType
String getObjectType()
Returns the object type of this RuntimeClass (name of ObjectDefinition), e.g. JobDefinition.- Returns:
- Object type
-
isAuditable
boolean isAuditable()
Returns true if this class (object type) can be audited.- Returns:
- True if auditable, false otherwise.
-
isAuditableAtLevel
boolean isAuditableAtLevel(AuditLevel level)
Returns true if this class (object type) can be audited at given level.- Parameters:
level- Level of auditing- Returns:
- True if auditable at given level, false otherwise.
-
getDescription
String getDescription()
Get the description of the class as it is described in the model.- Returns:
- the description
-
getContextVariables
RWIterable<com.redwood.scheduler.api.scripting.ScriptingVariable> getContextVariables(String aMemberName)
For given member return the variables that can be used for the SchedulerEntity this RuntimeClass represents- Specified by:
getContextVariablesin interfaceRuntimeClassComp- Parameters:
aMemberName- Variable name- Returns:
- Iterator<
ScriptingVariable> (variables that can be used in a REL expression) or Empty Iterator (if aMember does not support REL).
-
supportsREL
boolean supportsREL(String aMemberName)
Returns true if given member for the SchedulerEntity this RuntimeClass represents suppors rel expressions.- Parameters:
aMemberName-- Returns:
- true if aMember supports REL expressions.
-
getBuiltInFunctions
RWIterable<com.redwood.scheduler.api.scripting.ScriptingFunction> getBuiltInFunctions(SchedulerSession aSession)
Returns available built in scripting functions, current session has access to- Specified by:
getBuiltInFunctionsin interfaceRuntimeClassComp- Parameters:
aSession- Session to use- Returns:
- Iterator<
ScriptingVariable> with built in functions
-
getRELEntryPoints
RWIterable<com.redwood.scheduler.api.scripting.ScriptingFunction> getRELEntryPoints(SchedulerSession aSession)
Return all entry points the current session has access to- Specified by:
getRELEntryPointsin interfaceRuntimeClassComp- Parameters:
aSession- Session to use- Returns:
- Iterator<
ScriptingVariable> with functions taken from the RELEntryPoints that the user can see.
-
-