uPortal 2.4.1
API Documentation

org.jasig.portal.security.provider
Class RDBMPermissionImpl

java.lang.Object
  extended byorg.jasig.portal.security.provider.RDBMPermissionImpl
All Implemented Interfaces:
IPermissionStore

public class RDBMPermissionImpl
extends java.lang.Object
implements IPermissionStore

Reference implementation of IPermissionStore. Performs CRUD operations on the UP_Permission table.

Version:
$Revision: 1.16.2.1 $
Author:
Dan Ellentuck (de3@columbia.edu)

Constructor Summary
RDBMPermissionImpl()
          RDBMReferencePermission constructor comment.
 
Method Summary
 void add(IPermission perm)
          Add the IPermission to the store.
 void add(IPermission[] perms)
          Add the IPermissions to the store.
 void delete(IPermission perm)
          Delete a single IPermission from the store.
 void delete(IPermission[] perms)
          Delete the IPermissions from the store.
 boolean existsInDatabase(IPermission perm)
          Answer if this entity exists in the database.
 IPermission newInstance(java.lang.String owner)
          Factory method for IPermissions
 IPermission[] select(java.lang.String owner, java.lang.String principal, java.lang.String activity, java.lang.String target, java.lang.String type)
          Select the Permissions from the store.
static RDBMPermissionImpl singleton()
           
 void update(IPermission perm)
          Update a single IPermission in the store.
 void update(IPermission[] perms)
          Update the IPermissions in the store.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBMPermissionImpl

public RDBMPermissionImpl()
RDBMReferencePermission constructor comment.

Method Detail

add

public void add(IPermission[] perms)
         throws AuthorizationException
Add the IPermissions to the store.

Specified by:
add in interface IPermissionStore
Parameters:
perms - org.jasig.portal.security.IPermission[]
Throws:
AuthorizationException - - wraps an Exception specific to the store.

add

public void add(IPermission perm)
         throws AuthorizationException
Add the IPermission to the store.

Specified by:
add in interface IPermissionStore
Parameters:
perm - org.jasig.portal.security.IPermission
Throws:
AuthorizationException - - wraps an Exception specific to the store.

delete

public void delete(IPermission[] perms)
            throws AuthorizationException
Delete the IPermissions from the store.

Specified by:
delete in interface IPermissionStore
Parameters:
perms - org.jasig.portal.security.IPermission[]
Throws:
AuthorizationException - - wraps an Exception specific to the store.

delete

public void delete(IPermission perm)
            throws AuthorizationException
Delete a single IPermission from the store.

Specified by:
delete in interface IPermissionStore
Parameters:
perm - org.jasig.portal.security.IPermission
Throws:
AuthorizationException - - wraps an Exception specific to the store.

existsInDatabase

public boolean existsInDatabase(IPermission perm)
                         throws AuthorizationException,
                                java.sql.SQLException
Answer if this entity exists in the database.

Parameters:
perm - org.jasig.portal.security.IPermission
Returns:
boolean
Throws:
java.sql.SQLException
AuthorizationException

newInstance

public IPermission newInstance(java.lang.String owner)
Factory method for IPermissions

Specified by:
newInstance in interface IPermissionStore

select

public IPermission[] select(java.lang.String owner,
                            java.lang.String principal,
                            java.lang.String activity,
                            java.lang.String target,
                            java.lang.String type)
                     throws AuthorizationException
Select the Permissions from the store.

Specified by:
select in interface IPermissionStore
Parameters:
owner - String - the Permission owner
principal - String - the Permission principal
activity - String - the Permission activity
target - String - the Permission target
type - String - the Permission type
Throws:
AuthorizationException - - wraps an Exception specific to the store.

singleton

public static RDBMPermissionImpl singleton()
Returns:
org.jasig.portal.security.provider.RDBMPermissionImpl

update

public void update(IPermission[] perms)
            throws AuthorizationException
Update the IPermissions in the store.

Specified by:
update in interface IPermissionStore
Parameters:
perms - org.jasig.portal.security.IPermission[]
Throws:
AuthorizationException - - wraps an Exception specific to the store.

update

public void update(IPermission perm)
            throws AuthorizationException
Update a single IPermission in the store.

Specified by:
update in interface IPermissionStore
Parameters:
perm - org.jasig.portal.security.IPermission
Throws:
AuthorizationException - - wraps an Exception specific to the store.

uPortal 2.4.1
API Documentation