|
||||||||||
| 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
| Nested Class Summary | |
|---|---|
protected static class |
OwShortCutItemOwObject.OwDependentObjectReference
Helper class for handling dependent object reference. |
| 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 root,
com.wewebu.ow.server.ecm.OwObjectReference target,
String displayPath,
String idPath)
Constructor for path specific definition |
|
OwShortCutItemOwObject(com.wewebu.ow.server.ecm.OwObjectReference ref_p,
String path_p,
String subdisplaypath_p,
int maxChildSize_p)
Deprecated. since 4.1.1.1 use OwShortCutItemOwObject(OwObjectReference, OwObjectReference, String, String) instead |
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)
Deprecated. since 4.1.1.1 caused by performance problems, use direct constructor OwShortCutItemOwObject(OwObjectReference, OwObjectReference, String, String) instead |
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)
Deprecated. since 4.1.1.1 searching by path must be done in upper level (business logic) |
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
ExceptiongetPersistString()protected OwShortCutItemOwObject(com.wewebu.ow.server.ecm.OwObjectReference ref_p)
ref_p -
@Deprecated
public OwShortCutItemOwObject(com.wewebu.ow.server.ecm.OwObjectReference ref_p,
String path_p,
String subdisplaypath_p,
int maxChildSize_p)
OwShortCutItemOwObject(OwObjectReference, OwObjectReference, String, String) instead
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 reference
public OwShortCutItemOwObject(com.wewebu.ow.server.ecm.OwObjectReference root,
com.wewebu.ow.server.ecm.OwObjectReference target,
String displayPath,
String idPath)
root - OwObjectReference which is the root of the pathtarget - OwObjectReference which is descendant of root (level unknown)displayPath - String readable/displayable pathidPath - String path based on Id's| Method Detail |
|---|
@Deprecated
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
Exceptionpublic String getName()
getName in class OwShortCutItemString
public String getId()
throws Exception
getId in class OwShortCutItemExceptionpublic static Collection createShortCutItems(Collection objects_p)
objects_p - Collection of OwObjectReferences
@Deprecated
public static OwShortCutItem createShortCutItem(com.wewebu.ow.server.ecm.OwObjectReference object_p,
String path_p,
String subdisplaypath_p,
int maxChildSize_p)
OwShortCutItemOwObject(OwObjectReference, OwObjectReference, String, String) instead
object_p - path_p - subdisplaypath_p - maxChildSize_p -
OwShortCutItem
protected String getPersistString()
throws Exception
getPersistString in class OwShortCutItemExceptionpublic int getType()
getType in class OwShortCutItem
public void insertIcon(OwShortCutItemContext context_p,
Writer w_p)
throws Exception
insertIcon in class OwShortCutItemException
public void insertLabel(OwShortCutItemContext context_p,
Writer w_p)
throws Exception
insertLabel in class OwShortCutItemExceptionpublic com.wewebu.ow.server.ecm.OwObjectReference getObjRef()
public String toString()
toString in class Objectpublic void refresh(com.wewebu.ow.server.ecm.OwRepository repository_p)
OwShortCutItemOwShortCutItem to have the latest version of the object.
refresh in class OwShortCutItemrepository_p - - the repository
protected 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.
Exceptionprotected 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 | |||||||||