Package com.soffid.iam.service
Interface NetworkService
-
public interface NetworkService
Service NetworkService
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canLogin(String user, String host)
Operation canLoginAdministratorAuthorizationToAccessHost
create(AdministratorAuthorizationToAccessHost autoritzacioAccesComAdministrador)
Operation createHost
create(Host maquina)
Operation createHostAlias
create(HostAlias aliasMaquina)
Operation createNetwork
create(Network xarxa)
Operation createNetworkAuthorization
create(NetworkAuthorization accessList)
Operation createOsType
create(OsType osType)
Operation createvoid
delete(Host maquina)
Operation deletevoid
delete(HostAlias aliasMaquina)
Operation deletevoid
delete(Network xarxa)
Operation deletevoid
delete(NetworkAuthorization accessList)
Operation deletevoid
delete(OsType osType)
Operation deleteLong
findAccessLevelByHostNameAndNetworkName(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 findHostByFilterUnrestrictedHost
findHostById(Long idMaquina)
Operation findHostByIdHost
findHostByIp(String ip)
Operation findHostByIpHost
findHostByName(String nom)
Operation findHostByNameHost
findHostBySerialNumber(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 findIdentitiesByNameIdentity
findIdentityByName(String codi)
Operation findIdentityByNameList<NetworkAuthorization>
findNetworkAuthorizationsByGroupName(String codiGrup)
Operation findNetworkAuthorizationsByGroupNameNetworkAuthorization
findNetworkAuthorizationsByNetworkNameAndIdentityName(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 findNetworkByFilterNetwork
findNetworkByIpAddress(String ipAdress)
Operation findNetworkByIpAddressNetwork
findNetworkByName(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 findOfficeHostUserByFilterOsType
findOSTypeById(Long osId)
Operation findOSTypeByIdOsType
findOSTypeByName(String osName)
Operation findOSTypeByNameList<Session>
findSessionsByHostName(String codiMaquina)
Operation findSessionsByHostNameList<NetworkAuthorization>
getACL(Network xarxa)
Operation getACLLong
getAvailableIPs(String codiXarxa)
Operation getAvailableIPsString
getFirstAvailableIP(String codiXarxa)
Operation getFirstAvailableIPList<Host>
getHomeServers()
Operation getHomeServersString[]
getHostAdminUserAndPassword(String nomMaquina)
Operation getHostAdminUserAndPasswordList<Host>
getHosts()
Operation getHostsList<Host>
getMailServers()
Operation getMailServersList<Network>
getNetworks()
Operation getNetworksLong
getNotAvailableIPs(String codiXarxa)
Operation getNotAvailableIPsList<Host>
getProfileServers()
Operation getProfileServersString[]
getTasks(String nomMaquina)
Operation getTasksBoolean
hasAnyACLNetworks(String codiUsuari)
Operation hasAnyACLNetworksBoolean
hasManagedNetwork()
Operation hasManagedNetworkBoolean
hasNetworkAccess(String codiUsuari, String codiXarxa)
Operation hasNetworkAccessBoolean
isManaged(String codiXarxa)
Operation isManagedBoolean
launchVNC(Long sessioId)
Operation launchVNCHost
registerDynamicIP(String nomMaquina, String ip, String serialNumber)
Operation registerDynamicIPAdministratorAuthorizationToAccessHost
revokeAdministratorAccessHost(AdministratorAuthorizationToAccessHost autoritzacioAccesComAdministrador)
Operation revokeAdministratorAccessHostvoid
setAdministratorPassword(String nomMaquina, String adminUser, String adminPass)
Operation setAdministratorPasswordvoid
update(Host maquina)
Operation updatevoid
update(HostAlias aliasMaquina)
Operation updatevoid
update(Network xarxa)
Operation updateNetworkAuthorization
update(NetworkAuthorization accessList)
Operation updatevoid
update(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:
InternalErrorException
UnknownHostException
UnknownNetworkException
-
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
-
-