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 Details

    • VCApplicationUserProfile

      public VCApplicationUserProfile(de.uplanet.lucy.server.binding.IBinding p_binding)
  • Method Details

    • cloneWithNewContext

      public VCApplicationUserProfile cloneWithNewContext(org.apache.velocity.context.Context p_vc)
      Specified by:
      cloneWithNewContext in interface de.uplanet.lucy.server.scripting.velocity.ICallableWithVelocityContext
    • hasProfileValue

      public boolean hasProfileValue(String p_key)
      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 otherwise false
    • hasProfileValue

      public boolean hasProfileValue(String p_appGuid, String p_key)
      Checks the existing of an application user profile entry.
      Parameters:
      p_appGuid - The application GUID
      p_key - The profile key
      Returns:
      true if an not empty user profile value with the key exits otherwise false
    • getProfileValue

      public String getProfileValue(String p_key)
      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

      public String getProfileValue(String p_appGuid, String p_key)
      Gets a application user profile entry.
      Parameters:
      p_appGuid - The application GUID
      p_key - The profile key
      Returns:
      The stored user profile value with the given key or null if not exists
    • setProfileValue

      public void setProfileValue(String p_key, String p_value)
      Set a application user profile entry of the current application.
      Parameters:
      p_key - The profile key
      p_value - The value to set. if null or empty the profile entry will be removed.
    • setProfileValue

      public void setProfileValue(String p_appGuid, String p_key, String p_value)
      Set a application user profile entry.
      Parameters:
      p_appGuid - The application GUID
      p_key - The profile key
      p_value - The value to set. if null or empty the profile entry will be removed.
    • deleteProfileValue

      public void deleteProfileValue(String p_key)
      Removes the application user profile entry of the current application.
      Parameters:
      p_key - The profile key
    • deleteProfileValue

      public void deleteProfileValue(String p_appGuid, String p_key)
      Removes the application user profile entry.
      Parameters:
      p_appGuid - The application GUID
      p_key - The profile key