Class UserResource

    • Constructor Detail

      • UserResource

        public UserResource​(User user,
                            java.lang.String path,
                            ResourceResolver resolver)
        Deprecated.
    • Method Detail

      • getResourceSuperType

        public java.lang.String getResourceSuperType()
        Deprecated.
        Sets the Resource-SuperType to com.day.cq.security.resource.AuthorizableResource
        Returns:
        The super type of the resource or null.
        See Also:
        Resource.getResourceSuperType()
      • adaptTo

        public <AdapterType> AdapterType adaptTo​(java.lang.Class<AdapterType> type)
        Deprecated.
        Adds adapter-support for the User
        Specified by:
        adaptTo in interface Adaptable
        Overrides:
        adaptTo in class AuthorizableResource
        Type Parameters:
        AdapterType - The generic type to which this resource is adapted to
        Parameters:
        type - The Class object of the target type, such as javax.jcr.Node.class or java.io.File.class
        Returns:
        The adapter target or null if the resource cannot adapt to the requested type
        See Also:
        Resource.getResourceSuperType()