Class ResourceRef

  • All Implemented Interfaces:
    Resource

    public class ResourceRef
    extends Object
    implements Resource
    A resource reference. Useful when a link to the real Resource object is not available.
    • Method Detail

      • setIdentifier

        public void setIdentifier​(String identifier)
      • setResourceType

        public void setResourceType​(ResourceType type)
      • getDependencies

        public List<Resource> getDependencies()
        Description copied from interface: Resource
        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.

        Specified by:
        getDependencies in interface Resource
        Returns:
        A list of resources, never null.
      • setDependencies

        public void setDependencies​(List<Resource> deps)