com.ibm.websphere.wim

Interface ProfileService

    • Method Detail

      • create

        DataObject create(DataObject root)
                          throws WIMException,
                                 java.rmi.RemoteException
        Creates the entity under the given root data object. This method is used for creating an entity. Empty root data object can be obtained from createRootDataObject API. The entity needed to be created can be added under the root data object along with the properties.
        The output root data object of the create method contains the created entity data object which contains its identifier.
        Parameters:
        root - The root data object which contains the entity to be created.
        Throws:
        WIMException
        java.rmi.RemoteException
        Return:
        The root data object which contains the created entity and its identifier.
      • get

        DataObject get(DataObject root)
                       throws WIMException,
                              java.rmi.RemoteException
        Returns information of the specified entity or entities. The entity or entities to be retrieved are added under the root data object. Controls can be added under the root data object to specify what kind of information is returned. The entity or entities to be retrieved need to be added under the root data object with the identifiers specified. By specifying different controls, different information can be returned. For example, PropertyControl is used for returning the properties of the entity/entities. GroupMembershipControl is used for returning groups the entity/entities belongs to.
        Parameters:
        root - The root data object containing the request information.
        Throws:
        WIMException
        java.rmi.RemoteException
        Return:
        The root data object containing the requested information.
      • delete

        DataObject delete(DataObject root)
                          throws WIMException,
                                 java.rmi.RemoteException
        Deletes the entity specified in the root data object. Only one entity can be delete at one time.
        Parameters:
        root - The root data object which contains the entity to delete. The identifier of the entity should be specified.
        Throws:
        WIMException
        java.rmi.RemoteException
        Return:
        The root data object containing the deleted entity and its descendants (if there are any), with their identifiers.
      • update

        DataObject update(DataObject root)
                          throws WIMException,
                                 java.rmi.RemoteException
        Updates entity specified in the root data object. There are two ways to update. The caller can create a empty root data object and specify the changes needed. All the changes will replace the existing values. The caller can also call get API method to get the values to be updated, make the changes, then send back to update.
        Parameters:
        root - The root data object containing entity with changes need to update.
        Throws:
        WIMException
        java.rmi.RemoteException
        Return:
        The root data object containing the updated entity with its identifier.
      • search

        DataObject search(DataObject root)
                          throws WIMException,
                                 java.rmi.RemoteException
        Searches the profile repositories for entities matching the given search expression and returns them with the requested properties. The search method is used to search entities. Only the entities which match the search expression will be returned. The following four controls are related to search: SearchControl, PageControl, SortControl, PageResponseControl, and SortResponseControl. The SearchControl contains the property name list which you want to return from the search operation. For example, you want to get uid, cn for all the people whose sn equals to "Doe". The search expression is also included in the SearchControl. If you want to use the paged search function, the PageControl is needed.
        Parameters:
        root - the root data object containing the control(s) related to search.
        Throws:
        WIMException
        java.rmi.RemoteException
        Return:
        the root data object containing the entities matching the search expression.
      • login

        DataObject login(DataObject root)
                         throws WIMException,
                                java.rmi.RemoteException
        Authenticates the LoginAccount data object in the specified root data object. User can be authenticated either using loginId/password or using X509Certificate. The successfully authenticated LoginAccount data object will be returned with requested properties specified in the LoginControl.
        Parameters:
        root - the root data object containing the LoginAccount to authenticate.
        Throws:
        WIMException
        java.rmi.RemoteException
        Return:
        the root data object containing the LoginAccount which is successfully authenticated.