*** This interface provides Binary Compatibility only, not Source Compatibility ***

Interface GroupInterface

All Superinterfaces:
MetadataInterface, PublicObjectInterface, Remote
All Known Subinterfaces:
ContentSubscriberGroupInterface, EventSubscriberGroupInterface

@SASScope("ALL") @BinaryCompatibilityOnly public interface GroupInterface extends MetadataInterface
This is a generic interface for objects coming out of the repositories that represent groups. A generic group can be a collection of any type of metadata object.

Since:
1.0
  • Method Details

    • members

      List members() throws ServiceException, RemoteException
      Get the members of the group.

      Returns:
      a List of MetadataInterface objects representing the members of the group.
      Throws:
      ServiceException - if a service level error occurs.
      RemoteException - in the event of remote object failure.
    • getMembers

      List getMembers() throws ServiceException, RemoteException
      Get the members of the group.

      Returns:
      a List of MetadataInterface objects representing the members of the group.
      Throws:
      ServiceException - if a service level error occurs.
      RemoteException - in the event of remote object failure.
    • getMembersAllRepositories

      List getMembersAllRepositories() throws ServiceException, RemoteException
      Get all the members of the group, including those that may be in dependent repositories.
      Returns:
      A List of MetadataInterface objects representing the members of the group.
      Throws:
      ServiceException - In the event of repository errors.
      RemoteException - In the event of remote object failure.
    • addMember

      void addMember(MetadataInterface member) throws ServiceException, RemoteException
      Add a new member to the group.

      Parameters:
      member - The new member to add.
      Throws:
      ServiceException - if a service level error occurs.
      RemoteException - in the event of remote object failure.
    • addMemberOrdered

      void addMemberOrdered(MetadataInterface member) throws ServiceException, RemoteException
      Add a new member to the group such that it will be ordered even if it's in another repository (This is primarily for OMR groups).
      Parameters:
      member - The new member to add.
      Throws:
      ServiceException - if a service level error occurs.
      RemoteException - In the event of remote object failure.
    • removeMember

      boolean removeMember(MetadataInterface member) throws ServiceException, RemoteException
      Remove a member from the group.

      Parameters:
      member - The member to remove.
      Returns:
      true if the member was removed, false otherwise.
      Throws:
      ServiceException - if a service level error occurs.
      RemoteException - in the event of remote object failure.
    • getOwners

      List getOwners() throws ServiceException, RemoteException
      Get the list of owners for this list.

      Returns:
      a List of com.sas.services.information.metadata.Person objects representing the owner(s) of the group.
      Throws:
      ServiceException - if a service level error occurs.
      RemoteException - in the event of remote object failure.
    • addOwner

      void addOwner(PersonInterface owner) throws ServiceException, RemoteException
      Add a person as an owner of the group.

      Parameters:
      owner - The person to add as an owner.
      Throws:
      ServiceException - if a service level error occurs.
      RemoteException - in the event of remote object failure.
    • removeOwner

      void removeOwner(PersonInterface owner) throws ServiceException, RemoteException
      Remove a person from the owner list.

      Parameters:
      owner - The person to remove from the list of owners.
      Throws:
      ServiceException - if a service level error occurs.
      RemoteException - in the event of remote object failure.