/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2009 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: EntitlementListener.java,v 1.3 2009/12/15 00:44:18 veiming Exp $
*/
/**
* Listener for receiving entitlements related changes.
*/
public final class EntitlementListener {
throws JSONException, EntitlementException {
try {
} catch (MalformedURLException e) {
throw new EntitlementException(426);
}
}
return jo;
}
/**
* Constructor.
*
* @param url URL of which notification will be sent to.
* @param application Application name.
* @param resourceNames Notification will be send to <code>url</code>
* if privilege for resources matches with the elements in
* <code>resourceNames</code>. Wildcard and sub resource matching
* apply too.
* @throws EntitlementException if <code>url</code> or
* <code>resourceNames</code> is null.
*/
public EntitlementListener(
) throws EntitlementException {
throw new EntitlementException(426);
}
try {
} catch (MalformedURLException e) {
throw new EntitlementException(435);
}
}
/**
* Constructor.
*
* @param url URL of which notification will be sent to.
* @param application Application name.
* @param resourceNames Notification will be send to <code>url</code>
* if privilege for resources matches with the elements in
* <code>resourceNames</code>. Wildcard and sub resource matching
* apply too.
* @throws EntitlementException if <code>url</code> or
* <code>resourceNames</code> is null.
*/
public EntitlementListener(
throws EntitlementException {
}
private void init(
throws EntitlementException {
throw new EntitlementException(426);
}
throw new EntitlementException(428);
}
for (String r : resourceNames) {
r = r.trim();
if (r.length() > 0) {
}
}
}
}
/**
* Returns map of application name to resource names.
*
* @return map of application name to resource names.
*/
return mapAppToRes;
}
/**
* Returns notification URL.
*
* @return notification URL.
*/
return url;
}
/**
* Combines other listener. Returns <code>true</code> if combination is
* possible.
* @param l listener.
* @return <code>true</code> if combination is done.
*/
return false;
}
}
}
return true;
}
public int hashCode() {
}
if (!(other instanceof EntitlementListener)) {
return false;
}
return false;
}
return false;
}
return true;
}
}