Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.portal.core.identity.cache
Class CachedUserProfileModuleWrapper

    java.lang.Object
      org.jboss.portal.core.identity.cache.CachedUserProfileModuleWrapper

All Implemented Interfaces:
  UserProfileModule

    public class CachedUserProfileModuleWrapper

extends java.lang.Object
implements UserProfileModule

Version:
  : 0.1 $
Author:
  Boleslaw Dawidowicz

Constructor Summary
`CachedUserProfileModuleWrapper(UserProfileModule userProfileModule, IdentityCacheService identityCacheService)`

Method Summary
`ProfileInfo` | `getProfileInfo()` Return ProfileInfo object that can be used to obtain PropertyInfo on specific property name.
`java.util.Map` | `getProperties(User user)` Returns all properties related to user
`java.lang.Object` | `getProperty(User user, java.lang.String propertyName)` Returns user property
`void` | `setProperty(User user, java.lang.String name, java.lang.Object property)` Sets user property.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CachedUserProfileModuleWrapper

    public CachedUserProfileModuleWrapper(UserProfileModule userProfileModule,
                                          IdentityCacheService identityCacheService)

Method Detail

### getProperty

    public java.lang.Object getProperty(User user,
                                        java.lang.String propertyName)
                                 throws IdentityException,
                                        java.lang.IllegalArgumentException

  Description copied from interface: `UserProfileModule`
  Returns user property

  Specified by:
    `getProperty` in interface `UserProfileModule`
  Returns:
  Throws:
    `IdentityException`
    `java.lang.IllegalArgumentException`

### setProperty

    public void setProperty(User user,
                            java.lang.String name,
                            java.lang.Object property)
                     throws IdentityException,
                            java.lang.IllegalArgumentException

  Description copied from interface: `UserProfileModule`
  Sets user property. If the property value is null the property will be removed.

  Specified by:
    `setProperty` in interface `UserProfileModule`
    `property` - value
  Throws:
    `IdentityException`
    `java.lang.IllegalArgumentException`

### getProperties

    public java.util.Map getProperties(User user)
                                throws IdentityException,
                                       java.lang.IllegalArgumentException

  Description copied from interface: `UserProfileModule`
  Returns all properties related to user

  Specified by:
    `getProperties` in interface `UserProfileModule`
  Returns:
  Throws:
    `IdentityException`
    `java.lang.IllegalArgumentException`

### getProfileInfo

    public ProfileInfo getProfileInfo()
                               throws IdentityException

  Description copied from interface: `UserProfileModule`
  Return ProfileInfo object that can be used to obtain PropertyInfo on specific property name.

  Specified by:
    `getProfileInfo` in interface `UserProfileModule`
  Returns:
  Throws:
    `IdentityException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD