Package com.soffid.iam.service
Interface NetworkService
-
public interface NetworkServiceService NetworkService
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanLogin(String user, String host)Operation canLoginAdministratorAuthorizationToAccessHostcreate(AdministratorAuthorizationToAccessHost autoritzacioAccesComAdministrador)Operation createHostcreate(Host maquina)Operation createHostAliascreate(HostAlias aliasMaquina)Operation createNetworkcreate(Network xarxa)Operation createNetworkAuthorizationcreate(NetworkAuthorization accessList)Operation createOsTypecreate(OsType osType)Operation createvoiddelete(Host maquina)Operation deletevoiddelete(HostAlias aliasMaquina)Operation deletevoiddelete(Network xarxa)Operation deletevoiddelete(NetworkAuthorization accessList)Operation deletevoiddelete(OsType osType)Operation deleteLongfindAccessLevelByHostNameAndNetworkName(String nomMaquina, String codiXarxa)Operation findAccessLevelByHostNameAndNetworkNameList<HostAlias>findAliasByHostName(String nomMaquina)Operation findAliasByHostNameList<NetworkAuthorization>findALLNetworkAuthorizationsByUserName(String codiUsuari)Operation findALLNetworkAuthorizationsByUserNameList<OsType>findAllOSTypes()Operation findAllOSTypesList<AdministratorAuthorizationToAccessHost>findAuthorizationsToAccessHostWithAdministratorRigthsByHostsAndRequestDate(String nomHost, String dataPeticio, String dataCaducitat)Operation findAuthorizationsToAccessHostWithAdministratorRigthsByHostsAndRequestDateList<Host>findHostByFilter(String nom, String sistemaOperatiu, String adreca, String dhcp, String correu, String ofimatica, String alias, String mac, String descripcio, String xarxa, String usuari, Boolean restringeixCerca)Operation findHostByFilterList<Host>findHostByFilterUnrestricted(String nom, String sistemaOperatiu, String adreca, String dhcp, String correu, String ofimatica, String alias, String mac, String descripcio, String xarxa, String usuari, Boolean restringeixCerca)Operation findHostByFilterUnrestrictedHostfindHostById(Long idMaquina)Operation findHostByIdHostfindHostByIp(String ip)Operation findHostByIpHostfindHostByName(String nom)Operation findHostByNameHostfindHostBySerialNumber(String serialNumber)Operation findHostBySerialNumberPagedResult<Host>findHostByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize)Operation findHostByTextAndJsonQueryAsyncList<Host>findHostByTextAndJsonQueryAsync(String text, String jsonQuery)Operation findHostByTextAndJsonQueryAsyncList<Host>findHostsByNetwork(Network xarxa)Operation findHostsByNetworkList<Host>findHostsByNetwork_Discovery(Network parent, String text)Operation findHostsByNetwork_Discovery Finds all hosts or search contained host by name or description or IPList<Identity>findIdentitiesByName(String codi)Operation findIdentitiesByNameIdentityfindIdentityByName(String codi)Operation findIdentityByNameList<NetworkAuthorization>findNetworkAuthorizationsByGroupName(String codiGrup)Operation findNetworkAuthorizationsByGroupNameNetworkAuthorizationfindNetworkAuthorizationsByNetworkNameAndIdentityName(String codiXarxa, String codiIdentitat)Operation findNetworkAuthorizationsByNetworkNameAndIdentityNameList<NetworkAuthorization>findNetworkAuthorizationsByRoleName(String nomRol)Operation findNetworkAuthorizationsByRoleNameList<NetworkAuthorization>findNetworkAuthorizationsByUserName(String codiUsuari)Operation findNetworkAuthorizationsByUserNameList<Network>findNetworkByFilter(String codi, String adreca, String descripcio, String mascara, String normalitzada, String dhcp, String maquina)Operation findNetworkByFilterNetworkfindNetworkByIpAddress(String ipAdress)Operation findNetworkByIpAddressNetworkfindNetworkByName(String codi)Operation findNetworkByNameList<Network>findNetworkByText_Discovery(String text)Operation findNetworkByText_Discovery Finds network by network name or network description or network IP or contained host name or description or IPPagedResult<Network>findNetworkByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize)Operation findNetworkByTextAndJsonQueryAsyncList<Network>findNetworkByTextAndJsonQueryAsync(String text, String jsonQuery)Operation findNetworkByTextAndJsonQueryAsyncList<Host>findOfficeHostUserByFilter(String nom, String sistemaOperatiu, String adreca, String dhcp, String correu, String ofimatica, String alias, String mac, String descripcio, String xarxa, String usuari, Boolean restringeixCerca, String servidorImpressores)Operation findOfficeHostUserByFilterOsTypefindOSTypeById(Long osId)Operation findOSTypeByIdOsTypefindOSTypeByName(String osName)Operation findOSTypeByNameList<Session>findSessionsByHostName(String codiMaquina)Operation findSessionsByHostNameList<NetworkAuthorization>getACL(Network xarxa)Operation getACLLonggetAvailableIPs(String codiXarxa)Operation getAvailableIPsStringgetFirstAvailableIP(String codiXarxa)Operation getFirstAvailableIPList<Host>getHomeServers()Operation getHomeServersString[]getHostAdminUserAndPassword(String nomMaquina)Operation getHostAdminUserAndPasswordList<Host>getHosts()Operation getHostsList<Host>getMailServers()Operation getMailServersList<Network>getNetworks()Operation getNetworksLonggetNotAvailableIPs(String codiXarxa)Operation getNotAvailableIPsList<Host>getProfileServers()Operation getProfileServersString[]getTasks(String nomMaquina)Operation getTasksBooleanhasAnyACLNetworks(String codiUsuari)Operation hasAnyACLNetworksBooleanhasManagedNetwork()Operation hasManagedNetworkBooleanhasNetworkAccess(String codiUsuari, String codiXarxa)Operation hasNetworkAccessBooleanisManaged(String codiXarxa)Operation isManagedBooleanlaunchVNC(Long sessioId)Operation launchVNCHostregisterDynamicIP(String nomMaquina, String ip, String serialNumber)Operation registerDynamicIPAdministratorAuthorizationToAccessHostrevokeAdministratorAccessHost(AdministratorAuthorizationToAccessHost autoritzacioAccesComAdministrador)Operation revokeAdministratorAccessHostvoidsetAdministratorPassword(String nomMaquina, String adminUser, String adminPass)Operation setAdministratorPasswordvoidupdate(Host maquina)Operation updatevoidupdate(HostAlias aliasMaquina)Operation updatevoidupdate(Network xarxa)Operation updateNetworkAuthorizationupdate(NetworkAuthorization accessList)Operation updatevoidupdate(OsType osType)Operation update
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
canLogin
boolean canLogin(String user, String host) throws InternalErrorException
Operation canLogin- Parameters:
user-host-- Returns:
- Throws:
InternalErrorException
-
findHostByTextAndJsonQueryAsync
AsyncList<Host> findHostByTextAndJsonQueryAsync(String text, String jsonQuery) throws InternalErrorException
Operation findHostByTextAndJsonQueryAsync- Parameters:
text-jsonQuery-- Returns:
- Throws:
InternalErrorException
-
findNetworkByTextAndJsonQueryAsync
AsyncList<Network> findNetworkByTextAndJsonQueryAsync(String text, String jsonQuery) throws InternalErrorException
Operation findNetworkByTextAndJsonQueryAsync- Parameters:
text-jsonQuery-- Returns:
- Throws:
InternalErrorException
-
findHostByTextAndJsonQuery
PagedResult<Host> findHostByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) throws InternalErrorException
Operation findHostByTextAndJsonQuery- Parameters:
text-jsonQuery-start-pageSize-- Returns:
- Throws:
InternalErrorException
-
findNetworkByTextAndJsonQuery
PagedResult<Network> findNetworkByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) throws InternalErrorException
Operation findNetworkByTextAndJsonQuery- Parameters:
text-jsonQuery-start-pageSize-- Returns:
- Throws:
InternalErrorException
-
create
HostAlias create(HostAlias aliasMaquina) throws InternalErrorException, InternalErrorException
Operation create- Parameters:
aliasMaquina-- Returns:
- Throws:
InternalErrorException
-
create
AdministratorAuthorizationToAccessHost create(AdministratorAuthorizationToAccessHost autoritzacioAccesComAdministrador) throws InternalErrorException, InternalErrorException
Operation create- Parameters:
autoritzacioAccesComAdministrador-- Returns:
- Throws:
InternalErrorException
-
revokeAdministratorAccessHost
AdministratorAuthorizationToAccessHost revokeAdministratorAccessHost(AdministratorAuthorizationToAccessHost autoritzacioAccesComAdministrador) throws InternalErrorException, InternalErrorException
Operation revokeAdministratorAccessHost- Parameters:
autoritzacioAccesComAdministrador-- Returns:
- Throws:
InternalErrorException
-
findIdentityByName
Identity findIdentityByName(String codi) throws InternalErrorException, InternalErrorException
Operation findIdentityByName- Parameters:
codi-- Returns:
- Throws:
InternalErrorException
-
create
Host create(Host maquina) throws InternalErrorException, InternalErrorException
Operation create- Parameters:
maquina-- Returns:
- Throws:
InternalErrorException
-
findHostById
Host findHostById(Long idMaquina) throws InternalErrorException, InternalErrorException
Operation findHostById- Parameters:
idMaquina-- Returns:
- Throws:
InternalErrorException
-
findHostByIp
Host findHostByIp(String ip) throws InternalErrorException, InternalErrorException
Operation findHostByIp- Parameters:
ip-- Returns:
- Throws:
InternalErrorException
-
findHostByName
Host findHostByName(String nom) throws InternalErrorException, InternalErrorException
Operation findHostByName- Parameters:
nom-- Returns:
- Throws:
InternalErrorException
-
findHostBySerialNumber
Host findHostBySerialNumber(String serialNumber) throws InternalErrorException, InternalErrorException
Operation findHostBySerialNumber- Parameters:
serialNumber-- Returns:
- Throws:
InternalErrorException
-
registerDynamicIP
Host registerDynamicIP(String nomMaquina, String ip, String serialNumber) throws InternalErrorException, InternalErrorException, UnknownHostException, UnknownNetworkException
Operation registerDynamicIP- Parameters:
nomMaquina-ip-serialNumber-- Returns:
- Throws:
InternalErrorExceptionUnknownHostExceptionUnknownNetworkException
-
create
NetworkAuthorization create(NetworkAuthorization accessList) throws InternalErrorException, InternalErrorException
Operation create- Parameters:
accessList-- Returns:
- Throws:
InternalErrorException
-
findNetworkAuthorizationsByNetworkNameAndIdentityName
NetworkAuthorization findNetworkAuthorizationsByNetworkNameAndIdentityName(String codiXarxa, String codiIdentitat) throws InternalErrorException, InternalErrorException
Operation findNetworkAuthorizationsByNetworkNameAndIdentityName- Parameters:
codiXarxa-codiIdentitat-- Returns:
- Throws:
InternalErrorException
-
update
NetworkAuthorization update(NetworkAuthorization accessList) throws InternalErrorException, InternalErrorException
Operation update- Parameters:
accessList-- Returns:
- Throws:
InternalErrorException
-
create
OsType create(OsType osType) throws InternalErrorException, InternalErrorException
Operation create- Parameters:
osType-- Returns:
- Throws:
InternalErrorException
-
findOSTypeById
OsType findOSTypeById(Long osId) throws InternalErrorException, InternalErrorException
Operation findOSTypeById- Parameters:
osId-- Returns:
- Throws:
InternalErrorException
-
findOSTypeByName
OsType findOSTypeByName(String osName) throws InternalErrorException, InternalErrorException
Operation findOSTypeByName- Parameters:
osName-- Returns:
- Throws:
InternalErrorException
-
create
Network create(Network xarxa) throws InternalErrorException, InternalErrorException
Operation create- Parameters:
xarxa-- Returns:
- Throws:
InternalErrorException
-
findNetworkByIpAddress
Network findNetworkByIpAddress(String ipAdress) throws InternalErrorException
Operation findNetworkByIpAddress- Parameters:
ipAdress-- Returns:
- Throws:
InternalErrorException
-
findNetworkByName
Network findNetworkByName(String codi) throws InternalErrorException, InternalErrorException
Operation findNetworkByName- Parameters:
codi-- Returns:
- Throws:
InternalErrorException
-
isManaged
Boolean isManaged(String codiXarxa) throws InternalErrorException, InternalErrorException
Operation isManaged- Parameters:
codiXarxa-- Returns:
- Throws:
InternalErrorException
-
hasAnyACLNetworks
Boolean hasAnyACLNetworks(String codiUsuari) throws InternalErrorException, InternalErrorException
Operation hasAnyACLNetworks- Parameters:
codiUsuari-- Returns:
- Throws:
InternalErrorException
-
launchVNC
Boolean launchVNC(Long sessioId) throws InternalErrorException, InternalErrorException
Operation launchVNC- Parameters:
sessioId-- Returns:
- Throws:
InternalErrorException
-
hasNetworkAccess
Boolean hasNetworkAccess(String codiUsuari, String codiXarxa) throws InternalErrorException, InternalErrorException
Operation hasNetworkAccess- Parameters:
codiUsuari-codiXarxa-- Returns:
- Throws:
InternalErrorException
-
hasManagedNetwork
Boolean hasManagedNetwork() throws InternalErrorException, InternalErrorException
Operation hasManagedNetwork- Returns:
- Throws:
InternalErrorException
-
findAccessLevelByHostNameAndNetworkName
Long findAccessLevelByHostNameAndNetworkName(String nomMaquina, String codiXarxa) throws InternalErrorException, InternalErrorException
Operation findAccessLevelByHostNameAndNetworkName- Parameters:
nomMaquina-codiXarxa-- Returns:
- Throws:
InternalErrorException
-
getAvailableIPs
Long getAvailableIPs(String codiXarxa) throws InternalErrorException, InternalErrorException
Operation getAvailableIPs- Parameters:
codiXarxa-- Returns:
- Throws:
InternalErrorException
-
getNotAvailableIPs
Long getNotAvailableIPs(String codiXarxa) throws InternalErrorException, InternalErrorException
Operation getNotAvailableIPs- Parameters:
codiXarxa-- Returns:
- Throws:
InternalErrorException
-
getFirstAvailableIP
String getFirstAvailableIP(String codiXarxa) throws InternalErrorException, InternalErrorException
Operation getFirstAvailableIP- Parameters:
codiXarxa-- Returns:
- Throws:
InternalErrorException
-
getTasks
String[] getTasks(String nomMaquina) throws InternalErrorException, InternalErrorException
Operation getTasks- Parameters:
nomMaquina-- Returns:
- Throws:
InternalErrorException
-
getHostAdminUserAndPassword
String[] getHostAdminUserAndPassword(String nomMaquina) throws InternalErrorException, InternalErrorException
Operation getHostAdminUserAndPassword- Parameters:
nomMaquina-- Returns:
- Throws:
InternalErrorException
-
findALLNetworkAuthorizationsByUserName
List<NetworkAuthorization> findALLNetworkAuthorizationsByUserName(String codiUsuari) throws InternalErrorException, InternalErrorException
Operation findALLNetworkAuthorizationsByUserName- Parameters:
codiUsuari-- Returns:
- Throws:
InternalErrorException
-
findAliasByHostName
List<HostAlias> findAliasByHostName(String nomMaquina) throws InternalErrorException, InternalErrorException
Operation findAliasByHostName- Parameters:
nomMaquina-- Returns:
- Throws:
InternalErrorException
-
findAllOSTypes
List<OsType> findAllOSTypes() throws InternalErrorException, InternalErrorException
Operation findAllOSTypes- Returns:
- Throws:
InternalErrorException
-
findAuthorizationsToAccessHostWithAdministratorRigthsByHostsAndRequestDate
List<AdministratorAuthorizationToAccessHost> findAuthorizationsToAccessHostWithAdministratorRigthsByHostsAndRequestDate(String nomHost, String dataPeticio, String dataCaducitat) throws InternalErrorException, InternalErrorException
Operation findAuthorizationsToAccessHostWithAdministratorRigthsByHostsAndRequestDate- Parameters:
nomHost-dataPeticio-dataCaducitat-- Returns:
- Throws:
InternalErrorException
-
findHostsByNetwork_Discovery
List<Host> findHostsByNetwork_Discovery(Network parent, String text) throws InternalErrorException
Operation findHostsByNetwork_Discovery Finds all hosts or search contained host by name or description or IP- Parameters:
parent-text-- Returns:
- Throws:
InternalErrorException
-
findIdentitiesByName
List<Identity> findIdentitiesByName(String codi) throws InternalErrorException, InternalErrorException
Operation findIdentitiesByName- Parameters:
codi-- Returns:
- Throws:
InternalErrorException
-
findHostByFilter
List<Host> findHostByFilter(String nom, String sistemaOperatiu, String adreca, String dhcp, String correu, String ofimatica, String alias, String mac, String descripcio, String xarxa, String usuari, Boolean restringeixCerca) throws InternalErrorException, InternalErrorException
Operation findHostByFilter- Parameters:
nom-sistemaOperatiu-adreca-dhcp-correu-ofimatica-alias-mac-descripcio-xarxa-usuari-restringeixCerca-- Returns:
- Throws:
InternalErrorException
-
findHostByFilterUnrestricted
List<Host> findHostByFilterUnrestricted(String nom, String sistemaOperatiu, String adreca, String dhcp, String correu, String ofimatica, String alias, String mac, String descripcio, String xarxa, String usuari, Boolean restringeixCerca) throws InternalErrorException, InternalErrorException
Operation findHostByFilterUnrestricted- Parameters:
nom-sistemaOperatiu-adreca-dhcp-correu-ofimatica-alias-mac-descripcio-xarxa-usuari-restringeixCerca-- Returns:
- Throws:
InternalErrorException
-
findOfficeHostUserByFilter
List<Host> findOfficeHostUserByFilter(String nom, String sistemaOperatiu, String adreca, String dhcp, String correu, String ofimatica, String alias, String mac, String descripcio, String xarxa, String usuari, Boolean restringeixCerca, String servidorImpressores) throws InternalErrorException, InternalErrorException
Operation findOfficeHostUserByFilter- Parameters:
nom-sistemaOperatiu-adreca-dhcp-correu-ofimatica-alias-mac-descripcio-xarxa-usuari-restringeixCerca-servidorImpressores-- Returns:
- Throws:
InternalErrorException
-
findHostsByNetwork
List<Host> findHostsByNetwork(Network xarxa) throws InternalErrorException, InternalErrorException
Operation findHostsByNetwork- Parameters:
xarxa-- Returns:
- Throws:
InternalErrorException
-
findNetworkAuthorizationsByGroupName
List<NetworkAuthorization> findNetworkAuthorizationsByGroupName(String codiGrup) throws InternalErrorException, InternalErrorException
Operation findNetworkAuthorizationsByGroupName- Parameters:
codiGrup-- Returns:
- Throws:
InternalErrorException
-
findNetworkAuthorizationsByUserName
List<NetworkAuthorization> findNetworkAuthorizationsByUserName(String codiUsuari) throws InternalErrorException, InternalErrorException
Operation findNetworkAuthorizationsByUserName- Parameters:
codiUsuari-- Returns:
- Throws:
InternalErrorException
-
findNetworkAuthorizationsByRoleName
List<NetworkAuthorization> findNetworkAuthorizationsByRoleName(String nomRol) throws InternalErrorException, InternalErrorException
Operation findNetworkAuthorizationsByRoleName- Parameters:
nomRol-- Returns:
- Throws:
InternalErrorException
-
findNetworkByText_Discovery
List<Network> findNetworkByText_Discovery(String text) throws InternalErrorException
Operation findNetworkByText_Discovery Finds network by network name or network description or network IP or contained host name or description or IP- Parameters:
text-- Returns:
- Throws:
InternalErrorException
-
findSessionsByHostName
List<Session> findSessionsByHostName(String codiMaquina) throws InternalErrorException, InternalErrorException
Operation findSessionsByHostName- Parameters:
codiMaquina-- Returns:
- Throws:
InternalErrorException
-
findNetworkByFilter
List<Network> findNetworkByFilter(String codi, String adreca, String descripcio, String mascara, String normalitzada, String dhcp, String maquina) throws InternalErrorException, InternalErrorException
Operation findNetworkByFilter- Parameters:
codi-adreca-descripcio-mascara-normalitzada-dhcp-maquina-- Returns:
- Throws:
InternalErrorException
-
getACL
List<NetworkAuthorization> getACL(Network xarxa) throws InternalErrorException, InternalErrorException
Operation getACL- Parameters:
xarxa-- Returns:
- Throws:
InternalErrorException
-
getHosts
List<Host> getHosts() throws InternalErrorException, InternalErrorException
Operation getHosts- Returns:
- Throws:
InternalErrorException
-
getMailServers
List<Host> getMailServers() throws InternalErrorException, InternalErrorException
Operation getMailServers- Returns:
- Throws:
InternalErrorException
-
getHomeServers
List<Host> getHomeServers() throws InternalErrorException, InternalErrorException
Operation getHomeServers- Returns:
- Throws:
InternalErrorException
-
getProfileServers
List<Host> getProfileServers() throws InternalErrorException, InternalErrorException
Operation getProfileServers- Returns:
- Throws:
InternalErrorException
-
getNetworks
List<Network> getNetworks() throws InternalErrorException, InternalErrorException
Operation getNetworks- Returns:
- Throws:
InternalErrorException
-
delete
void delete(HostAlias aliasMaquina) throws InternalErrorException, InternalErrorException
Operation delete- Parameters:
aliasMaquina-- Throws:
InternalErrorException
-
delete
void delete(Host maquina) throws InternalErrorException, InternalErrorException
Operation delete- Parameters:
maquina-- Throws:
InternalErrorException
-
delete
void delete(NetworkAuthorization accessList) throws InternalErrorException, InternalErrorException
Operation delete- Parameters:
accessList-- Throws:
InternalErrorException
-
delete
void delete(OsType osType) throws InternalErrorException, InternalErrorException
Operation delete- Parameters:
osType-- Throws:
InternalErrorException
-
delete
void delete(Network xarxa) throws InternalErrorException, InternalErrorException
Operation delete- Parameters:
xarxa-- Throws:
InternalErrorException
-
setAdministratorPassword
void setAdministratorPassword(String nomMaquina, String adminUser, String adminPass) throws InternalErrorException, InternalErrorException
Operation setAdministratorPassword- Parameters:
nomMaquina-adminUser-adminPass-- Throws:
InternalErrorException
-
update
void update(HostAlias aliasMaquina) throws InternalErrorException, InternalErrorException
Operation update- Parameters:
aliasMaquina-- Throws:
InternalErrorException
-
update
void update(Host maquina) throws InternalErrorException, InternalErrorException
Operation update- Parameters:
maquina-- Throws:
InternalErrorException
-
update
void update(OsType osType) throws InternalErrorException, InternalErrorException
Operation update- Parameters:
osType-- Throws:
InternalErrorException
-
update
void update(Network xarxa) throws InternalErrorException, InternalErrorException
Operation update- Parameters:
xarxa-- Throws:
InternalErrorException
-
-