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
-
Method Summary
Modifier and TypeMethodDescriptioncloneWithNewContext
(org.apache.velocity.context.Context p_vc) void
deleteProfileValue
(String p_key) Removes the application user profile entry of the current application.void
deleteProfileValue
(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.boolean
hasProfileValue
(String p_key) Checks the existing of an application user profile entry in the current application.boolean
hasProfileValue
(String p_appGuid, String p_key) Checks the existing of an application user profile entry.void
setProfileValue
(String p_key, String p_value) Set a application user profile entry of the current application.void
setProfileValue
(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:
cloneWithNewContext
in 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:
true
if 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:
true
if 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
null
if 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
null
if not exists
-
setProfileValue
Set a application user profile entry of the current application.- Parameters:
p_key
- The profile keyp_value
- The value to set. ifnull
or 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. ifnull
or 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
-