|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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_CHANNEL_ID
|
static String |
QUERY_FIND_BY_CHANNEL_ID
|
static String |
QUERY_FIND_BY_ID_WITH_CONFIG
|
static String |
QUERY_FIND_BY_NAME_AND_TYPENAME
|
Constructor Summary | |
---|---|
ContentSource()
|
|
ContentSource(String name,
ContentSourceType contentSourceType)
|
Method Summary | |
---|---|
ChannelContentSource |
addChannel(Channel channel)
Directly assign a channel to this content source. |
void |
addSyncResult(ContentSourceSyncResults syncResult)
|
boolean |
equals(Object obj)
|
Set<ChannelContentSource> |
getChannelContentSources()
Returns the explicit mapping entities. |
Set<Channel> |
getChannels()
The channels that this content source provides content to. |
Configuration |
getConfiguration()
Values that dictate how this content source will function. |
ContentSourceType |
getContentSourceType()
Describes the capabilities of this content source. |
Date |
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()
|
Date |
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 channel source. |
List<ContentSourceSyncResults> |
getSyncResults()
The list of sync results; should be ordered with the latest results first in the list, but this is not guaranteed. |
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. |
ChannelContentSource |
removeChannel(Channel channel)
Removes the channel from this content source, if it exists. |
void |
setConfiguration(Configuration configuration)
|
void |
setContentSourceType(ContentSourceType contentSourceType)
|
void |
setCreationDate(Date creationDate)
|
void |
setDescription(String description)
|
void |
setDownloadMode(DownloadMode downloadMode)
|
void |
setId(int id)
|
void |
setLastModifiedDate(Date 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_CHANNEL_ID
public static final String QUERY_FIND_AVAILABLE_BY_CHANNEL_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 Date getCreationDate()
public void setCreationDate(Date creationDate)
public Date 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(Date lastModifiedDate)
public List<ContentSourceSyncResults> getSyncResults()
public void addSyncResult(ContentSourceSyncResults syncResult)
public void setSyncResults(List<ContentSourceSyncResults> syncResults)
public Set<ChannelContentSource> getChannelContentSources()
#getContentSources()
public Set<Channel> getChannels()
The returned set is not backed by this entity - if you want to alter the set of associated channels, use
getChannelContentSources()
or addChannel(Channel)
, removeChannel(Channel)
.
public ChannelContentSource addChannel(Channel channel)
channel
-
public ChannelContentSource removeChannel(Channel channel)
null
is
returned.
channel
- the channel to remove from this content source
null
if the channel 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 |