public enum ModelCache extends java.lang.Enum<ModelCache>
ProcessModels.| Enum Constant and Description | 
|---|
| INSTANCESingleton 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,
          java.lang.String elementId,
          ModelProviderClientService modelProviderService)Returns model element in the given module by its module id. | 
| java.lang.String | getHashForProcessModel(com.whitestein.lsps.model.ProcessModel processModel) | 
| java.util.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  nullif the model
 is not stored in the cache. | 
| com.whitestein.lsps.model.ProcessModel | getProcessModelIfCached(java.lang.String moduleHash)Returns the cached process model; returns  nullif the model
 is not stored in the cache. | 
| java.util.Collection<com.whitestein.lsps.model.ProcessModel> | getRegisteredModels() | 
| java.util.Collection<java.lang.Long> | getRegisteredModuleIds() | 
| java.lang.Boolean | isModuleUnloaded(long modelId) | 
| void | registerModule(long moduleId,
              java.lang.String moduleHash,
              boolean isUnloaded,
              com.whitestein.lsps.model.ProcessModel processModel)Registers process model. | 
| boolean | removeModule(long moduleId)Remove process model. | 
| Type | resolveType(java.lang.String type,
           ExecutionContext ctx)Parses given type string representation using resolver for current process. | 
| Type | resolveType(java.lang.String type,
           long modelId,
           ModelProviderClientService modelProviderService)Parses given type string representation using resolver for current process. | 
| static ModelCache | valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic com.whitestein.lsps.model.ProcessModel getProcessModelIfCached(long moduleId)
null if the model
 is not stored in the cache.moduleId - nullpublic com.whitestein.lsps.model.ProcessModel getProcessModelIfCached(java.lang.String moduleHash)
null if the model
 is not stored in the cache.moduleHash - nullpublic com.whitestein.lsps.model.ElementWithId getElement(long moduleId,
                                                          com.whitestein.lsps.model.ElementType elementType,
                                                          java.lang.String elementId,
                                                          ModelProviderClientService modelProviderService)
moduleId - elementType - elementId - modelProviderService - public void registerModule(long moduleId,
                           java.lang.String moduleHash,
                           boolean isUnloaded,
                           com.whitestein.lsps.model.ProcessModel processModel)
moduleId - moduleHash - isUnloaded - processModel - public boolean removeModule(long moduleId)
moduleId - public java.util.Collection<com.whitestein.lsps.model.ProcessModel> getRegisteredModels()
public java.util.Collection<java.lang.Long> getRegisteredModuleIds()
public java.util.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(java.lang.String type, long modelId, ModelProviderClientService modelProviderService) throws ValidationException
type - modelId - modelProviderService - ValidationExceptionpublic Type resolveType(java.lang.String type, ExecutionContext ctx) throws ValidationException
type - ctx - ValidationExceptionpublic java.lang.String getHashForProcessModel(com.whitestein.lsps.model.ProcessModel processModel)
public java.lang.Boolean isModuleUnloaded(long modelId)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.