public class JsonicFederationDao extends Object implements FederationDao
| Constructor and Description | 
|---|
| JsonicFederationDao(JsonicDaoContext context) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addFederation(Federation federation) | 
| void | addFederation(String sourceGridId,
             String targetGridId) | 
| void | clear() | 
| void | deleteFederation(String sourceGridId,
                String targetGridId) | 
| void | deleteFederationsOf(String gridId) | 
| Federation | getFederation(String sourceGridId,
             String targetGridId) | 
| boolean | isFederationExist(String sourceGridId,
                 String targetGridId) | 
| List<Federation> | list() | 
| List<Federation> | listFederationsFrom(String sourceGridId) | 
| List<Federation> | listFederationsToward(String targetGridId) | 
| List<String> | listSourceGridIds(String targetGridId) | 
| List<String> | listTargetGridIds(String sourceGridId) | 
| void | setConnected(String sourceGridId,
            String targetGridId,
            boolean isRequesting) | 
| void | setRequesting(String sourceGridId,
             String targetGridId,
             boolean isRequesting) | 
public JsonicFederationDao(JsonicDaoContext context)
public void clear()
           throws DaoException
clear in interface FederationDaoDaoExceptionpublic List<Federation> list() throws DaoException
list in interface FederationDaoDaoExceptionpublic List<String> listTargetGridIds(String sourceGridId) throws DaoException
listTargetGridIds in interface FederationDaoDaoExceptionpublic List<String> listSourceGridIds(String targetGridId) throws DaoException
listSourceGridIds in interface FederationDaoDaoExceptionpublic List<Federation> listFederationsFrom(String sourceGridId) throws DaoException
listFederationsFrom in interface FederationDaoDaoExceptionpublic List<Federation> listFederationsToward(String targetGridId) throws DaoException
listFederationsToward in interface FederationDaoDaoExceptionpublic boolean isFederationExist(String sourceGridId, String targetGridId) throws DaoException
isFederationExist in interface FederationDaoDaoExceptionpublic Federation getFederation(String sourceGridId, String targetGridId) throws FederationNotFoundException, DaoException
getFederation in interface FederationDaoFederationNotFoundExceptionDaoExceptionpublic void addFederation(Federation federation) throws FederationAlreadyExistsException, DaoException
addFederation in interface FederationDaoFederationAlreadyExistsExceptionDaoExceptionpublic void addFederation(String sourceGridId, String targetGridId) throws FederationAlreadyExistsException, DaoException
addFederation in interface FederationDaoFederationAlreadyExistsExceptionDaoExceptionpublic void deleteFederation(String sourceGridId, String targetGridId) throws FederationNotFoundException, DaoException
deleteFederation in interface FederationDaoFederationNotFoundExceptionDaoExceptionpublic void deleteFederationsOf(String gridId) throws DaoException
deleteFederationsOf in interface FederationDaoDaoExceptionpublic void setRequesting(String sourceGridId, String targetGridId, boolean isRequesting) throws DaoException
setRequesting in interface FederationDaoDaoExceptionpublic void setConnected(String sourceGridId, String targetGridId, boolean isRequesting) throws DaoException
setConnected in interface FederationDaoDaoException