Class Repo
java.lang.Object
com.perforce.p4java.impl.generic.core.ServerResource
com.perforce.p4java.impl.generic.core.Repo
- All Implemented Interfaces:
IRepo,IServerResource
-
Field Summary
Fields inherited from class com.perforce.p4java.impl.generic.core.ServerResource
refreshable, server, updateable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the date the repo was created.Get the description associated with this repo.getName()Get the repo's name.Get the Perforce user name of the repo's owner.Get the date the repo was last pushed.voidsetDefaultBranch(String defaultBranch) voidsetDescription(String description) Set the description associated with this repo.voidsetForkedFrom(String forkedFrom) voidsetMirroredFrom(String mirroredFrom) Methods inherited from class com.perforce.p4java.impl.generic.core.ServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, parseDate, refresh, setRawField, setRawFields, setRefreshable, setServer, toDateString, update, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.perforce.p4java.core.IServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
-
Constructor Details
-
Repo
public Repo() -
Repo
-
Repo
-
Repo
-
-
Method Details
-
getName
Get the repo's name. -
getOwnerName
Get the Perforce user name of the repo's owner.- Specified by:
getOwnerNamein interfaceIRepo- Returns:
- owner
-
getCreatedDate
Get the date the repo was created.- Specified by:
getCreatedDatein interfaceIRepo- Returns:
- date
-
getPushedDate
Get the date the repo was last pushed.- Specified by:
getPushedDatein interfaceIRepo- Returns:
- date
-
getDescription
Get the description associated with this repo.- Specified by:
getDescriptionin interfaceIRepo- Returns:
- description
-
setDescription
Set the description associated with this repo.- Specified by:
setDescriptionin interfaceIRepo- Parameters:
description- new repo description string.
-
getForkedFrom
- Specified by:
getForkedFromin interfaceIRepo- Returns:
- fork
-
setForkedFrom
- Specified by:
setForkedFromin interfaceIRepo- Parameters:
forkedFrom- fork
-
getDefaultBranch
- Specified by:
getDefaultBranchin interfaceIRepo- Returns:
- branch
-
setDefaultBranch
- Specified by:
setDefaultBranchin interfaceIRepo- Parameters:
defaultBranch- branch
-
getMirroredFrom
- Specified by:
getMirroredFromin interfaceIRepo- Returns:
- mirror
-
setMirroredFrom
- Specified by:
setMirroredFromin interfaceIRepo- Parameters:
mirroredFrom- mirror
-