public enum ModelCache extends Enum<ModelCache>
ProcessModel
s.Enum Constant and Description |
---|
INSTANCE
Singleton instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canBeReferencedBy(RecordType type,
RecordAssociation association)
Returns true if type is references by the association.
|
boolean |
canBeReferencedBy(RecordType type,
RecordType referencedBy)
Returns true if type is references by the other type.
|
com.whitestein.lsps.model.ElementWithId |
getElement(long moduleId,
com.whitestein.lsps.model.ElementType elementType,
String elementId,
ModelProviderClientService modelProviderService)
Returns model element in the given module by its module id.
|
String |
getHashForProcessModel(com.whitestein.lsps.model.ProcessModel processModel) |
Date |
getLoadDate(long modelId)
Returns load time of the process model to the cache.
|
com.whitestein.lsps.model.ProcessModel |
getProcessModelIfCached(long moduleId)
Returns the cached process model; returns
null if the model
is not stored in the cache. |
com.whitestein.lsps.model.ProcessModel |
getProcessModelIfCached(String moduleHash)
Returns the cached process model; returns
null if the model
is not stored in the cache. |
Collection<com.whitestein.lsps.model.ProcessModel> |
getRegisteredModels() |
Collection<Long> |
getRegisteredModuleIds() |
Boolean |
isModuleUnloaded(long modelId) |
void |
registerModule(long moduleId,
String moduleHash,
boolean isUnloaded,
com.whitestein.lsps.model.ProcessModel processModel)
Registers process model.
|
boolean |
removeModule(long moduleId)
Remove process model.
|
Type |
resolveType(String type,
ExecutionContext ctx)
Parses given type string representation using resolver for current process.
|
Type |
resolveType(String type,
long modelId,
ModelProviderClientService modelProviderService)
Parses given type string representation using resolver for current process.
|
static ModelCache |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModelCache[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModelCache INSTANCE
public static ModelCache[] values()
for (ModelCache c : ModelCache.values()) System.out.println(c);
public static ModelCache valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic com.whitestein.lsps.model.ProcessModel getProcessModelIfCached(long moduleId)
null
if the model
is not stored in the cache.moduleId
- null
public com.whitestein.lsps.model.ProcessModel getProcessModelIfCached(String moduleHash)
null
if the model
is not stored in the cache.moduleHash
- null
public com.whitestein.lsps.model.ElementWithId getElement(long moduleId, com.whitestein.lsps.model.ElementType elementType, String elementId, ModelProviderClientService modelProviderService)
moduleId
- elementType
- elementId
- modelProviderService
- public void registerModule(long moduleId, String moduleHash, boolean isUnloaded, com.whitestein.lsps.model.ProcessModel processModel)
moduleId
- moduleHash
- isUnloaded
- processModel
- public boolean removeModule(long moduleId)
moduleId
- public Collection<com.whitestein.lsps.model.ProcessModel> getRegisteredModels()
public Collection<Long> getRegisteredModuleIds()
public Date getLoadDate(long modelId)
modelId
- public boolean canBeReferencedBy(RecordType type, RecordAssociation association)
type
- association
- public boolean canBeReferencedBy(RecordType type, RecordType referencedBy)
type
- referencedBy
- public Type resolveType(String type, long modelId, ModelProviderClientService modelProviderService) throws ValidationException
type
- modelId
- modelProviderService
- ValidationException
public Type resolveType(String type, ExecutionContext ctx) throws ValidationException
type
- ctx
- ValidationException
public String getHashForProcessModel(com.whitestein.lsps.model.ProcessModel processModel)
public Boolean isModuleUnloaded(long modelId)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.