public class ProjectDataService
extends java.lang.Object
implements tecgraf.openbus.data_service.IHierarchicalDataServiceOperations
| Modifier and Type | Method and Description |
|---|---|
byte[] |
copyData(byte[] fParentKey,
byte[] fSourceKey) |
byte[] |
copyDataFrom(byte[] fParentKey,
byte[] fSourceKey) |
byte[] |
createData(byte[] fParentKey,
tecgraf.openbus.data_service.DataDescription fPrototype) |
void |
deleteData(byte[] fKey) |
tecgraf.openbus.data_service.DataDescription[] |
getChildren(byte[] fKey) |
tecgraf.openbus.data_service.DataDescription |
getDataDescription(byte[] fKey) |
tecgraf.openbus.data_service.DataView |
getDataView(byte[] fKey,
java.lang.String fViewInterface) |
tecgraf.openbus.data_service.DataView[] |
getDataViewSeq(byte[][] fKeys,
java.lang.String fViewInterface) |
static ProjectDataService |
getInstance()
Obtém a instância única do Serviço de Dados de Projeto.
|
tecgraf.openbus.data_service.DataDescription |
getParent(byte[] fKey) |
tecgraf.openbus.data_service.DataDescription[] |
getRoots() |
void |
moveData(byte[] fKey,
byte[] fNewParentKey) |
void |
updateData(byte[] fKey,
byte[] fSourceKey) |
void |
updateDataFrom(byte[] fKey,
byte[] fSourceKey) |
void |
updateDataFrom(java.lang.Object projectId,
java.lang.String[] pathArray,
byte[] fSourceKey)
Atualiza um arquivo a partir de um dado localizado em um outro servidor.
|
public static ProjectDataService getInstance()
public tecgraf.openbus.data_service.DataDescription[] getRoots()
throws tecgraf.openbus.data_service.ServiceFailure
getRoots in interface tecgraf.openbus.data_service.IHierarchicalNavigationDataServiceOperationstecgraf.openbus.data_service.ServiceFailurepublic tecgraf.openbus.data_service.DataDescription[] getChildren(byte[] fKey)
throws tecgraf.openbus.data_service.ServiceFailure,
tecgraf.openbus.data_service.InvalidDataKey,
tecgraf.openbus.data_service.DataNotFound
getChildren in interface tecgraf.openbus.data_service.IHierarchicalNavigationDataServiceOperationstecgraf.openbus.data_service.ServiceFailuretecgraf.openbus.data_service.InvalidDataKeytecgraf.openbus.data_service.DataNotFoundpublic tecgraf.openbus.data_service.DataDescription getParent(byte[] fKey)
throws tecgraf.openbus.data_service.ServiceFailure,
tecgraf.openbus.data_service.InvalidDataKey,
tecgraf.openbus.data_service.DataNotFound
getParent in interface tecgraf.openbus.data_service.IHierarchicalNavigationDataServiceOperationstecgraf.openbus.data_service.ServiceFailuretecgraf.openbus.data_service.InvalidDataKeytecgraf.openbus.data_service.DataNotFoundpublic tecgraf.openbus.data_service.DataDescription getDataDescription(byte[] fKey)
throws tecgraf.openbus.data_service.ServiceFailure,
tecgraf.openbus.data_service.InvalidDataKey,
tecgraf.openbus.data_service.DataNotFound
getDataDescription in interface tecgraf.openbus.data_service.IHierarchicalNavigationDataServiceOperationstecgraf.openbus.data_service.ServiceFailuretecgraf.openbus.data_service.InvalidDataKeytecgraf.openbus.data_service.DataNotFoundpublic tecgraf.openbus.data_service.DataView getDataView(byte[] fKey,
java.lang.String fViewInterface)
throws tecgraf.openbus.data_service.ServiceFailure,
tecgraf.openbus.data_service.UnknownViewInterface,
tecgraf.openbus.data_service.InvalidDataKey,
tecgraf.openbus.data_service.DataNotFound
getDataView in interface tecgraf.openbus.data_service.IHierarchicalNavigationDataServiceOperationstecgraf.openbus.data_service.ServiceFailuretecgraf.openbus.data_service.UnknownViewInterfacetecgraf.openbus.data_service.InvalidDataKeytecgraf.openbus.data_service.DataNotFoundpublic tecgraf.openbus.data_service.DataView[] getDataViewSeq(byte[][] fKeys,
java.lang.String fViewInterface)
throws tecgraf.openbus.data_service.ServiceFailure,
tecgraf.openbus.data_service.UnknownViewInterface,
tecgraf.openbus.data_service.InvalidDataKey,
tecgraf.openbus.data_service.DataNotFound
getDataViewSeq in interface tecgraf.openbus.data_service.IHierarchicalNavigationDataServiceOperationstecgraf.openbus.data_service.ServiceFailuretecgraf.openbus.data_service.UnknownViewInterfacetecgraf.openbus.data_service.InvalidDataKeytecgraf.openbus.data_service.DataNotFoundpublic byte[] createData(byte[] fParentKey,
tecgraf.openbus.data_service.DataDescription fPrototype)
throws tecgraf.openbus.data_service.ServiceFailure,
tecgraf.openbus.data_service.InvalidDataKey,
tecgraf.openbus.data_service.DataNotFound
createData in interface tecgraf.openbus.data_service.IHierarchicalManagementDataServiceOperationstecgraf.openbus.data_service.ServiceFailuretecgraf.openbus.data_service.InvalidDataKeytecgraf.openbus.data_service.DataNotFoundpublic byte[] copyData(byte[] fParentKey,
byte[] fSourceKey)
throws tecgraf.openbus.data_service.ServiceFailure,
tecgraf.openbus.data_service.UnknownViews,
tecgraf.openbus.data_service.DataNotFound,
tecgraf.openbus.data_service.InvalidDataKey,
tecgraf.openbus.data_service.DataAccessDenied
copyData in interface tecgraf.openbus.data_service.IHierarchicalManagementDataServiceOperationstecgraf.openbus.data_service.ServiceFailuretecgraf.openbus.data_service.UnknownViewstecgraf.openbus.data_service.DataNotFoundtecgraf.openbus.data_service.InvalidDataKeytecgraf.openbus.data_service.DataAccessDeniedpublic void moveData(byte[] fKey,
byte[] fNewParentKey)
throws tecgraf.openbus.data_service.ServiceFailure,
tecgraf.openbus.data_service.UnknownViews,
tecgraf.openbus.data_service.InvalidDataKey,
tecgraf.openbus.data_service.DataNotFound
moveData in interface tecgraf.openbus.data_service.IHierarchicalManagementDataServiceOperationstecgraf.openbus.data_service.ServiceFailuretecgraf.openbus.data_service.UnknownViewstecgraf.openbus.data_service.InvalidDataKeytecgraf.openbus.data_service.DataNotFoundpublic void updateData(byte[] fKey,
byte[] fSourceKey)
throws tecgraf.openbus.data_service.ServiceFailure,
tecgraf.openbus.data_service.UnknownViews,
tecgraf.openbus.data_service.InvalidDataKey,
tecgraf.openbus.data_service.DataNotFound
updateData in interface tecgraf.openbus.data_service.IHierarchicalManagementDataServiceOperationstecgraf.openbus.data_service.ServiceFailuretecgraf.openbus.data_service.UnknownViewstecgraf.openbus.data_service.InvalidDataKeytecgraf.openbus.data_service.DataNotFoundpublic void deleteData(byte[] fKey)
throws tecgraf.openbus.data_service.ServiceFailure,
tecgraf.openbus.data_service.InvalidDataKey,
tecgraf.openbus.data_service.DataNotFound
deleteData in interface tecgraf.openbus.data_service.IHierarchicalManagementDataServiceOperationstecgraf.openbus.data_service.ServiceFailuretecgraf.openbus.data_service.InvalidDataKeytecgraf.openbus.data_service.DataNotFoundpublic byte[] copyDataFrom(byte[] fParentKey,
byte[] fSourceKey)
throws tecgraf.openbus.data_service.ServiceFailure,
tecgraf.openbus.data_service.InvalidDataKey,
tecgraf.openbus.data_service.UnknownViews,
tecgraf.openbus.data_service.DataAccessDenied,
tecgraf.openbus.data_service.DataNotFound
copyDataFrom in interface tecgraf.openbus.data_service.IHierarchicalTransferDataServiceOperationstecgraf.openbus.data_service.ServiceFailuretecgraf.openbus.data_service.InvalidDataKeytecgraf.openbus.data_service.UnknownViewstecgraf.openbus.data_service.DataAccessDeniedtecgraf.openbus.data_service.DataNotFoundpublic void updateDataFrom(byte[] fKey,
byte[] fSourceKey)
throws tecgraf.openbus.data_service.ServiceFailure,
tecgraf.openbus.data_service.InvalidDataKey,
tecgraf.openbus.data_service.UnknownViews,
tecgraf.openbus.data_service.DataNotFound,
tecgraf.openbus.data_service.DataAccessDenied
updateDataFrom in interface tecgraf.openbus.data_service.IHierarchicalTransferDataServiceOperationstecgraf.openbus.data_service.ServiceFailuretecgraf.openbus.data_service.InvalidDataKeytecgraf.openbus.data_service.UnknownViewstecgraf.openbus.data_service.DataNotFoundtecgraf.openbus.data_service.DataAccessDeniedpublic void updateDataFrom(java.lang.Object projectId,
java.lang.String[] pathArray,
byte[] fSourceKey)
throws tecgraf.openbus.data_service.ServiceFailure,
tecgraf.openbus.data_service.InvalidDataKey,
tecgraf.openbus.data_service.UnknownViews,
tecgraf.openbus.data_service.DataNotFound,
tecgraf.openbus.data_service.DataAccessDenied
projectId - O identificador do projeto.pathArray - O caminho para o arquivo.fSourceKey - A chave unívoca do dado de origem, ou seja, o dado
armazenado no outro servidor.tecgraf.openbus.data_service.ServiceFailure - Caso ocorra uma falha no serviço.tecgraf.openbus.data_service.InvalidDataKey - Caso a chave do dado de origem não seja válida.tecgraf.openbus.data_service.UnknownViews - Caso as visões oferecidas pelo dado de origem não
sejam conhecidas deste servidor.tecgraf.openbus.data_service.DataNotFound - Caso o dado de origem não exista.tecgraf.openbus.data_service.DataAccessDenied - Caso o usuário solicitante não tenha acesso ao
dado de origemCopyright © 2018. All Rights Reserved.