Package org.eclnt.ccee.usagevariants
Class UsageVariantManager
java.lang.Object
org.eclnt.ccee.usagevariants.UsageVariantManager
- All Implemented Interfaces:
ICCEEConstants
Object that manages runtime configuration data for an object of instance
Example:
The information is kept by "service type", "service id", "UserId" and "variantId". Service type and service id are passed by the program using the
IExtractApply.Example:
IExtractApply is implemented for a grid, so that runtime
configuration of a user (e.g. sequence of columns) can be configured. The
UsageVariantManager instance manages certain variants of
configuration data, stores the variants in persistent store and applies the
configuration data.The information is kept by "service type", "service id", "UserId" and "variantId". Service type and service id are passed by the program using the
UsageVariantManager, ther user id is picked by interface
UserAccessMgr, the variant id(s) are defined by the user at runtime.-
Field Summary
Fields inherited from interface org.eclnt.ccee.ICCEEConstants
AND, ASC, AVG, BETWEEN, BRC, BRO, COUNT, DEFAULT_CONTEXT, DESC, FUNCTIONRESULT, GREATER, GREATEREQUAL, IN, IS, ISNOT, LIKE, LL_DBG, LL_ERR, LL_INF, LL_WAR, LOWER, LOWEREQUAL, MAX, MIN, NULL, OR, ORDERBY, QPFUNCTION_LOWER, QPFUNCTION_UPPER, SUM -
Constructor Summary
ConstructorsConstructorDescriptionUsageVariantManager(String serviceType, String serviceId, org.eclnt.util.extractapply.IExtractApply service) -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(boolean applyDefaultVariant) voidbooleancheckIfVariantContainsUserId(String variantId) getAllVariantIds(boolean withParentVariants) voidremoveVariant(String variantId) voidvoidvoidsaveCurrentVariantAs(String newVariantId) voidsetCurrentVariantId(String currentVariantId) voidsetDefaultVariantId(String defaultVariantId) voidupdate()
-
Constructor Details
-
UsageVariantManager
-
-
Method Details
-
getCurrentVariantId
-
setCurrentVariantId
-
getDefaultVariantId
-
setDefaultVariantId
-
resetToDefault
public void resetToDefault() -
getAllVariantIds
-
saveCurrentVariant
public void saveCurrentVariant() -
saveCurrentVariantAs
-
applyCurrentVariant
public void applyCurrentVariant() -
removeVariant
-
activate
public void activate(boolean applyDefaultVariant) -
update
public void update() -
checkIfVariantContainsUserId
-