public abstract class RepositoryData
extends java.lang.Object
Use RepositoryAdminService.create(RepositoryData)
and
RepositoryAdminService.update(RepositoryData)
to
have modifications to RepositoryData objects persisted.
Modifier and Type | Class and Description |
---|---|
static class |
RepositoryData.Type |
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
NAME_REGEX
Regular expression used to validate repository names.
|
static java.lang.String |
NAME_REGEX_PATTERN
The regular expression that repository names need to match
Must be kept in sync with the one defined in config.xsd.
|
static java.util.regex.Pattern |
TIME_INTERVAL_REGEX
Regular expression used to validate time interval strings.
|
Constructor and Description |
---|
RepositoryData(java.lang.String name)
Deprecated.
since 4.2.0; use
RepositoryData(String, String) instead |
RepositoryData(java.lang.String name,
java.lang.String displayName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
java.lang.String |
getDisplayName() |
java.lang.Boolean |
getEnabled() |
abstract java.lang.String |
getLocationDescription() |
java.lang.String |
getName() |
java.lang.String |
getParent()
Deprecated.
managed repositories were deprecated in version 2.8 and removed completely in 3.2. See
https://confluence.atlassian.com/display/FISHEYE/End+of+Support+Announcement+for+Internally+Managed+Repositories
|
abstract RepositoryData.Type |
getType() |
boolean |
isManaged()
Deprecated.
managed repositories were deprecated in version 2.8 and removed completely in 3.2. See
https://confluence.atlassian.com/display/FISHEYE/End+of+Support+Announcement+for+Internally+Managed+Repositories
|
boolean |
isObsolete() |
boolean |
isStoreDiff()
Whether FishEye caches the summary (not the diff itself) of what lines
are added and removed between subsequent versions of the same file in
its database.
|
void |
setDescription(java.lang.String description) |
void |
setDisplayName(java.lang.String displayName) |
void |
setEnabled(java.lang.Boolean enabled) |
void |
setManaged(boolean managed)
Deprecated.
managed repositories were deprecated in version 2.8 and removed completely in 3.2. See
https://confluence.atlassian.com/display/FISHEYE/End+of+Support+Announcement+for+Internally+Managed+Repositories
|
void |
setName(java.lang.String name) |
void |
setParent(java.lang.String parent)
Deprecated.
managed repositories were deprecated in version 2.8 and removed completely in 3.2. See
https://confluence.atlassian.com/display/FISHEYE/End+of+Support+Announcement+for+Internally+Managed+Repositories
|
void |
setStoreDiff(boolean storeDiff) |
java.lang.String |
toString() |
public static final java.lang.String NAME_REGEX_PATTERN
public static final java.util.regex.Pattern NAME_REGEX
Repository names can contain alphanumeric characters, digits, underscores (_), dashes (-), and dots (.).
public static final java.util.regex.Pattern TIME_INTERVAL_REGEX
Time intervals begin with one or more digits, i.e., an integer, followed by zero of more spaces, followed by a time unit string. Valid time units and their strings are:
Time unit | Valid strings |
---|---|
seconds | s, second, seconds |
minutes | mi, minute, minutes |
hours | h, hour, hours |
days | d, day, days |
weeks | w, week, weeks |
months | mo, month, months |
years | y, year, years |
@Deprecated public RepositoryData(java.lang.String name)
RepositoryData(String, String)
insteadpublic RepositoryData(java.lang.String name, java.lang.String displayName)
public abstract RepositoryData.Type getType()
public java.lang.String getName()
public boolean isObsolete()
public final void setName(java.lang.String name)
java.lang.NullPointerException
- if name is nulljava.lang.IllegalArgumentException
- if name is doesn't match NAME_REGEX
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public boolean isStoreDiff()
Defaults to true unless overridden by using setStoreDiff(boolean)
.
public void setStoreDiff(boolean storeDiff)
public java.lang.Boolean getEnabled()
public void setEnabled(java.lang.Boolean enabled)
@Deprecated public boolean isManaged()
Managed repositories are repositories where an user can push/pull commits through FishEye.
@Deprecated public void setManaged(boolean managed)
@Deprecated public java.lang.String getParent()
A managed repository can be forked, and this defines which repository it was forked from.
@Deprecated public void setParent(java.lang.String parent)
public abstract java.lang.String getLocationDescription()
public java.lang.String toString()
toString
in class java.lang.Object