|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kmr.scam.server.impl.BeanCommon
Common methods shared by all EJBs. Include transaction- and access-control methods.
Title:
Description:
Copyright: Copyright (c) 2002
Company:
Field Summary | |
static String |
ADMIN_ROLE
Administrator role Key: scam.role.admin |
static String |
GUEST_ROLE
Guest role Key: scam.role.guest |
Constructor Summary | |
BeanCommon()
|
Method Summary | |
protected void |
abort(String mess)
|
protected void |
assertPermission(Model model,
Collection reses,
Property perm)
Assert permission. |
protected void |
assertPermission(Model model,
Resource res,
Property perm)
Assert permission. |
protected void |
begin()
Begin transaction. |
protected void |
close()
Convenience method to close DB Connection |
protected void |
commit()
Commit transaction |
protected boolean |
contains(String identity)
See if Manifest exists |
protected ModelRDB |
create(String identity)
Create a new Mainfest |
protected void |
filter(Model dbModel,
Model model,
Property perm)
Remove all unauthorized components in Model. |
protected void |
filter(Model model,
Property perm)
Remove all unauthorized components in Model. |
protected String |
getCaller()
|
protected abstract SessionContext |
getSessionContext()
Get the sessioncontext |
protected boolean |
hasPermission(Model model,
Collection reses,
Property perm)
Check permission. |
protected boolean |
hasPermission(Model model,
Resource res,
Property perm)
Check permission. |
protected boolean |
isCaller(Object principal)
|
protected boolean |
isCallerInRole(Object role)
|
protected List |
list()
List all Manifests (except DEFAULT) |
protected String |
lookup(Integer graphID)
Lookup Manifest-identity by ID (used in multi-model-search) |
protected ModelRDB |
open()
|
protected ModelRDB |
open(String identity)
Convenience method to open a Manifest (from cache). |
protected boolean |
remove(String identity)
Remove Manifest |
protected void |
rollback()
Rollback transaction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String ADMIN_ROLE
public static final String GUEST_ROLE
Constructor Detail |
public BeanCommon()
Method Detail |
protected abstract SessionContext getSessionContext()
protected ModelRDB open(String identity) throws ArchiveException
identity
- Manifest name
ArchiveException
protected ModelRDB open() throws ArchiveException
ArchiveException
protected boolean contains(String identity) throws ArchiveException
identity
- Manifest name
ArchiveException
protected String lookup(Integer graphID) throws ArchiveException
graphID
- ID
ArchiveException
protected ModelRDB create(String identity) throws ArchiveException
identity
- Manifest name
ArchiveException
protected List list() throws ArchiveException
ArchiveException
protected boolean remove(String identity) throws ArchiveException
identity
- Manifest name
ArchiveException
protected void close()
protected void abort(String mess) throws ArchiveException
ArchiveException
protected void begin() throws SystemException
SystemException
protected void commit() throws SystemException
SystemException
protected void rollback() throws ArchiveException
ArchiveException
protected void assertPermission(Model model, Resource res, Property perm) throws RDFException, ArchiveException
model
- Model containing ACL for resres
- Resourceperm
- Permission
RDFException
ArchiveException
- if permission not grantedhasPermission(Model, Resource, Property)
protected void assertPermission(Model model, Collection reses, Property perm) throws RDFException, ArchiveException
model
- Model containing ACL for resesreses
- Resources (or URIs)perm
- Permission
RDFException
ArchiveException
- if permission not granted for one or morehasPermission(Model, Resource, Property)
protected boolean hasPermission(Model model, Resource res, Property perm) throws RDFException
model
- Model containing ACL for resres
- Resourceperm
- Permission
true
if permission granted.
RDFException
protected boolean hasPermission(Model model, Collection reses, Property perm) throws RDFException
model
- Model containing ACL for resesreses
- Resources (or URIs)perm
- Permission
true
if permission granted for all resources
RDFException
hasPermission(Model, Resource, Property)
protected void filter(Model dbModel, Model model, Property perm) throws RDFException
dbModel
- Model (containing ACL:s)model
- Model to filterperm
- Permission
RDFException
protected void filter(Model model, Property perm) throws RDFException
model
- Model to filter (containing ACL:s)perm
- Permission
RDFException
protected String getCaller()
protected boolean isCaller(Object principal)
protected boolean isCallerInRole(Object role)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |