|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.corona.repository.adapter.wp.WpCvsRepositoryAdapter
public class WpCvsRepositoryAdapter
The adapter class supplies methods open/close/import for repositories
representing workbench projects. The class implements
IUIRepositoryAdapter
that supply additionally methods
for determining if a repository can be opened/closed/imported.
Methods of the adapter operate on workbench projects. The adapter
uses CVS methods to fetch a remote resource.
TODO: change project identification from name to PC-WP assignment.
Field Summary | |
---|---|
static java.lang.String |
MODULE_PROPERTY
|
(package private) RepositoryDescriptor |
repositoryDescriptor
|
static java.lang.String |
STATUS_CLOSED
|
static java.lang.String |
STATUS_OPENED
|
static java.lang.String |
STATUS_UNAVAILABLE
|
Fields inherited from interface org.eclipse.corona.repository.IRepositoryAdapter |
---|
ATTRIBUTE_ACCESS_TYPE, ATTRIBUTE_ADAPTER_CLASS, ATTRIBUTE_CONTENT_TYPE, ELEMENT_ADAPTER, ELEMENT_DESCRIPTOR, EXTENSION_POINT_ID |
Constructor Summary | |
---|---|
WpCvsRepositoryAdapter()
|
Method Summary | |
---|---|
void |
addResource(java.lang.Object resourceName)
add a resource object to the repository |
void |
close()
Closes a workbench project represented by a repository. |
java.lang.Object |
fetchResource(java.lang.Object resourceId)
Fetches a workbench project into workbench from CVS remote repository. |
RepositoryDescriptor |
getDescriptor()
get the RepositoryDescriptor Model for this repository adapter |
java.lang.String |
getModuleName()
Method returns module name specified in the repository descriptor's configuration. |
java.lang.String |
getName()
get the name of the repository |
java.util.Properties |
getProperties()
retrieve the user or platform specific properties used by this repository adapter. |
java.lang.String |
getStatus()
|
boolean |
isCloseActionEnabled()
Returns true if a repository can be closed |
boolean |
isFetchResourceActionEnabled()
Returns true if a repository can be fetched |
boolean |
isOpenActionEnabled()
Returns true if a repository can be opened |
java.util.List |
listResourceIds()
get a list of resource identifiers from the repository |
void |
open()
Opens a workbench project represented by a repository. |
void |
removeResource(java.lang.Object resourceName)
remove a resource object with the given resource identifier from the repository |
boolean |
resourceExists(java.lang.Object resourceName)
determine whether a resource with resourceName is in Repository |
void |
setDescriptor(RepositoryDescriptor repoDescriptor)
set the RepositoryDescriptor Model for this repository adapter |
void |
setProperties(java.util.Properties respositoryProperties)
pass platform specific properties into a repository adapter. |
void |
showInView()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String STATUS_OPENED
public static java.lang.String STATUS_UNAVAILABLE
public static java.lang.String STATUS_CLOSED
public static java.lang.String MODULE_PROPERTY
RepositoryDescriptor repositoryDescriptor
Constructor Detail |
---|
public WpCvsRepositoryAdapter()
Method Detail |
---|
public boolean isCloseActionEnabled()
isCloseActionEnabled
in interface IUIRepositoryAdapter
public boolean isFetchResourceActionEnabled()
isFetchResourceActionEnabled
in interface IUIRepositoryAdapter
public boolean isOpenActionEnabled()
isOpenActionEnabled
in interface IUIRepositoryAdapter
public void addResource(java.lang.Object resourceName)
IRepositoryAdapter
addResource
in interface IRepositoryAdapter
public void close() throws java.lang.Exception
close
in interface IRepositoryAdapter
java.lang.Exception
public java.lang.String getModuleName()
public java.lang.Object fetchResource(java.lang.Object resourceId)
fetchResource
in interface IRepositoryAdapter
resourceId
- identifier of resource to be returned.
public java.lang.String getName()
IRepositoryAdapter
getName
in interface IRepositoryAdapter
public java.util.Properties getProperties()
IRepositoryAdapter
getProperties
in interface IRepositoryAdapter
public void open() throws java.lang.Exception
open
in interface IRepositoryAdapter
java.lang.Exception
public void removeResource(java.lang.Object resourceName)
IRepositoryAdapter
removeResource
in interface IRepositoryAdapter
resourceName
- identifier of resource to be removed from the repository.public boolean resourceExists(java.lang.Object resourceName)
IRepositoryAdapter
resourceExists
in interface IRepositoryAdapter
public void setProperties(java.util.Properties respositoryProperties)
IRepositoryAdapter
setProperties
in interface IRepositoryAdapter
respositoryProperties
- user or platform specific properties needed by a repository
adapterpublic RepositoryDescriptor getDescriptor()
IRepositoryAdapter
getDescriptor
in interface IRepositoryAdapter
public void setDescriptor(RepositoryDescriptor repoDescriptor)
IRepositoryAdapter
setDescriptor
in interface IRepositoryAdapter
repoDescriptor
- the RepositoryDescriptor Model object which
holds information about connecting to the repositorypublic java.util.List listResourceIds()
IRepositoryAdapter
listResourceIds
in interface IRepositoryAdapter
public void showInView()
showInView
in interface IUIRepositoryAdapter
public java.lang.String getStatus()
getStatus
in interface IUIRepositoryAdapter
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |