public interface BusAdmin
| Modifier and Type | Method and Description |
|---|---|
void |
addValidator(String validator)
Adiciona um validador no barramento.
|
tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityCategory |
createCategory(String categoryID,
String categoryName)
Cadastra uma nova categoria no barramento.
|
tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.RegisteredEntity |
createEntity(String entityID,
String entityName,
String categoryID)
Cadastra uma nova entidade no barramento.
|
boolean |
createInterface(String interfaceName)
Cadastra uma nova interface no barramento.
|
void |
delValidator(String validator)
Remove um validador do barramento.
|
List<String> |
getAdmins()
Retorna uma lista das entidades administradoras atuais.
|
Map<tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.RegisteredEntityDesc,List<String>> |
getAuthorizations()
Retorna um mapa que contém as descrições de todas as entidades registradas
no barramento, associadas às suas respectivas autorizações.
|
List<tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityCategoryDesc> |
getCategories()
Retorna uma lista que contém descrições de todas as categorias das
entidades do barramento.
|
List<tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.RegisteredEntityDesc> |
getEntities()
Retorna uma lista que contém descrições de todas as entidades registradas
no barramento.
|
List<String> |
getEntitiesWithCertificate()
Retorna uma lista que contém IDs de todas as etidades com certificado
registrado no barramento.
|
List<String> |
getInterfaces()
Retorna uma lista que contém as IDs de todas as interfaces registradas no
barramento.
|
List<tecgraf.openbus.core.v2_0.services.access_control.LoginInfo> |
getLogins()
Retorna lista que contém as informações de todos os logins ativos no
barramento.
|
short |
getLogLevel()
Retorna o valor atual da propriedade loglevel do barramento.
|
int |
getMaxChannels()
Retorna o valor atual da propriedade maxchannels do barramento.
|
List<tecgraf.openbus.core.v2_0.services.offer_registry.ServiceOfferDesc> |
getOffers()
Retorna uma lista que contém todas as descrições de ofertas de serviços do
barramento.
|
short |
getOilLogLevel()
Retorna o valor atual da propriedade oilloglevel do barramento.
|
List<String> |
getValidators()
Retorna uma lista dos validadores atualmente disponíveis no barramento.
|
void |
grantAdminTo(List<String> users)
Confere direitos de administração a uma lista de entidades.
|
void |
invalidateLogin(tecgraf.openbus.core.v2_0.services.access_control.LoginInfo loginInfo)
Invalida um login ativo no barramento.
|
boolean |
isReconfigurationCapable()
Indica se o barramento disponibiliza a interface de reconfiguração dinâmica.
|
void |
registerCertificate(String entityID,
byte[] certificate)
Registra um certificado no barramento.
|
void |
reloadConfigsFile()
Recarrega o arquivo de configurações no barramento.
|
void |
removeCategory(String categoryID)
Remove uma categoria do barramento.
|
void |
removeCertificate(String entityID)
Remove o certificado vinculado a uma entidade do barramento.
|
boolean |
removeEntity(String entityID)
Remove o registro de uma entidade do barramento.
|
void |
removeInterface(String interfaceName)
Remove uma interface do barramento.
|
void |
removeOffer(tecgraf.openbus.core.v2_0.services.offer_registry.ServiceOfferDesc desc)
Remove uma oferta de serviço.
|
void |
revokeAdminFrom(List<String> users)
Revoga direitos de administração de uma lista de entidades.
|
void |
revokeAuthorization(String entityID,
String interfaceName)
Remove autorização para uma interface de uma entidade.
|
boolean |
setAuthorization(String entityID,
String interfaceName)
Concede autorização para uma interface a uma entidade.
|
void |
setLogLevel(short loglevel)
Configura a propriedade loglevel do barramento.
|
void |
setMaxChannels(int maxchannels)
Configura a propriedade maxchannels do barramento.
|
void |
setOilLogLevel(short oilLoglevel)
Configura a propriedade oilloglevel do barramento.
|
List<tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityCategoryDesc> getCategories() throws tecgraf.openbus.core.v2_0.services.ServiceFailure, TRANSIENT, COMM_FAILURE, NO_PERMISSION
tecgraf.openbus.core.v2_0.services.ServiceFailureTRANSIENTCOMM_FAILURENO_PERMISSIONtecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityCategory createCategory(String categoryID, String categoryName) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation, tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityCategoryAlreadyExists
categoryID - ID da nova categoria.categoryName - Nome da nova categoria.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationtecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityCategoryAlreadyExistsvoid removeCategory(String categoryID) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation, tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityCategoryInUse
categoryID - ID da categoria a ser removida.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationtecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityCategoryInUseList<tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.RegisteredEntityDesc> getEntities() throws tecgraf.openbus.core.v2_0.services.ServiceFailure, TRANSIENT, COMM_FAILURE, NO_PERMISSION
tecgraf.openbus.core.v2_0.services.ServiceFailureTRANSIENTCOMM_FAILURENO_PERMISSIONtecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.RegisteredEntity createEntity(String entityID, String entityName, String categoryID) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation, tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityAlreadyRegistered
entityID - ID da nova entidade.entityName - Nome da nova entidade.categoryID - ID de alguma categoria já cadastrada.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationtecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityAlreadyRegisteredboolean removeEntity(String entityID) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
entityID - ID da entidade a ser removida.true caso a entidade foi removida, e
false caso contrário.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationList<String> getEntitiesWithCertificate() throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationvoid registerCertificate(String entityID, byte[] certificate) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation, tecgraf.openbus.core.v2_0.services.access_control.admin.v1_0.InvalidCertificate
entityID - ID da entidade.certificate - Certificado.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationtecgraf.openbus.core.v2_0.services.access_control.admin.v1_0.InvalidCertificatevoid removeCertificate(String entityID) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
entityID - ID da entidade a ser removida.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationList<String> getInterfaces() throws tecgraf.openbus.core.v2_0.services.ServiceFailure, TRANSIENT, COMM_FAILURE, NO_PERMISSION
tecgraf.openbus.core.v2_0.services.ServiceFailureTRANSIENTCOMM_FAILURENO_PERMISSIONboolean createInterface(String interfaceName) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation, tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.InvalidInterface
interfaceName - Nome da nova interface.true se a interface cadastrada inexistia no barramento;
false em caso contrário.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationtecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.InvalidInterfacevoid removeInterface(String interfaceName) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation, tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.InterfaceInUse
interfaceName - Nome da interface a ser removida.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationtecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.InterfaceInUseMap<tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.RegisteredEntityDesc,List<String>> getAuthorizations() throws tecgraf.openbus.core.v2_0.services.ServiceFailure
tecgraf.openbus.core.v2_0.services.ServiceFailureboolean setAuthorization(String entityID, String interfaceName) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation, tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.InvalidInterface
entityID - ID da entidade a receber autorização.interfaceName - Interface a ser autorizada.true se a autorização cadastrada inexistia no barramento;
false em caso contrário.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationtecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.InvalidInterfacevoid revokeAuthorization(String entityID, String interfaceName) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation, tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.InvalidInterface, tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.AuthorizationInUse
entityID - ID da entidade a ter autorização removida.interfaceName - Interface a ser autorizada.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationtecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.InvalidInterfacetecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.AuthorizationInUseList<tecgraf.openbus.core.v2_0.services.offer_registry.ServiceOfferDesc> getOffers() throws tecgraf.openbus.core.v2_0.services.ServiceFailure, TRANSIENT, COMM_FAILURE, NO_PERMISSION
tecgraf.openbus.core.v2_0.services.ServiceFailureTRANSIENTCOMM_FAILURENO_PERMISSIONvoid removeOffer(tecgraf.openbus.core.v2_0.services.offer_registry.ServiceOfferDesc desc)
throws tecgraf.openbus.core.v2_0.services.ServiceFailure,
tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
desc - Descrição da oferta.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationList<tecgraf.openbus.core.v2_0.services.access_control.LoginInfo> getLogins() throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationvoid invalidateLogin(tecgraf.openbus.core.v2_0.services.access_control.LoginInfo loginInfo)
throws tecgraf.openbus.core.v2_0.services.ServiceFailure,
tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
loginInfo - Informação de login.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationboolean isReconfigurationCapable()
true caso o barramento forneça a interface de reconfiguração
dinâmica e false caso contrário.void reloadConfigsFile()
throws tecgraf.openbus.core.v2_0.services.ServiceFailure,
tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationvoid grantAdminTo(List<String> users) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
users - Lista de entidades que receberá direitos de administração.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationvoid revokeAdminFrom(List<String> users) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
users - Lista de entidades que perderá direitos de administração.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationList<String> getAdmins() throws tecgraf.openbus.core.v2_0.services.ServiceFailure
tecgraf.openbus.core.v2_0.services.ServiceFailurevoid addValidator(String validator) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
validator - Identificação do validador.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationvoid delValidator(String validator) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
validator - Identificação do validador.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationList<String> getValidators() throws tecgraf.openbus.core.v2_0.services.ServiceFailure
tecgraf.openbus.core.v2_0.services.ServiceFailurevoid setMaxChannels(int maxchannels)
throws tecgraf.openbus.core.v2_0.services.ServiceFailure,
tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
maxchannels - Número máximo de canais a serem utilizados.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationint getMaxChannels()
throws tecgraf.openbus.core.v2_0.services.ServiceFailure
tecgraf.openbus.core.v2_0.services.ServiceFailurevoid setLogLevel(short loglevel)
throws tecgraf.openbus.core.v2_0.services.ServiceFailure,
tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
loglevel - Nível de log do barramento.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationshort getLogLevel()
throws tecgraf.openbus.core.v2_0.services.ServiceFailure
tecgraf.openbus.core.v2_0.services.ServiceFailurevoid setOilLogLevel(short oilLoglevel)
throws tecgraf.openbus.core.v2_0.services.ServiceFailure,
tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
oilLoglevel - Nível de log do middleware OiL no barramento.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationshort getOilLogLevel()
throws tecgraf.openbus.core.v2_0.services.ServiceFailure
tecgraf.openbus.core.v2_0.services.ServiceFailureCopyright © 2016. All rights reserved.