Class PortServiceImpl

    • Constructor Detail

      • PortServiceImpl

        public PortServiceImpl()
    • Method Detail

      • list

        public List<? extends Port> list()
        Lists all Ports authorized by the current Tenant
        Specified by:
        list in interface PortService
        Returns:
        the list of ports
      • list

        public List<? extends Port> list​(PortListOptions options)
        Description copied from interface: PortService
        Lists all Ports authorized by the current Tenant
        Specified by:
        list in interface PortService
        Parameters:
        options - filtering options
        Returns:
        the list of ports
      • get

        public Port get​(String portId)
        Gets the Port by ID
        Specified by:
        get in interface PortService
        Parameters:
        portId - the port identifier
        Returns:
        the port or null if not found
      • delete

        public ActionResponse delete​(String portId)
        Delete a Port by ID
        Specified by:
        delete in interface PortService
        Parameters:
        portId - the port identifier to delete
        Returns:
        the action response
      • create

        public Port create​(Port port)
        Creates a new Port
        Specified by:
        create in interface PortService
        Parameters:
        port - the port to create
        Returns:
        the newly create Port
      • create

        public List<? extends Port> create​(List<? extends Port> ports)
        Creates new Ports
        Specified by:
        create in interface PortService
        Parameters:
        ports - the ports to create
        Returns:
        the newly created Ports
      • update

        public Port update​(Port port)
        Updates an existing Port. The Port identifier must be set on the port object to be successful
        Specified by:
        update in interface PortService
        Parameters:
        port - the port to update
        Returns:
        the updated port