|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.corona.repository.adapter.team.TeamRepositoryAdapter
public class TeamRepositoryAdapter
This adapter class supplies methods for accessing team member repositories
holding information about human resources available to work on projects. The class implements
ITeamRepositoryAdapter
it supplies additional methods
to retrieve a team member list.
Field Summary | |
---|---|
(package private) RepositoryDescriptor |
repositoryDescriptor
|
(package private) TeamRepository |
teamRepository
|
(package private) java.util.Properties |
teamRepositoryAdapterProperties
|
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 | |
---|---|
TeamRepositoryAdapter()
|
Method Summary | |
---|---|
void |
addResource(java.lang.Object resource)
add a resource object to the repository |
void |
close()
close the Repository, if connection cannot be close an exception is thrown |
java.lang.Object |
fetchResource(java.lang.Object resourceId)
return the resource object with the given identifier from the repository. |
RepositoryDescriptor |
getDescriptor()
get the RepositoryDescriptor Model for this repository adapter |
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.util.List |
getTeamMemberList()
The adapter interface for the TeamMemberRepository. |
java.util.List |
listResourceIds()
get a list of resource identifiers from the repository |
void |
open()
open the Repository for use, attempts to connect to Repository, if connection fails an exception is thrown |
void |
removeResource(java.lang.Object resourceId)
remove a resource object with the given resource identifier from the repository |
boolean |
resourceExists(java.lang.Object resourceId)
determine whether a resource with resourceName is in Repository |
void |
setDescriptor(RepositoryDescriptor repositoryDescriptor)
set the RepositoryDescriptor Model for this repository adapter |
void |
setProperties(java.util.Properties respositoryProperties)
pass platform specific properties into a repository adapter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
RepositoryDescriptor repositoryDescriptor
TeamRepository teamRepository
java.util.Properties teamRepositoryAdapterProperties
Constructor Detail |
---|
public TeamRepositoryAdapter()
Method Detail |
---|
public void setDescriptor(RepositoryDescriptor repositoryDescriptor)
IRepositoryAdapter
setDescriptor
in interface IRepositoryAdapter
repositoryDescriptor
- the RepositoryDescriptor Model object which
holds information about connecting to the repositorypublic void open() throws java.lang.Exception
IRepositoryAdapter
open
in interface IRepositoryAdapter
java.lang.Exception
public void close() throws java.lang.Exception
IRepositoryAdapter
close
in interface IRepositoryAdapter
java.lang.Exception
public void addResource(java.lang.Object resource)
IRepositoryAdapter
addResource
in interface IRepositoryAdapter
public void removeResource(java.lang.Object resourceId)
IRepositoryAdapter
removeResource
in interface IRepositoryAdapter
resourceId
- identifier of resource to be removed from the repository.public java.lang.Object fetchResource(java.lang.Object resourceId)
IRepositoryAdapter
fetchResource
in interface IRepositoryAdapter
resourceId
- identifier of resource to be returned.
public RepositoryDescriptor getDescriptor()
IRepositoryAdapter
getDescriptor
in interface IRepositoryAdapter
public java.lang.String getName()
IRepositoryAdapter
getName
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 java.util.Properties getProperties()
IRepositoryAdapter
getProperties
in interface IRepositoryAdapter
public boolean resourceExists(java.lang.Object resourceId)
IRepositoryAdapter
resourceExists
in interface IRepositoryAdapter
public java.util.List getTeamMemberList()
ITeamRepositoryAdapter
getTeamMemberList
in interface ITeamRepositoryAdapter
public java.util.List listResourceIds()
IRepositoryAdapter
listResourceIds
in interface IRepositoryAdapter
|
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 |