|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.plug.owshortcut.OwShortCutItem
com.wewebu.ow.server.plug.owshortcut.OwShortCutItemOwObject
public class OwShortCutItemOwObject
Implementation of a shortcut item for object references.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Field Summary | |
---|---|
static String |
DEFAULT_PATH_DELIMITER
delimiter used to build the object path in the object tree |
protected int |
m_iMaxChildSize
maximum number of child nodes |
protected static String |
SUBPATH_DELIMITER
delimiter for the subpath in the persist string |
Fields inherited from class com.wewebu.ow.server.plug.owshortcut.OwShortCutItem |
---|
persistentId, TYPE_DELIMITER |
Constructor Summary | |
---|---|
protected |
OwShortCutItemOwObject(com.wewebu.ow.server.ecm.OwObjectReference ref_p)
creates a short cut from the given OwObject Reference |
|
OwShortCutItemOwObject(com.wewebu.ow.server.ecm.OwObjectReference ref_p,
String path_p,
String subdisplaypath_p,
int maxChildSize_p)
Constructor |
protected |
OwShortCutItemOwObject(String persistString_p,
OwShortCutItemContext context_p,
int maxChildSize_p)
reconstruct the short cut from the given string |
Method Summary | |
---|---|
static OwShortCutItem |
createShortCutItem(com.wewebu.ow.server.ecm.OwObjectReference object_p,
String path_p,
String subdisplaypath_p,
int maxChildSize_p)
create a OwShortCutItem of OwShortCutItem from the given collection of OwObject |
static Collection |
createShortCutItems(Collection objects_p)
create a collection of OwShortCutItem's from the given collection of OwObject's |
protected com.wewebu.ow.server.ecm.OwObjectReference |
findPathReference(com.wewebu.ow.server.ecm.OwObjectReference root_p,
String path_p,
String pathDelimiter_p)
|
String |
getId()
Get the ID of the shortcut. |
String |
getName()
get the name of the shortcut |
com.wewebu.ow.server.ecm.OwObjectReference |
getObjRef()
|
protected String |
getPersistString()
get a string that persists the short cut. |
int |
getType()
get the type of the short cut as defined in OwClipboard.CONTENT_TYPE_OW_... |
void |
insertIcon(OwShortCutItemContext context_p,
Writer w_p)
render a icon link for this short cut |
void |
insertLabel(OwShortCutItemContext context_p,
Writer w_p)
render a label link for this short cut |
void |
refresh(com.wewebu.ow.server.ecm.OwRepository repository_p)
Refresh current OwShortCutItem to have the latest version of the object. |
protected com.wewebu.ow.server.ecm.OwObject |
replaceWithLatestVersion(com.wewebu.ow.server.ecm.OwObject source_p)
Replace the given OwObject source object with its latest version |
String |
toString()
|
protected com.wewebu.ow.server.ecm.OwObjectReference |
updateObjectReference(com.wewebu.ow.server.ecm.OwRepository repository_p,
com.wewebu.ow.server.ecm.OwObjectReference originalReference_p)
Get the OwStandardObjectReference corresponding to the latest version of the OwObject |
Methods inherited from class com.wewebu.ow.server.plug.owshortcut.OwShortCutItem |
---|
getPersistentId, loadShortCut, saveShortCut |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_PATH_DELIMITER
protected static final String SUBPATH_DELIMITER
protected int m_iMaxChildSize
Constructor Detail |
---|
protected OwShortCutItemOwObject(String persistString_p, OwShortCutItemContext context_p, int maxChildSize_p) throws Exception
persistString_p
- context_p
- maxChildSize_p
- number of maximum children to be searched when retrieving the pointed object reference
Exception
getPersistString()
protected OwShortCutItemOwObject(com.wewebu.ow.server.ecm.OwObjectReference ref_p)
ref_p
- public OwShortCutItemOwObject(com.wewebu.ow.server.ecm.OwObjectReference ref_p, String path_p, String subdisplaypath_p, int maxChildSize_p)
ref_p
- the root object referencepath_p
- relative path to the pointed objectsubdisplaypath_p
- the path to be displayed for this shortcut in the shortcut viewsmaxChildSize_p
- number of maximum children to be searched when retrieving the pointed object referenceMethod Detail |
---|
protected com.wewebu.ow.server.ecm.OwObjectReference findPathReference(com.wewebu.ow.server.ecm.OwObjectReference root_p, String path_p, String pathDelimiter_p) throws Exception
root_p
- the root objectpath_p
- the relative path to search the reference inpathDelimiter_p
- the delimiter used in constructing the path
OwObjectReference
for the object found under the given path relative to the given root object
Exception
public String getName()
getName
in class OwShortCutItem
String
public String getId() throws Exception
getId
in class OwShortCutItem
Exception
public static Collection createShortCutItems(Collection objects_p)
objects_p
- Collection of OwObjectReference
s
public static OwShortCutItem createShortCutItem(com.wewebu.ow.server.ecm.OwObjectReference object_p, String path_p, String subdisplaypath_p, int maxChildSize_p)
object_p
- path_p
- subdisplaypath_p
- maxChildSize_p
-
OwShortCutItem
protected String getPersistString() throws Exception
getPersistString
in class OwShortCutItem
Exception
public int getType()
getType
in class OwShortCutItem
public void insertIcon(OwShortCutItemContext context_p, Writer w_p) throws Exception
insertIcon
in class OwShortCutItem
Exception
public void insertLabel(OwShortCutItemContext context_p, Writer w_p) throws Exception
insertLabel
in class OwShortCutItem
Exception
public com.wewebu.ow.server.ecm.OwObjectReference getObjRef()
public String toString()
toString
in class Object
public void refresh(com.wewebu.ow.server.ecm.OwRepository repository_p)
OwShortCutItem
OwShortCutItem
to have the latest version of the object.
refresh
in class OwShortCutItem
repository_p
- - the repositoryprotected com.wewebu.ow.server.ecm.OwObjectReference updateObjectReference(com.wewebu.ow.server.ecm.OwRepository repository_p, com.wewebu.ow.server.ecm.OwObjectReference originalReference_p) throws Exception
OwStandardObjectReference
corresponding to the latest version of the OwObject
repository_p
- originalReference_p
-
OwStandardObjectReference
updated.
Exception
protected com.wewebu.ow.server.ecm.OwObject replaceWithLatestVersion(com.wewebu.ow.server.ecm.OwObject source_p)
OwObject
source object with its latest version
source_p
- - the stored OwObject
source.
OwObject
if no version is available.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |