|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.content.ContentSource
public class ContentSource
Represents a real connection to an external source system. The type of external source system is described by the
ContentSourceType
attribute of this class. The other attributes in this class serve to configure and control
the connection to the package source.
Field Summary | |
---|---|
static String |
QUERY_FIND_ALL
|
static String |
QUERY_FIND_ALL_WITH_CONFIG
|
static String |
QUERY_FIND_AVAILABLE_BY_REPO_ID
|
static String |
QUERY_FIND_BY_ID_WITH_CONFIG
|
static String |
QUERY_FIND_BY_NAME_AND_TYPENAME
|
static String |
QUERY_FIND_BY_REPO_ID
|
Constructor Summary | |
---|---|
ContentSource()
|
|
ContentSource(String name,
ContentSourceType contentSourceType)
|
Method Summary | |
---|---|
RepoContentSource |
addRepo(Repo repo)
Directly assign a repo to this content source. |
void |
addSyncResult(ContentSourceSyncResults syncResult)
|
boolean |
equals(Object obj)
|
Configuration |
getConfiguration()
Values that dictate how this content source will function. |
ContentSourceType |
getContentSourceType()
Describes the capabilities of this content source. |
long |
getCreationDate()
Timestamp of when this content source was created. |
String |
getDescription()
User defined description to help distinguish the content source in the UI. |
DownloadMode |
getDownloadMode()
Download mode indicates where (and even if) package bits are downloaded, when they are downloaded. |
int |
getId()
|
long |
getLastModifiedDate()
Timestamp of the last time the configuration of this content source was changed. |
String |
getLoadErrorMessage()
If not null , this will be an error message to indicate what errors occurred during the last attempt
to load package bits from this content source. |
String |
getName()
User defined programmatic name of this repo source. |
Set<RepoContentSource> |
getRepoContentSources()
Returns the explicit mapping entities. |
Set<Repo> |
getRepos()
The repos that this content source provides content to. |
List<ContentSourceSyncResults> |
getSyncResults()
The list of sync results - order not ensured |
String |
getSyncSchedule()
Periodically, the content source plugin adapter will be asked to synchronize with the remote content source repository. |
int |
hashCode()
|
boolean |
isLazyLoad()
If true , the content bits for all packages coming from this content source will only be loaded on
demand. |
RepoContentSource |
removeRepo(Repo repo)
Removes the repo from this content source, if it exists. |
void |
setConfiguration(Configuration configuration)
|
void |
setContentSourceType(ContentSourceType contentSourceType)
|
void |
setCreationDate(long creationDate)
|
void |
setDescription(String description)
|
void |
setDownloadMode(DownloadMode downloadMode)
|
void |
setId(int id)
|
void |
setLastModifiedDate(long lastModifiedDate)
|
void |
setLazyLoad(boolean lazyLoad)
|
void |
setLoadErrorMessage(String loadErrorMessage)
|
void |
setName(String name)
|
void |
setSyncResults(List<ContentSourceSyncResults> syncResults)
|
void |
setSyncSchedule(String syncSchedule)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String QUERY_FIND_ALL
public static final String QUERY_FIND_ALL_WITH_CONFIG
public static final String QUERY_FIND_BY_NAME_AND_TYPENAME
public static final String QUERY_FIND_BY_ID_WITH_CONFIG
public static final String QUERY_FIND_BY_REPO_ID
public static final String QUERY_FIND_AVAILABLE_BY_REPO_ID
Constructor Detail |
---|
public ContentSource()
public ContentSource(String name, ContentSourceType contentSourceType)
Method Detail |
---|
public int getId()
public void setId(int id)
public ContentSourceType getContentSourceType()
public void setContentSourceType(ContentSourceType contentSourceType)
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public boolean isLazyLoad()
true
, the content bits for all packages coming from this content source will only be loaded on
demand. This means the package contents will only be loaded when they are asked for the very first time. If
false
, the content source should attempt to download all packages as soon as possible.
public void setLazyLoad(boolean lazyLoad)
public DownloadMode getDownloadMode()
DownloadMode.NEVER
, isLazyLoad()
is effectively ignored since package bits will
never be loaded.
public void setDownloadMode(DownloadMode downloadMode)
public String getSyncSchedule()
public void setSyncSchedule(String syncSchedule)
public String getLoadErrorMessage()
null
, this will be an error message to indicate what errors occurred during the last attempt
to load package bits from this content source. If null
, either no error occurred or this content
source has yet to attempt to load package bits for any of its packages.
public void setLoadErrorMessage(String loadErrorMessage)
public Configuration getConfiguration()
content source type
associated with this instance. In other words,
these values indicate what underlying source of packages to use and how to connect to it.
public void setConfiguration(Configuration configuration)
public long getCreationDate()
public void setCreationDate(long creationDate)
public long getLastModifiedDate()
configuration
of this content source was changed. It
is not necessarily the last time any other part of this content source object was changed (for example, this last
modified date does not necessarily correspond to the time when the description was modified).
public void setLastModifiedDate(long lastModifiedDate)
public List<ContentSourceSyncResults> getSyncResults()
public void addSyncResult(ContentSourceSyncResults syncResult)
public void setSyncResults(List<ContentSourceSyncResults> syncResults)
public Set<RepoContentSource> getRepoContentSources()
getRepoContentSources()
public Set<Repo> getRepos()
The returned set is not backed by this entity - if you want to alter the set of associated repos, use
getRepoContentSources()
or addRepo(Repo)
, removeRepo(Repo)
.
public RepoContentSource addRepo(Repo repo)
repo
-
public RepoContentSource removeRepo(Repo repo)
null
is
returned.
repo
- the repo to remove from this content source
null
if the repo was not mapped to this content sourcepublic String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |