Interface Resource

    • Method Detail

      • getIdentifier

        String getIdentifier()
        An identifier that is unique among all the resources of the same type (see getResourceType()).
      • getResourceType

        default ResourceType getResourceType()
        Get the resource type classifier
      • getDependencies

        default List<Resource> getDependencies()
        A list of dependent resources.

        The dependency list is used for instance to determine if a user can access a given resource. Should the access to all its dependencies is denied, it is denied for this instance as well.

        Returns:
        A list of resources, never null.
      • isType

        default boolean isType​(String typeName)
        Check if this resource is of the provided type. The type name is used here so this method can be used on instances from external (GWT-compiled) scripts (enum equals and instanceof doesn't work across script boundaries).
        Parameters:
        typeName - the resource type's name
        Returns:
        true if the resource has the provided type, otherwise false.