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