All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.day.cq.security.resource.GroupResource Maven / Gradle / Ivy

There is a newer version: 2024.11.18751.20241128T090041Z-241100
Show newest version
/*
 * Copyright 1997-2008 Day Management AG
 * Barfuesserplatz 6, 4001 Basel, Switzerland
 * All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * Day Management AG, ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Day.
 */
package com.day.cq.security.resource;

import com.day.cq.security.Group;
import org.apache.sling.api.resource.ResourceResolver;

/**
 * Group implementation
 *
 * @see AuthorizableResource
 * @see org.apache.sling.api.resource.Resource
 * @deprecated 5.4
 */
public class GroupResource extends AuthorizableResource {

    /**
     * 

Constructor for GroupResource.

* * @param group a {@link com.day.cq.security.Group} object. * @param path a {@link java.lang.String} object. * @param resolver a {@link org.apache.sling.api.resource.ResourceResolver} object. */ public GroupResource(Group group, String path, ResourceResolver resolver) { super(group, path, resolver); } /** * Sets the Resource-Type to com.day.cq.security.resource.GroupResource * * @see org.apache.sling.api.resource.Resource#getResourceSuperType() * @return a {@link java.lang.String} object. */ public String getResourceType() { return Group.class.getName(); } /** * Sets the Resource-SuperType to com.day.cq.security.resource.AuthorizableResource * * @see org.apache.sling.api.resource.Resource#getResourceSuperType() * @return a {@link java.lang.String} object. */ public String getResourceSuperType() { return super.getResourceType(); } /** * {@inheritDoc} * * Adds adaptability to {@link com.day.cq.security.Group Group} * @see org.apache.sling.adapter.SlingAdaptable#adaptTo(Class) */ @SuppressWarnings("unchecked") public AdapterType adaptTo(Class type) { if (type == Group.class) { return (AdapterType) getAuthorizable(); } return super.adaptTo(type); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy