Class VCApplicationUserProfile
java.lang.Object
de.uplanet.lucy.server.auxiliaries.util.VCApplicationUserProfile
- All Implemented Interfaces:
de.uplanet.lucy.server.scripting.velocity.ICallableWithVelocityContext
@VelocityVariable("AppUserProfile")
@VelocityCallable("instance")
public final class VCApplicationUserProfile
extends Object
implements de.uplanet.lucy.server.scripting.velocity.ICallableWithVelocityContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloneWithNewContext(org.apache.velocity.context.Context p_vc) voiddeleteProfileValue(String p_key) Removes the application user profile entry of the current application.voiddeleteProfileValue(String p_appGuid, String p_key) Removes the application user profile entry.getProfileValue(String p_key) Gets a application user profile entry of the current application.getProfileValue(String p_appGuid, String p_key) Gets a application user profile entry.booleanhasProfileValue(String p_key) Checks the existing of an application user profile entry in the current application.booleanhasProfileValue(String p_appGuid, String p_key) Checks the existing of an application user profile entry.voidsetProfileValue(String p_key, String p_value) Set a application user profile entry of the current application.voidsetProfileValue(String p_appGuid, String p_key, String p_value) Set a application user profile entry.
-
Constructor Details
-
VCApplicationUserProfile
public VCApplicationUserProfile(de.uplanet.lucy.server.binding.IBinding p_binding)
-
-
Method Details
-
cloneWithNewContext
- Specified by:
cloneWithNewContextin interfacede.uplanet.lucy.server.scripting.velocity.ICallableWithVelocityContext
-
hasProfileValue
Checks the existing of an application user profile entry in the current application.- Parameters:
p_key- The profile key- Returns:
trueif an not empty user profile value with the key exits otherwisefalse
-
hasProfileValue
Checks the existing of an application user profile entry.- Parameters:
p_appGuid- The application GUIDp_key- The profile key- Returns:
trueif an not empty user profile value with the key exits otherwisefalse
-
getProfileValue
Gets a application user profile entry of the current application.- Parameters:
p_key- The profile key- Returns:
- The stored user profile value with the given key or
nullif not exists
-
getProfileValue
Gets a application user profile entry.- Parameters:
p_appGuid- The application GUIDp_key- The profile key- Returns:
- The stored user profile value with the given key or
nullif not exists
-
setProfileValue
Set a application user profile entry of the current application.- Parameters:
p_key- The profile keyp_value- The value to set. ifnullor empty the profile entry will be removed.
-
setProfileValue
Set a application user profile entry.- Parameters:
p_appGuid- The application GUIDp_key- The profile keyp_value- The value to set. ifnullor empty the profile entry will be removed.
-
deleteProfileValue
Removes the application user profile entry of the current application.- Parameters:
p_key- The profile key
-
deleteProfileValue
Removes the application user profile entry.- Parameters:
p_appGuid- The application GUIDp_key- The profile key
-