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

com.day.cq.wcm.notification.NotificationContext Maven / Gradle / Ivy

/*
 * Copyright 1997-2009 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.wcm.notification;

import javax.jcr.Session;

import org.apache.sling.api.resource.PersistableValueMap;

/**
 * A NotificationContext allows access to several
 * useful things..
 */
public interface NotificationContext {

    /**
     * Return an admin session for the channel.
     * @return A session.
     * @deprecated
     * @use {@link slingRepository.impersonateFromService()}
     */
    Session getAdministrativeSession();

    /**
     * Return the configuration.
     * @return The current user configuration.
     */
    PersistableValueMap getConfiguration();
    
    /**
     * Returns the authorizable associated with a service session which has limited privileges.
     * This authorizable has read permissions on home/users but can write only to wcm/notification. 
     * @return the authorizable.
     */
    org.apache.jackrabbit.api.security.user.Authorizable getAuthorizable();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy