01: /* Copyright 2001 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.security;
07:
08: import org.jasig.portal.AuthorizationException;
09:
10: /**
11: * An interface for updating <code>Permissions</code> on behalf of a
12: * <code>Permission</code> owner.
13: *
14: * @author Dan Ellentuck
15: * @version $Revision: 34783 $
16: */
17: public interface IUpdatingPermissionManager extends IPermissionManager {
18: /**
19: * Adds <code>IPermissions</code> to the store for the owner of this
20: * <code>IPermissionManager</code>.
21: *
22: * @param permissions IPermission[]
23: */
24: public void addPermissions(IPermission[] permissions)
25: throws AuthorizationException;
26:
27: /**
28: * Creates a new <code>IPermission</code> for the <code>principal</code> on behalf of the
29: * owner of this <code>IPermissionManager</code>.
30: *
31: * @param principal IAuthorizationPrincipal
32: */
33: public IPermission newPermission(IAuthorizationPrincipal principal)
34: throws AuthorizationException;
35:
36: /**
37: * Removes <code>IPermissions</code> from the store for the owner of this
38: * <code>IPermissionManager</code>.
39: *
40: * @param permissions IPermission[]
41: */
42: public void removePermissions(IPermission[] permissions)
43: throws AuthorizationException;
44:
45: /**
46: * Updates <code>IPermissions</code> in the store for the owner of this
47: * <code>IPermissionManager</code>.
48: *
49: * @param permissions IPermission[]
50: */
51: public void updatePermissions(IPermission[] permissions)
52: throws AuthorizationException;
53: }
|