public class Repo extends ServerResource implements IRepo
refreshable, server, updateable
Constructor and Description |
---|
Repo() |
Repo(java.util.Map<java.lang.String,java.lang.Object> repoMap) |
Repo(java.lang.String name,
java.util.Date createdDate,
java.util.Date pushedDate) |
Repo(java.lang.String name,
java.lang.String ownerName,
java.util.Date createdDate,
java.util.Date pushedDate,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getCreatedDate()
Get the date the repo was created.
|
java.lang.String |
getDefaultBranch() |
java.lang.String |
getDescription()
Get the description associated with this repo.
|
java.lang.String |
getForkedFrom() |
java.lang.String |
getMirroredFrom() |
java.lang.String |
getName()
Get the repo's name.
|
java.lang.String |
getOwnerName()
Get the Perforce user name of the repo's owner.
|
java.util.Date |
getPushedDate()
Get the date the repo was last pushed.
|
void |
setDefaultBranch(java.lang.String defaultBranch) |
void |
setDescription(java.lang.String description)
Set the description associated with this repo.
|
void |
setForkedFrom(java.lang.String forkedFrom) |
void |
setMirroredFrom(java.lang.String mirroredFrom) |
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, parseDate, refresh, setRawField, setRawFields, setRefreshable, setServer, toDateString, update, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
public Repo()
public Repo(java.util.Map<java.lang.String,java.lang.Object> repoMap)
public Repo(java.lang.String name, java.util.Date createdDate, java.util.Date pushedDate)
public Repo(java.lang.String name, java.lang.String ownerName, java.util.Date createdDate, java.util.Date pushedDate, java.lang.String description)
public java.lang.String getName()
public java.lang.String getOwnerName()
getOwnerName
in interface IRepo
public java.util.Date getCreatedDate()
getCreatedDate
in interface IRepo
public java.util.Date getPushedDate()
getPushedDate
in interface IRepo
public java.lang.String getDescription()
getDescription
in interface IRepo
public void setDescription(java.lang.String description)
setDescription
in interface IRepo
description
- new repo description string.public java.lang.String getForkedFrom()
getForkedFrom
in interface IRepo
public void setForkedFrom(java.lang.String forkedFrom)
setForkedFrom
in interface IRepo
forkedFrom
- forkpublic java.lang.String getDefaultBranch()
getDefaultBranch
in interface IRepo
public void setDefaultBranch(java.lang.String defaultBranch)
setDefaultBranch
in interface IRepo
defaultBranch
- branchpublic java.lang.String getMirroredFrom()
getMirroredFrom
in interface IRepo
public void setMirroredFrom(java.lang.String mirroredFrom)
setMirroredFrom
in interface IRepo
mirroredFrom
- mirror