Class GroupResource

    • Constructor Detail

      • GroupResource

        public GroupResource​(Group group,
                             java.lang.String path,
                             ResourceResolver resolver)
        Deprecated.

        Constructor for GroupResource.

        Parameters:
        group - a Group object.
        path - a String object.
        resolver - a ResourceResolver object.
    • Method Detail

      • getResourceSuperType

        public java.lang.String getResourceSuperType()
        Deprecated.
        Sets the Resource-SuperType to com.day.cq.security.resource.AuthorizableResource
        Returns:
        a String object.
        See Also:
        Resource.getResourceSuperType()
      • adaptTo

        public <AdapterType> AdapterType adaptTo​(java.lang.Class<AdapterType> type)
        Deprecated.
        Calls into the registered AdapterManager to adapt this object to the desired type.

        This method implements a cache of adapters to improve performance. That is repeated calls to this method with the same class will result in the same object to be returned. Adds adaptability to Group

        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:
        SlingAdaptable.adaptTo(Class)