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.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)
-
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:
getOwnerName
in interfaceIRepo
- Returns:
- owner
-
getCreatedDate
public java.util.Date getCreatedDate()
Get the date the repo was created.- Specified by:
getCreatedDate
in interfaceIRepo
- Returns:
- date
-
getPushedDate
public java.util.Date getPushedDate()
Get the date the repo was last pushed.- Specified by:
getPushedDate
in interfaceIRepo
- Returns:
- date
-
getDescription
public java.lang.String getDescription()
Get the description associated with this repo.- Specified by:
getDescription
in interfaceIRepo
- Returns:
- description
-
setDescription
public void setDescription(java.lang.String description)
Set the description associated with this repo.- Specified by:
setDescription
in interfaceIRepo
- Parameters:
description
- new repo description string.
-
getForkedFrom
public java.lang.String getForkedFrom()
- Specified by:
getForkedFrom
in interfaceIRepo
- Returns:
- fork
-
setForkedFrom
public void setForkedFrom(java.lang.String forkedFrom)
- Specified by:
setForkedFrom
in interfaceIRepo
- Parameters:
forkedFrom
- fork
-
getDefaultBranch
public java.lang.String getDefaultBranch()
- Specified by:
getDefaultBranch
in interfaceIRepo
- Returns:
- branch
-
setDefaultBranch
public void setDefaultBranch(java.lang.String defaultBranch)
- Specified by:
setDefaultBranch
in interfaceIRepo
- Parameters:
defaultBranch
- branch
-
getMirroredFrom
public java.lang.String getMirroredFrom()
- Specified by:
getMirroredFrom
in interfaceIRepo
- Returns:
- mirror
-
setMirroredFrom
public void setMirroredFrom(java.lang.String mirroredFrom)
- Specified by:
setMirroredFrom
in interfaceIRepo
- Parameters:
mirroredFrom
- mirror
-
-