|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.security.provider.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(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 |
public RDBMPermissionImpl()
Method Detail |
public void add(IPermission[] perms) throws AuthorizationException
add
in interface IPermissionStore
perms
- org.jasig.portal.security.IPermission[]
AuthorizationException
- - wraps an Exception specific to the store.public void add(IPermission perm) throws AuthorizationException
add
in interface IPermissionStore
perm
- org.jasig.portal.security.IPermission
AuthorizationException
- - wraps an Exception specific to the store.public void delete(IPermission[] perms) throws AuthorizationException
delete
in interface IPermissionStore
perms
- org.jasig.portal.security.IPermission[]
AuthorizationException
- - wraps an Exception specific to the store.public void delete(IPermission perm) throws AuthorizationException
delete
in interface IPermissionStore
perm
- org.jasig.portal.security.IPermission
AuthorizationException
- - wraps an Exception specific to the store.public boolean existsInDatabase(IPermission perm) throws AuthorizationException, java.sql.SQLException
perm
- org.jasig.portal.security.IPermission
java.sql.SQLException
AuthorizationException
public IPermission newInstance(java.lang.String owner)
newInstance
in interface IPermissionStore
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
in interface IPermissionStore
owner
- 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 IPermissionStore
perms
- org.jasig.portal.security.IPermission[]
AuthorizationException
- - wraps an Exception specific to the store.public void update(IPermission perm) throws AuthorizationException
update
in interface IPermissionStore
perm
- org.jasig.portal.security.IPermission
AuthorizationException
- - wraps an Exception specific to the store.
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |