|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kmr.scam.server.impl.BeanCommon
se.kmr.scam.server.impl.ManifestBean
EJB-implementation of ManifestI
jboss.xml:
Field Summary |
Fields inherited from class se.kmr.scam.server.impl.BeanCommon |
ADMIN_ROLE, GUEST_ROLE |
Fields inherited from interface se.kmr.scam.ManifestI |
DEFAULT_ID |
Constructor Summary | |
ManifestBean()
|
Method Summary | |
Model |
addItem(String identity,
String uri)
Add an IMSCP.Item to an IMSCP Folder-Item at next possible ordinal. |
String |
createURI(String identity)
Construct a URI. |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
String |
getDefaultOrg(String identity)
Get the default IMSCP organization URI (IMSCP.Item). |
String |
getManifest(String identity)
Get the IMSCP.Manifest URI. |
Model |
getModel(String identity,
Collection uris)
Get the combined sub-model of a collection of Resources. |
Model |
getModel(String identity,
Model model)
Get the complete sub-models of those components included in model. |
Model |
getModel(String identity,
String uri)
Get the sub-model of a Resource. |
String |
getParent(String identity,
String uri)
Get the IMSCP-parent URI referencing uri by RDF.li, or get the "first" content-Item referencing it by IMSCP.content. |
protected SessionContext |
getSessionContext()
Get the sessioncontext |
void |
insert(String identity,
Model model)
Insert a sub-model into a Manifest. |
Model |
listReferences(String identity,
String uri)
List all references (Resources) to uri by IMSCP.content |
void |
move(String identity,
Collection uris,
String toUri)
Move a collection of components (Items). |
void |
move(String identity,
String uri,
String toUri)
Move a component (Item). |
void |
remove(String identity,
String uri)
Remove a component. |
void |
rename(String identity,
String uri,
String toUri)
Rename a Resource (change URI). |
void |
setSessionContext(SessionContext sessionContext)
|
Methods inherited from class se.kmr.scam.server.impl.BeanCommon |
abort, assertPermission, assertPermission, begin, close, commit, contains, create, filter, filter, getCaller, hasPermission, hasPermission, isCaller, isCallerInRole, list, lookup, open, open, remove, rollback |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ManifestBean()
Method Detail |
protected SessionContext getSessionContext()
BeanCommon
getSessionContext
in class BeanCommon
public void ejbCreate() throws CreateException
CreateException
public void ejbRemove()
ejbRemove
in interface SessionBean
public void ejbActivate()
ejbActivate
in interface SessionBean
public void ejbPassivate()
ejbPassivate
in interface SessionBean
public void setSessionContext(SessionContext sessionContext)
setSessionContext
in interface SessionBean
public String createURI(String identity) throws ArchiveException
createURI
in interface ManifestI
identity
- Manifest
ArchiveException
public String getParent(String identity, String uri) throws ArchiveException
getParent
in interface ManifestI
identity
- Manifesturi
- Child-resource
null
if none
ArchiveException
public String getDefaultOrg(String identity) throws ArchiveException
getDefaultOrg
in interface ManifestI
identity
- Manifest
null
if none
ArchiveException
public String getManifest(String identity) throws ArchiveException
getManifest
in interface ManifestI
identity
- Manifest
null
if none
ArchiveException
public Model listReferences(String identity, String uri) throws ArchiveException
listReferences
in interface ManifestI
identity
- Default Manifest (null
means "ALL-model")uri
- Resource
ArchiveException
public void rename(String identity, String uri, String toUri) throws ArchiveException
rename
in interface ManifestI
identity
- Manifesturi
- Original URItoUri
- New URI
ArchiveException
public void remove(String identity, String uri) throws ArchiveException
uri
is an IMS Item.
All "child-Items" of this component will be removed.
All annotations bound to removed component/s will be removed.
If a component has file-content, it will also be removed.
remove
in interface ManifestI
identity
- Manifesturi
- Resource
ArchiveException
public void move(String identity, Collection uris, String toUri) throws ArchiveException
move
in interface ManifestI
identity
- Manifesturis
- Collection of components (URI:s)toUri
- Destination Component (IMS Folder)
ArchiveException
public void move(String identity, String uri, String toUri) throws ArchiveException
move
in interface ManifestI
identity
- Manifesturi
- ComponenttoUri
- Destination Component (IMS Folder)
ArchiveException
public Model addItem(String identity, String uri) throws ArchiveException
addItem
in interface ManifestI
identity
- Manifesturi
- Parent IMSCP Item (Folder)
ArchiveException
public void insert(String identity, Model model) throws ArchiveException
insert
in interface ManifestI
identity
- Manifestmodel
- New model
ArchiveException
public Model getModel(String identity, Model model) throws ArchiveException
getModel
in interface ManifestI
identity
- Default Manifest (null means "ALL-model")model
- Model
ArchiveException
public Model getModel(String identity, Collection uris) throws ArchiveException
getModel
in interface ManifestI
identity
- Manifesturis
- Collection of resources (URI:s)
ArchiveException
getModel(String, Model)
public Model getModel(String identity, String uri) throws ArchiveException
getModel
in interface ManifestI
identity
- Manifesturi
- Resource
uri
ArchiveException
getModel(String, Model)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |