|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.fisheye.spi.admin.data.RepositoryData
public abstract class RepositoryData
A detached data object representing a FishEye repository.
Use RepositoryAdminService.create(RepositoryData)
and
RepositoryAdminService.update(RepositoryData)
to
have modifications to RepositoryData objects persisted.
Nested Class Summary | |
---|---|
static class |
RepositoryData.Type
|
Field Summary | |
---|---|
static java.util.regex.Pattern |
NAME_REGEX
Regular expression used to validate repository names. |
static java.util.regex.Pattern |
TIME_INTERVAL_REGEX
Regular expression used to validate time interval strings. |
Constructor Summary | |
---|---|
RepositoryData(java.lang.String name)
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
|
java.lang.String |
getName()
|
abstract RepositoryData.Type |
getType()
|
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 |
setName(java.lang.String name)
|
void |
setStoreDiff(boolean storeDiff)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 |
Constructor Detail |
---|
public RepositoryData(java.lang.String name)
Method Detail |
---|
public abstract RepositoryData.Type getType()
public java.lang.String getName()
public final void setName(java.lang.String name)
java.lang.NullPointerException
- if name is null
java.lang.IllegalArgumentException
- if name is doesn't match NAME_REGEX
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |