|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectokapi.coreobjects.OkapiObject
okapi.coreobjects.OkapiArc
public class OkapiArc
OkapiArc contains OkapiContent or other OkapiArcs
It provides the container for any content with "use metadata"
Arcs are associated with Nexuses and provide the static material. An Arc may have structure, containing other Arcs or multple Contents. The contained Arcs and Contents may in turn have structure. But an Arc may also be a single Content which has a single ContentAtom. Arcs and Contents are associated with paths or path segments. If the Arc or Content has more than a single ContentAtom, it should be associated with a path segment.
e.g.:
"index.html" : "index.html" -> Content -> ContentAtom
"lecture1/index.html" :
"lecture1" -> Content for lecture1
within that Content "index.html" -> ContentAtom
"lecture1/LN2.pdf" :
"lecture1" -> Content for lecture1
within that Content "LN2.pdf" -> ContentAtom
"lecture1/LN3/index.html" :
"lecture1" -> Content for lecture1
within that Content "LN3" -> Content for LN3
within that, "index.html" -> ContentAtom
"lecture1/LN4/index.html" :
"lecture1" -> Content for lecture1
within that Content "LN4/index.html" -> ContentAtom
(ln4 has only one html file. This construct is allowed technically but should
probably be avoided to avoid confusion.)
Field Summary |
---|
Fields inherited from class okapi.coreobjects.OkapiObject |
---|
createdBy, createdDate, description, lastModifiedBy, lastModifiedDate, longName, name, objectID, status |
Constructor Summary | |
---|---|
OkapiArc()
Create new empty content container. |
|
OkapiArc(int arcCode)
Instantiate the Arc object for this arcCode |
Method Summary | |
---|---|
void |
addArc(java.lang.String filePath,
OkapiArc content)
Add content of type Arc and add it to the end of the ordering. |
void |
addArcUnordered(java.lang.String filePath,
OkapiArc content)
Deprecated. not used |
void |
addContent(java.lang.String filePath,
OkapiContent content)
Add reusable content Contents to the Arc container and add it to the end of the ordering. |
void |
addContentUnordered(java.lang.String filePath,
OkapiContent content)
Deprecated. not used |
void |
arcOrderAdd(java.lang.String path)
Put arcChild which is at path putPath at end of ordering in the arc child ordering. |
void |
arcOrderAddAfter(java.lang.String putPath,
java.lang.String afterThisPath)
Deprecated. not used |
void |
arcOrderAddBefore(java.lang.String putPath,
java.lang.String beforeThisPath)
Deprecated. not used |
void |
arcOrderAlphabetical()
Deprecated. only used to repair ordering corrupted by bugs |
void |
arcOrderMakeUnique()
Deprecated. only used to repair ordering corrupted by bugs |
int |
arcOrderMove(java.lang.String path,
int n)
Move arcChild by n positions up or down in the arc child ordering. |
void |
arcOrderRemove(java.lang.String path)
Remove all occurances of path from order |
boolean |
checkAuthorization(OkapiUser user,
OkapiOperation operation)
Checks to see if the specified user is authorized to perform the specified operation on this object. |
void |
contentOrderAdd(java.lang.String path)
Put contentChild which is at path putPath at end of ordering in the content child ordering. |
void |
contentOrderAddAfter(java.lang.String putPath,
java.lang.String afterThisPath)
Deprecated. not used |
void |
contentOrderAddBefore(java.lang.String putPath,
java.lang.String beforeThisPath)
Deprecated. not used |
void |
contentOrderAlphabetical()
Deprecated. only used to repair ordering corrupted by bugs |
void |
contentOrderMakeUnique()
Deprecated. only used to repair ordering corrupted by bugs |
int |
contentOrderMove(java.lang.String path,
int n)
Move contentChild by n positions up or down in the content child ordering. |
void |
contentOrderRemove(java.lang.String path)
Remove all occurances of path from order |
boolean |
equals(java.lang.Object o)
override Object equals method to compare two arcs |
java.util.List |
getAccessDates()
Deprecated. |
OkapiArc |
getArc(java.util.List filePathVector)
Return a OkapiArc for the specified path, or null. |
OkapiArc |
getArc(java.util.List filePathVector,
OkapiUser user)
Return a OkapiArc for the specified path, or null. |
OkapiArc |
getArc(java.lang.String filePath)
Method getArc |
OkapiArc |
getArc(java.lang.String filePath,
OkapiUser user)
Method getArc |
java.util.Map |
getArcChildren()
Return vector of all children of type Arc. |
int |
getArcCode()
Return arcCode of this Arc |
java.util.List |
getArcOrder()
Return order of arc children |
java.lang.String |
getAsXml(java.util.Map options,
java.lang.String tag,
int indent)
Overrides the method in OkapiObject to add Arc specific information. |
OkapiContent |
getContent(java.util.List filePathVector)
Return a OkapiContent for the specified path which leads to an OkapiStore, or null. |
OkapiContent |
getContent(java.util.List filePathVector,
OkapiUser user)
Return a OkapiContent for the specified path which leads to an OkapiStore, or null. |
java.util.Map |
getContentChildren()
Return vector of all children of type Content. |
java.util.List |
getContentOrder()
Return order of content children |
java.util.Date |
getCreatedDate()
Method getCreatedDate |
java.lang.String |
getDescription()
Method getDescription |
java.lang.String |
getLastModifiedBy()
Method getLastModifiedBy |
java.util.Date |
getLastModifiedDate()
Method getLastModifiedDate |
java.lang.String |
getLongName()
Method getLongName |
java.lang.String |
getName()
Method getName |
OkapiObjectID |
getObjectID()
Method getObjectID |
OkapiStore |
getStore(java.util.List filePathVector)
Return a OkapiStore for the specified path, or null. |
OkapiStore |
getStore(java.util.List filePathVector,
OkapiUser user)
Return a OkapiStore for the specified path, or null, or throw a okapi.util.OkapiPermissionDenied exception. |
java.util.Map |
getUseMetadata()
Get all use metadata. |
java.lang.Object |
getUseMetadata(java.lang.Object key)
Get use metadata. |
int |
hashCode()
override hashCode to use the database table sequence number |
boolean |
isEmpty()
returns true if arc has no Arc or Content children. |
void |
makeAccessable(java.util.Date starting,
java.util.Date ending)
Deprecated. |
void |
refreshFromDB()
Refresh this object with the data currently stored in the DB. |
void |
removeArc(java.lang.String filePath)
Remove an Arc. |
void |
removeContent(java.lang.String filePath)
remove a content |
void |
removeUseMetadata(java.lang.Object key)
Remove use metadata. |
void |
setAccessDates(java.util.List newAccessDates)
Deprecated. |
void |
setArcOrder(java.util.List newArcOrder)
Set order of arc children, replacing old ordering |
void |
setAuthorization(OkapiUser user,
OkapiOperation operation,
boolean dateRestricted)
Deprecated. not used |
void |
setContentOrder(java.util.List newContentOrder)
Set order of content children, replacing old ordering |
void |
setDataSource(javax.sql.DataSource dataSource)
Set the dataSource to be used for data access. |
void |
setDescription(java.lang.String newDescription)
Method setDescription |
protected void |
setLastModifiedBy(OkapiUser newLastModifiedBy)
|
protected void |
setLastModifiedBy(java.lang.String newLastModifiedBy)
|
protected void |
setLastModifiedDate(java.util.Date newLastModifiedDate)
|
void |
setLongName(java.lang.String newLongName)
Method setLongName |
void |
setName(java.lang.String newName)
Method setName |
void |
setUseMetadata(java.lang.String key,
java.lang.Object value)
Method setUseMetadata |
void |
setUseMetadata(java.lang.String key,
java.lang.String value)
Set use metadata. |
void |
updateDB()
Update the database record for this object. |
Methods inherited from class okapi.coreobjects.OkapiObject |
---|
currentDateTimeOracle, getAsXml, getAsXml, getAsXml, getCreatedBy, getStatus, isEncryptionRequired, setAuthorization, setCreatedBy, setCreatedDate, setStatus |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OkapiArc()
public OkapiArc(int arcCode)
Method Detail |
---|
public java.util.List getArcOrder()
public java.util.List getContentOrder()
public void setArcOrder(java.util.List newArcOrder)
public void setContentOrder(java.util.List newContentOrder)
public int arcOrderMove(java.lang.String path, int n)
public void arcOrderAddAfter(java.lang.String putPath, java.lang.String afterThisPath)
public void arcOrderAddBefore(java.lang.String putPath, java.lang.String beforeThisPath)
public void arcOrderRemove(java.lang.String path)
public void arcOrderAdd(java.lang.String path)
public void arcOrderAlphabetical()
public void contentOrderAlphabetical()
public void arcOrderMakeUnique()
public void contentOrderMakeUnique()
public int contentOrderMove(java.lang.String path, int n)
public void contentOrderAddAfter(java.lang.String putPath, java.lang.String afterThisPath)
public void contentOrderAddBefore(java.lang.String putPath, java.lang.String beforeThisPath)
public void contentOrderRemove(java.lang.String path)
public void contentOrderAdd(java.lang.String path)
public void setAuthorization(OkapiUser user, OkapiOperation operation, boolean dateRestricted)
public void setUseMetadata(java.lang.String key, java.lang.String value)
public void setUseMetadata(java.lang.String key, java.lang.Object value)
key
- value
- public java.util.Map getUseMetadata()
public java.lang.Object getUseMetadata(java.lang.Object key)
public void removeUseMetadata(java.lang.Object key)
public int getArcCode()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void addArcUnordered(java.lang.String filePath, OkapiArc content)
public void addArc(java.lang.String filePath, OkapiArc content)
public void removeArc(java.lang.String filePath)
public void addContentUnordered(java.lang.String filePath, OkapiContent content)
public void addContent(java.lang.String filePath, OkapiContent content)
public void removeContent(java.lang.String filePath)
public java.util.Map getArcChildren()
public java.util.Map getContentChildren()
public OkapiStore getStore(java.util.List filePathVector)
public OkapiStore getStore(java.util.List filePathVector, OkapiUser user) throws OkapiPermissionDeniedException
OkapiPermissionDeniedException
public OkapiContent getContent(java.util.List filePathVector)
public OkapiContent getContent(java.util.List filePathVector, OkapiUser user) throws OkapiPermissionDeniedException
OkapiPermissionDeniedException
public OkapiArc getArc(java.util.List filePathVector)
public OkapiArc getArc(java.util.List filePathVector, OkapiUser user) throws OkapiPermissionDeniedException
OkapiPermissionDeniedException
public OkapiArc getArc(java.lang.String filePath)
filePath
-
public OkapiArc getArc(java.lang.String filePath, OkapiUser user) throws OkapiPermissionDeniedException
filePath
- user
-
OkapiPermissionDeniedException
public void makeAccessable(java.util.Date starting, java.util.Date ending)
public void setAccessDates(java.util.List newAccessDates)
public java.util.List getAccessDates()
public void updateDB()
updateDB
in class OkapiObject
public void refreshFromDB()
refreshFromDB
in class OkapiObject
public boolean checkAuthorization(OkapiUser user, OkapiOperation operation)
checkAuthorization
in class OkapiObject
public boolean isEmpty()
public void setName(java.lang.String newName)
setName
in class OkapiObject
newName
- public java.lang.String getName()
getName
in class OkapiObject
public void setLongName(java.lang.String newLongName)
setLongName
in class OkapiObject
newLongName
- public java.lang.String getLongName()
getLongName
in class OkapiObject
public void setDescription(java.lang.String newDescription)
setDescription
in class OkapiObject
newDescription
- public java.lang.String getDescription()
getDescription
in class OkapiObject
public OkapiObjectID getObjectID()
getObjectID
in class OkapiObject
protected void setLastModifiedDate(java.util.Date newLastModifiedDate)
setLastModifiedDate
in class OkapiObject
public java.util.Date getLastModifiedDate()
getLastModifiedDate
in class OkapiObject
protected void setLastModifiedBy(OkapiUser newLastModifiedBy)
setLastModifiedBy
in class OkapiObject
protected void setLastModifiedBy(java.lang.String newLastModifiedBy)
setLastModifiedBy
in class OkapiObject
public java.lang.String getLastModifiedBy()
getLastModifiedBy
in class OkapiObject
public java.util.Date getCreatedDate()
getCreatedDate
in class OkapiObject
public java.lang.String getAsXml(java.util.Map options, java.lang.String tag, int indent)
getAsXml
in class OkapiObject
public void setDataSource(javax.sql.DataSource dataSource)
dataSource
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |