|
Dekoh platform API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdekoh.portal.fwk.share.AccessPath
public class AccessPath
AccessPath is resource identifier of DigitalObjects. Dekoh applications build a database of
DigitalObjects and organize them into DioCollections. These collections are then shared. Hence there may be several
ways to access any perticular DigitalObject. Each instance of AccessPath captures the context in which a
DigitalObject is being accessed.
HttpServeletRequest is parsed for information on which DioCollection of a Share is being
accessed by Whom to make a AccessPath instance. An instace of AccessPath is
kept in request scope.
AccessPath together with ShareQueryInterface provide a sandboxed access to
shared DioCollections.
| Field Summary | |
|---|---|
static int |
NOT_INITIALIZED
|
static String |
PARAMETER_KEY
Key String against which the number train is stored as HttpServletRequest attribute. |
| Constructor Summary | |
|---|---|
AccessPath()
|
|
AccessPath(int shareId,
Integer[] collectionIds)
|
|
| Method Summary | |
|---|---|
Map |
getChildren()
|
Map |
getChildShare()
|
List |
getCollectionIds()
|
String |
getOwnerName()
|
AccessPath |
getParent()
|
AccessPath |
getRoot()
|
int |
getShareId()
|
boolean |
isAccessPathNull()
This method is to check accesspath variables are null |
void |
setOwnerName(String ownerName)
|
String |
toNumberTrain()
Serializes this AccessPath object to a number train that can be used as a query string parameter value. |
static String |
toNumberTrain(HttpServletRequest request)
Converts the AccessPath in the HttpServletRequest passed to number train. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NOT_INITIALIZED
public static final String PARAMETER_KEY
String accessPathStr = req.getParameter(AccessPath.PARAMETER_KEY);
| Constructor Detail |
|---|
public AccessPath(int shareId,
Integer[] collectionIds)
public AccessPath()
| Method Detail |
|---|
public AccessPath getRoot()
public Map getChildShare()
public Map getChildren()
public AccessPath getParent()
public List getCollectionIds()
public int getShareId()
public String toNumberTrain()
ShareQueryInterface methods like ShareQueryInterface.getAllCollections(AccessPath) to gain
access to Dio entities pointed to by this object.
RequestContext.createAccessPath(String)public String getOwnerName()
public void setOwnerName(String ownerName)
public boolean isAccessPathNull()
public static String toNumberTrain(HttpServletRequest request)
request - servlet request
AccessPath.toNumberTrain()
|
Dekoh platform API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
© 2009 Pramati Technologies - Dekoh - Portal for Developers