|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kmr.scam.local.LocalCommon
Common-class that all service-classes extend. These classes are auto-generated from the EJB-implementations. This class replaces se.kmr.scam.server.impl.BeanCommon for local usage (no application-server).
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 |
protected static Map |
m_graphIDs
|
protected static Map |
m_graphs
|
Constructor Summary | |
LocalCommon()
|
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. |
void |
begin()
|
protected void |
close()
Convenience method to close DB Connection |
void |
commit()
Commit a transaction (end 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 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 |
void |
rollback()
Rollback a transaction (end failed 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
protected static Map m_graphIDs
protected static Map m_graphs
Constructor Detail |
public LocalCommon()
Method Detail |
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
public void begin() throws SQLException
SQLException
public void commit() throws SQLException
rollback()
first.
SQLException
public 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 |