Class ReposDelegator
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
-
- com.perforce.p4java.impl.mapbased.server.cmd.ReposDelegator
-
- All Implemented Interfaces:
IReposDelegator
public class ReposDelegator extends BaseDelegator implements IReposDelegator
-
-
Field Summary
-
Fields inherited from class com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION
-
-
Constructor Summary
Constructors Constructor Description ReposDelegator(IOptionsServer server)Instantiates a new repos delegator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IRepo>getRepos()Gets the repos.java.util.List<IRepo>getRepos(ReposOptions options)Get the repos with filter optionsjava.util.List<IRepo>getRepos(java.lang.String client)Gets the repos mapped within the client's view.
-
-
-
Constructor Detail
-
ReposDelegator
public ReposDelegator(IOptionsServer server)
Instantiates a new repos delegator.- Parameters:
server- - an instance of the currently effective server implementaion
-
-
Method Detail
-
getRepos
public java.util.List<IRepo> getRepos() throws ConnectionException, RequestException, AccessException
Gets the repos.- Specified by:
getReposin interfaceIReposDelegator- Returns:
- a list of repos
- Throws:
ConnectionException- the connection exceptionRequestException- the request exceptionAccessException- the access exception
-
getRepos
public java.util.List<IRepo> getRepos(ReposOptions options) throws P4JavaException
Get the repos with filter options- Specified by:
getReposin interfaceIReposDelegator- Parameters:
options- Repos filter options- Returns:
- a list of repos
- Throws:
P4JavaException- on error
-
getRepos
public java.util.List<IRepo> getRepos(@Nonnull java.lang.String client) throws ConnectionException, RequestException, AccessException
Gets the repos mapped within the client's view.- Specified by:
getReposin interfaceIReposDelegator- Parameters:
client- the name of the client workspace- Returns:
- a list of repos
- Throws:
ConnectionException- on errorRequestException- on errorAccessException- on error
-
-