Interface ProtocolService

    • Method Detail

      • find

        @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ"})
        Protocol find​(Protocol protocol)
        Description copied from interface: BaseReadOnlyService
        Does a search for the entity in the persistent storage
        Specified by:
        find in interface BaseReadOnlyService<Protocol>
        Parameters:
        protocol - the entity to be searched for
        Returns:
        the version of entity retrieved from the persistent storage, if found, otherwise null.
      • findOrCreate

        @Secured({"GROUP_USER","AFTER_ACL_READ"})
        Protocol findOrCreate​(Protocol protocol)
        Description copied from interface: BaseImmutableService
        Does a search for the entity in the persistent storage, and if not found, creates it.
        Specified by:
        findOrCreate in interface BaseImmutableService<Protocol>
        Parameters:
        protocol - the entity to look for, and create if not found.
        Returns:
        the entity retrieved from the persistent storage, either found or created.
      • loadAll

        @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COLLECTION_READ"})
        Collection<Protocol> loadAll()
        Description copied from interface: BaseReadOnlyService
        Loads all the entities of specific type.
        Specified by:
        loadAll in interface BaseReadOnlyService<Protocol>
        Returns:
        collection of all entities currently available in the persistent storage.
      • remove

        @Secured("GROUP_ADMIN")
        void remove​(Long id)
        Description copied from interface: BaseImmutableService
        Removes the entity with given ID from the persistent storage.
        Specified by:
        remove in interface BaseImmutableService<Protocol>
        Parameters:
        id - the ID of entity to be removed.
      • remove

        @Secured({"GROUP_USER","ACL_SECURABLE_EDIT"})
        void remove​(Protocol protocol)
        Description copied from interface: BaseImmutableService
        Removes the given entity from the persistent storage.
        Specified by:
        remove in interface BaseImmutableService<Protocol>
        Parameters:
        protocol - the entity to be removed.