|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.security.provider.RDBMPermissionImpl
public class RDBMPermissionImpl
Reference implementation of IPermissionStore. Performs CRUD operations on the UP_Permission table.
| 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(String owner)
Factory method for IPermissions |
IPermission[] |
select(String owner,
String principal,
String activity,
String target,
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RDBMPermissionImpl()
| Method Detail |
|---|
public void add(IPermission[] perms)
throws AuthorizationException
add in interface IPermissionStoreperms - org.jasig.portal.security.IPermission[]
AuthorizationException - - wraps an Exception specific to the store.
public void add(IPermission perm)
throws AuthorizationException
add in interface IPermissionStoreperm - org.jasig.portal.security.IPermission
AuthorizationException - - wraps an Exception specific to the store.
public void delete(IPermission[] perms)
throws AuthorizationException
delete in interface IPermissionStoreperms - org.jasig.portal.security.IPermission[]
AuthorizationException - - wraps an Exception specific to the store.
public void delete(IPermission perm)
throws AuthorizationException
delete in interface IPermissionStoreperm - org.jasig.portal.security.IPermission
AuthorizationException - - wraps an Exception specific to the store.
public boolean existsInDatabase(IPermission perm)
throws AuthorizationException,
SQLException
perm - org.jasig.portal.security.IPermission
SQLException
AuthorizationExceptionpublic IPermission newInstance(String owner)
newInstance in interface IPermissionStore
public IPermission[] select(String owner,
String principal,
String activity,
String target,
String type)
throws AuthorizationException
select in interface IPermissionStoreowner - String - the Permission ownerprincipal - String - the Permission principalactivity - String - the Permission activitytarget - String - the Permission targettype - String - the Permission type
AuthorizationException - - wraps an Exception specific to the store.public static RDBMPermissionImpl singleton()
public void update(IPermission[] perms)
throws AuthorizationException
update in interface IPermissionStoreperms - org.jasig.portal.security.IPermission[]
AuthorizationException - - wraps an Exception specific to the store.
public void update(IPermission perm)
throws AuthorizationException
update in interface IPermissionStoreperm - org.jasig.portal.security.IPermission
AuthorizationException - - wraps an Exception specific to the store.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||