Interface IPrincipalAttributeProvider

All Superinterfaces:
IComponent, IDirSystemManagementObject, IInitializable
All Known Subinterfaces:
IDirService, IPrincipalAttributeProviderEx

public interface IPrincipalAttributeProvider extends IDirSystemManagementObject
This interface provides external providers to extend a principal's schema by plugging in new attributes for a specific type of principal (user, group or role)
  • Method Details

    • getAttribute

      Object getAttribute(IURI principalURI, String attrName) throws PortalException
      Retrieves an attribute
      Parameters:
      principalURI -
      attrName -
      Throws:
      PortalException
    • setAttribute

      void setAttribute(IURI principalURI, String attrName, Object attrValue) throws PortalException
      Sets a new attribute on this provider
      Parameters:
      principalURI -
      attrName -
      attrValue -
      Throws:
      PortalException
    • getAttributeNames

      List<String> getAttributeNames(int principalType, IURI principalURI) throws PortalException
      The attribute names
      Parameters:
      principalType - either TYPE_USER, TYPE_GROUP or TYPE_ROLE
      principalURI -
      Throws:
      PortalException
    • getAttributeTitles

      List<String> getAttributeTitles(int principalType, IURI principalURI, Locale currentLocale) throws PortalException
      The attribute titles for the current locale
      Parameters:
      principalType - either TYPE_USER, TYPE_GROUP or TYPE_ROLE
      principalURI -
      Throws:
      PortalException
    • getAttributeTitle

      String getAttributeTitle(int principalType, String attributeName, IURI principalURI, Locale currentLocale) throws PortalException
      The attribute title for this attribute name
      Parameters:
      principalType - either TYPE_USER, TYPE_GROUP or TYPE_ROLE
      attributeName -
      principalURI -
      currentLocale -
      Throws:
      PortalException
    • getAttributes

      Map<String,Object> getAttributes(IURI principalURI) throws PortalException
      Retrieve all of the attributes for this principal and this provider
      Parameters:
      principalURI -
      Returns:
      Throws:
      PortalException