|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.dna.connector.federation.FederatedWorkspace
@Immutable public class FederatedWorkspace

The configuration of a federated repository. workspace The configuration defines, among other things, the set of
source projections in the federated workspace that each specify how and where content from a
source is federated into the unified workspace.
| Constructor Summary | |
|---|---|
FederatedWorkspace(String workspaceName,
Projection cacheProjection,
Iterable<Projection> sourceProjections,
CachePolicy cachePolicy)
Create a configuration for a federated workspace. |
|
FederatedWorkspace(String workspaceName,
Projection cacheProjection,
Iterable<Projection> sourceProjections,
CachePolicy cachePolicy,
MergeStrategy mergeStrategy)
Create a configuration for a federated workspace. |
|
| Method Summary | |
|---|---|
int |
compareTo(FederatedWorkspace that)
|
boolean |
contains(String sourceName,
String workspaceName)
Determine whether this workspace has a projection supplied contribution |
boolean |
equals(Object obj)
|
CachePolicy |
getCachePolicy()
Get the cache policy for this workspace |
Projection |
getCacheProjection()
Get the projection that defines the cache for this repository. |
MergeStrategy |
getMergingStrategy()
Get the merging strategy used for this workspace |
String |
getName()
Get the name of this repository |
Problems |
getProblems()
Return the problem associated with this configuration. |
List<Projection> |
getProjectionsFor(String sourceName)
Return the unmodifiable list of projections for the source name. |
List<Projection> |
getSourceProjections()
Return the unmodifiable list of source projections. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FederatedWorkspace(String workspaceName,
Projection cacheProjection,
Iterable<Projection> sourceProjections,
CachePolicy cachePolicy)
workspaceName - the name of the federated workspace; may not be nullcacheProjection - the projection used for the cache; may not be nullsourceProjections - the source projections; may not be nullcachePolicy - the cache policy for this workspace; may be null if there is no policy
IllegalArgumentException - if the name is null or is blank
public FederatedWorkspace(String workspaceName,
Projection cacheProjection,
Iterable<Projection> sourceProjections,
CachePolicy cachePolicy,
MergeStrategy mergeStrategy)
workspaceName - the name of the federated workspace; may not be nullcacheProjection - the projection used for the cache; may not be nullsourceProjections - the source projections; may not be nullcachePolicy - the cache policy for this workspace; may be null if there is no policymergeStrategy - the strategy that should be used to merge nodes, or null if the strategy should be chosen based
automatically based upon the number of sources used by the projections
IllegalArgumentException - if the name is null or is blank| Method Detail |
|---|
public String getName()
public CachePolicy getCachePolicy()
public MergeStrategy getMergingStrategy()
public Problems getProblems()
Problems object is thread-safe.
public Projection getCacheProjection()
list of source projections.
public List<Projection> getSourceProjections()
public List<Projection> getProjectionsFor(String sourceName)
sourceName - the name of the source
public boolean contains(String sourceName,
String workspaceName)
sourceName - the name of the sourceworkspaceName - the name of the workspace
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int compareTo(FederatedWorkspace that)
compareTo in interface Comparable<FederatedWorkspace>Comparable.compareTo(java.lang.Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||