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) static booleanThe feature to support public variants can be switched off.Returns public variants that are defined as public that belong to the user.getAllVariantIds(boolean withParentVariants) static voidinitWithPublicVariants(boolean withPublicVariants) Switch on/off the feature to support public variants.voidmarkVariantIdAsPublic(String variantId) voidremoveVariant(String variantId) voidvoidvoidsaveCurrentVariantAs(String newVariantId) voidsetCurrentVariantId(String currentVariantId) voidsetDefaultVariantId(String defaultVariantId) voidunmarkVariantIdAsPublic(String variantId) voidupdate()
-
Constructor Details
-
UsageVariantManager
-
-
Method Details
-
checkIfWithPublicVariants
public static boolean checkIfWithPublicVariants()The feature to support public variants can be switched off. -
initWithPublicVariants
public static void initWithPublicVariants(boolean withPublicVariants) Switch on/off the feature to support public variants. Default: switched on. -
getCurrentVariantId
-
setCurrentVariantId
-
getDefaultVariantId
-
setDefaultVariantId
-
markVariantIdAsPublic
-
unmarkVariantIdAsPublic
-
resetToDefault
public void resetToDefault() -
getAllVariantIds
-
getAllPublicVariantIds
Returns public variants that are defined as public that belong to the user. -
saveCurrentVariant
public void saveCurrentVariant() -
saveCurrentVariantAs
-
applyCurrentVariant
public void applyCurrentVariant() -
removeVariant
-
activate
public void activate(boolean applyDefaultVariant) -
update
public void update() -
checkIfVariantContainsUserId
-