Interface IClientsDelegator

All Known Subinterfaces:
IOptionsServer, IServer, IStreamingServer
All Known Implementing Classes:
ClientsDelegator, NtsServerImpl, OneShotServerImpl, RpcServer, Server

public interface IClientsDelegator
Since:
15/09/2016
  • Method Summary

    Modifier and Type
    Method
    Description
    Get a list of IClientSummary objects for all Perforce clients known to this Perforce server.
    getClients(String userName, String nameFilter, int maxResults)
    Get a list of IClientSummary objects for all Perforce clients known to this Perforce server.
  • Method Details

    • getClients

      Get a list of IClientSummary objects for all Perforce clients known to this Perforce server.

      Note that this method returns light-weight IClientSummary objects rather than full IClient objects; if you need the heavy-weight IClient objects, you should use getClient().

      Note also that the returned IClient objects are not "complete", in the sense that implementations are free to leave certain attributes null for performance reasons. In general, at least the client's name, root, description, last modification time are guaranteed correct.

      Parameters:
      opts - GetClientsOptions object describing optional parameters; if null, no options are set.
      Returns:
      non-null (but possibly empty) list of Client objects for Perforce clients known to this Perforce server.
      Throws:
      P4JavaException - if any error occurs in the processing of this method.
    • getClients

      List<IClientSummary> getClients(String userName, String nameFilter, int maxResults) throws ConnectionException, RequestException, AccessException
      Get a list of IClientSummary objects for all Perforce clients known to this Perforce server.

      Note that this method returns light-weight IClientSummary objects rather than full IClient objects; if you need the heavy-weight IClient objects, you should use getClient().

      Note also that the returned IClient objects are not "complete", in the sense that implementations are free to leave certain attributes null for performance reasons. In general, at least the client's name, root, description, last modification time are guaranteed correct.

      Parameters:
      userName - user name
      nameFilter - limits output to clients whose name matches the nameFilter pattern. Corresponds to -enameFilter flag
      maxResults - If greater than zero, limit output to the first maxResults number of clients.
      Returns:
      non-null (but possibly empty) list of Client objects for Perforce clients known to
      Throws:
      ConnectionException - on error
      RequestException - on error
      AccessException - on error