com.sap.portal.navigation.flp.pl.persistency

Class PersonalizationKey

java.lang.Object
  extended by com.sap.portal.navigation.flp.pl.persistency.PersonalizationKey

public class PersonalizationKey
extends Object

The key that uniquely defines personalization data for user by 2 possible combinations: "User" & "Device type" combination or "User" & "Application". Depend on the Personalization mode In Application mode - the key will be the container key In Device mode - the key will be the device type


Nested Class Summary
static class PersonalizationKey.PersonalizationMode
          Enumeration for personalization mode - in order to define the mode: Device/ Application
 
Constructor Summary
PersonalizationKey(com.sap.security.api.IUser user, String deviceType)
          This method is a constructor of PersonalizationKey class objects.
PersonalizationKey(com.sap.security.api.IUser user, String personalizationKey, PersonalizationKey.PersonalizationMode mode)
          This method is a constructor of PersonalizationKey class objects.
PersonalizationKey(String userID, String deviceType)
          This method is a constructor of PersonalizationKey class objects.
PersonalizationKey(String userID, String personalizationKey, PersonalizationKey.PersonalizationMode mode)
          This method is a constructor of PersonalizationKey class objects.
 
Method Summary
 String getKeyValue()
          Returns the user and personalization pair.
 PersonalizationKey.PersonalizationMode getMode()
          Returns the personalization mode
 String getPersonalizationKey()
          Returns the personalization key data - device type or application
 com.sap.security.api.IUser getUser()
          Returns the user.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersonalizationKey

public PersonalizationKey(String userID,
                          String deviceType)
                   throws PersonalizationDAOException
This method is a constructor of PersonalizationKey class objects.

Parameters:
userID: - The user id string.
deviceType: - The device type string.
Throws:
PersonalizationDAOException

PersonalizationKey

public PersonalizationKey(com.sap.security.api.IUser user,
                          String deviceType)
This method is a constructor of PersonalizationKey class objects.

Parameters:
user: - The user instance object from IUser type.
deviceType: - The device type string.

PersonalizationKey

public PersonalizationKey(String userID,
                          String personalizationKey,
                          PersonalizationKey.PersonalizationMode mode)
                   throws PersonalizationDAOException
This method is a constructor of PersonalizationKey class objects.

Parameters:
userID: - The user id string.
personalizationKey: - The personalization key: In Application mode - the key will be the container key In Device mode - the key will be the device type
mode: - The personalization mode(device/application)
Throws:
PersonalizationDAOException

PersonalizationKey

public PersonalizationKey(com.sap.security.api.IUser user,
                          String personalizationKey,
                          PersonalizationKey.PersonalizationMode mode)
This method is a constructor of PersonalizationKey class objects.

Parameters:
user: - The user instance object from IUser type.
personalizationKey: - the value of the personalization: In Application mode - the key will be the container key In Device mode - the key will be the device type
mode - - The personalization type(device/application)
Method Detail

getUser

public com.sap.security.api.IUser getUser()
Returns the user.


getPersonalizationKey

public String getPersonalizationKey()
Returns the personalization key data - device type or application


getKeyValue

public String getKeyValue()
Returns the user and personalization pair.


toString

public String toString()
Overrides:
toString in class Object

getMode

public PersonalizationKey.PersonalizationMode getMode()
Returns the personalization mode

Returns:
the mode
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-RUNTIME [sap.com] com.sap.portal.navigation.flp.pl.facade api EP-PIN-NAV-FFP


Copyright 2015 SAP AG Complete Copyright Notice