Class Repo
- java.lang.Object
-
- com.perforce.p4java.impl.generic.core.ServerResource
-
- com.perforce.p4java.impl.generic.core.Repo
-
- All Implemented Interfaces:
IRepo,IServerResource
public class Repo extends ServerResource implements IRepo
-
-
Field Summary
-
Fields inherited from class com.perforce.p4java.impl.generic.core.ServerResource
refreshable, server, updateable
-
-
Constructor Summary
Constructors Constructor Description Repo()Repo(java.lang.String name, java.lang.String ownerName, java.util.Date createdDate, java.util.Date pushedDate, java.lang.String description)Repo(java.lang.String name, java.util.Date createdDate, java.util.Date pushedDate)Repo(java.util.Map<java.lang.String,java.lang.Object> repoMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetCreatedDate()Get the date the repo was created.java.lang.StringgetDefaultBranch()java.lang.StringgetDescription()Get the description associated with this repo.java.lang.StringgetForkedFrom()java.lang.StringgetMirroredFrom()java.lang.StringgetName()Get the repo's name.java.lang.StringgetOwnerName()Get the Perforce user name of the repo's owner.java.util.DategetPushedDate()Get the date the repo was last pushed.voidsetDefaultBranch(java.lang.String defaultBranch)voidsetDescription(java.lang.String description)Set the description associated with this repo.voidsetForkedFrom(java.lang.String forkedFrom)voidsetMirroredFrom(java.lang.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, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.perforce.p4java.core.IServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
-
-
-
-
Constructor Detail
-
Repo
public Repo()
-
Repo
public Repo(java.util.Map<java.lang.String,java.lang.Object> repoMap)
-
Repo
public Repo(java.lang.String name, java.util.Date createdDate, java.util.Date pushedDate)
-
Repo
public Repo(java.lang.String name, java.lang.String ownerName, java.util.Date createdDate, java.util.Date pushedDate, java.lang.String description)
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the repo's name.
-
getOwnerName
public java.lang.String getOwnerName()
Get the Perforce user name of the repo's owner.- Specified by:
getOwnerNamein interfaceIRepo- Returns:
- owner
-
getCreatedDate
public java.util.Date getCreatedDate()
Get the date the repo was created.- Specified by:
getCreatedDatein interfaceIRepo- Returns:
- date
-
getPushedDate
public java.util.Date getPushedDate()
Get the date the repo was last pushed.- Specified by:
getPushedDatein interfaceIRepo- Returns:
- date
-
getDescription
public java.lang.String getDescription()
Get the description associated with this repo.- Specified by:
getDescriptionin interfaceIRepo- Returns:
- description
-
setDescription
public void setDescription(java.lang.String description)
Set the description associated with this repo.- Specified by:
setDescriptionin interfaceIRepo- Parameters:
description- new repo description string.
-
getForkedFrom
public java.lang.String getForkedFrom()
- Specified by:
getForkedFromin interfaceIRepo- Returns:
- fork
-
setForkedFrom
public void setForkedFrom(java.lang.String forkedFrom)
- Specified by:
setForkedFromin interfaceIRepo- Parameters:
forkedFrom- fork
-
getDefaultBranch
public java.lang.String getDefaultBranch()
- Specified by:
getDefaultBranchin interfaceIRepo- Returns:
- branch
-
setDefaultBranch
public void setDefaultBranch(java.lang.String defaultBranch)
- Specified by:
setDefaultBranchin interfaceIRepo- Parameters:
defaultBranch- branch
-
getMirroredFrom
public java.lang.String getMirroredFrom()
- Specified by:
getMirroredFromin interfaceIRepo- Returns:
- mirror
-
setMirroredFrom
public void setMirroredFrom(java.lang.String mirroredFrom)
- Specified by:
setMirroredFromin interfaceIRepo- Parameters:
mirroredFrom- mirror
-
-