|
||||||||||
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
public abstract class OwShortCutItem
Abstract class that defines a short cut entry that can be displayed and executed.
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 | |
---|---|
protected String |
persistentId
The id used to persist this item. |
protected static String |
TYPE_DELIMITER
delimiter for the type in the persist string |
Constructor Summary | |
---|---|
OwShortCutItem()
|
Method Summary | |
---|---|
abstract String |
getId()
get the ID of the shortcut |
abstract String |
getName()
get the name of the shortcut |
String |
getPersistentId()
Get the ID used to persist this item. |
protected abstract String |
getPersistString()
get a string that persists the short cut. |
abstract int |
getType()
get the type of the short cut as defined in OwClipboard.CONTENT_TYPE_... |
abstract void |
insertIcon(OwShortCutItemContext context_p,
Writer w_p)
render a icon link for this short cut |
abstract void |
insertLabel(OwShortCutItemContext context_p,
Writer w_p)
render a label link for this short cut |
static OwShortCutItem |
loadShortCut(String persistString_p,
OwShortCutItemContext context_p,
int maxChildSize_p)
factory method to create a persistent short cut from given string |
abstract void |
refresh(com.wewebu.ow.server.ecm.OwRepository repository_p)
Refresh current OwShortCutItem to have the latest version of the object. |
String |
saveShortCut()
save the short cut to string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String TYPE_DELIMITER
protected String persistentId
Constructor Detail |
---|
public OwShortCutItem()
Method Detail |
---|
public abstract void insertIcon(OwShortCutItemContext context_p, Writer w_p) throws Exception
Exception
public abstract void insertLabel(OwShortCutItemContext context_p, Writer w_p) throws Exception
Exception
protected abstract String getPersistString() throws Exception
Exception
public abstract int getType()
public abstract String getId() throws Exception
Sring
Exception
public String getPersistentId() throws Exception
Exception
public abstract String getName()
String
public String saveShortCut() throws OwShortCutException
OwShortCutException
public static OwShortCutItem loadShortCut(String persistString_p, OwShortCutItemContext context_p, int maxChildSize_p) throws com.wewebu.ow.server.exceptions.OwException
persistString_p
- context_p
- maxChildSize_p
- number of maximum children to be searched when retrieving the pointed object reference
com.wewebu.ow.server.exceptions.OwException
- mostly OwShortCutException if creation of short is failingpublic abstract void refresh(com.wewebu.ow.server.ecm.OwRepository repository_p)
OwShortCutItem
to have the latest version of the object.
repository_p
- - the repository
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |