public abstract class OwShortCutItem extends Object
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
Modifier and Type | Field and Description |
---|---|
protected String |
persistentId
The id used to persist this item.
|
protected static String |
TYPE_DELIMITER
delimiter for the type in the persist string
|
Constructor and Description |
---|
OwShortCutItem() |
Modifier and Type | Method and Description |
---|---|
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
|
protected static final String TYPE_DELIMITER
protected String persistentId
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 referencecom.wewebu.ow.server.exceptions.OwException
- mostly OwShortCutException if creation of short is failingpublic abstract void refresh(com.wewebu.ow.server.ecm.OwRepository repository_p) throws com.wewebu.ow.server.exceptions.OwException
OwShortCutItem
to have the latest version of the object.repository_p
- - the repositorycom.wewebu.ow.server.exceptions.OwException
- if refresh could not be processed (since 4.2.0.0)Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.