All Implemented Interfaces:
IRepo, IServerResource

public class Repo extends ServerResource implements IRepo
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Get the repo's name.
      Specified by:
      getName in interface IRepo
      Returns:
      name
    • getOwnerName

      public String getOwnerName()
      Get the Perforce user name of the repo's owner.
      Specified by:
      getOwnerName in interface IRepo
      Returns:
      owner
    • getCreatedDate

      public Date getCreatedDate()
      Get the date the repo was created.
      Specified by:
      getCreatedDate in interface IRepo
      Returns:
      date
    • getPushedDate

      public Date getPushedDate()
      Get the date the repo was last pushed.
      Specified by:
      getPushedDate in interface IRepo
      Returns:
      date
    • getDescription

      public String getDescription()
      Get the description associated with this repo.
      Specified by:
      getDescription in interface IRepo
      Returns:
      description
    • setDescription

      public void setDescription(String description)
      Set the description associated with this repo.
      Specified by:
      setDescription in interface IRepo
      Parameters:
      description - new repo description string.
    • getForkedFrom

      public String getForkedFrom()
      Specified by:
      getForkedFrom in interface IRepo
      Returns:
      fork
    • setForkedFrom

      public void setForkedFrom(String forkedFrom)
      Specified by:
      setForkedFrom in interface IRepo
      Parameters:
      forkedFrom - fork
    • getDefaultBranch

      public String getDefaultBranch()
      Specified by:
      getDefaultBranch in interface IRepo
      Returns:
      branch
    • setDefaultBranch

      public void setDefaultBranch(String defaultBranch)
      Specified by:
      setDefaultBranch in interface IRepo
      Parameters:
      defaultBranch - branch
    • getMirroredFrom

      public String getMirroredFrom()
      Specified by:
      getMirroredFrom in interface IRepo
      Returns:
      mirror
    • setMirroredFrom

      public void setMirroredFrom(String mirroredFrom)
      Specified by:
      setMirroredFrom in interface IRepo
      Parameters:
      mirroredFrom - mirror