com.wewebu.ow.server.plug.owshortcut
Class OwShortcutItemUnresolved

java.lang.Object
  extended by com.wewebu.ow.server.plug.owshortcut.OwShortCutItem
      extended by com.wewebu.ow.server.plug.owshortcut.OwShortcutItemUnresolved

public class OwShortcutItemUnresolved
extends OwShortCutItem

Implementation of a shortcut item for object references that can not be resolved anymore (e.g. deleted objects).

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

Since:
3.0.0.0

Field Summary
 
Fields inherited from class com.wewebu.ow.server.plug.owshortcut.OwShortCutItem
persistentId, TYPE_DELIMITER
 
Constructor Summary
OwShortcutItemUnresolved(String id_p, String name_p, com.wewebu.ow.server.ecm.OwStandardUnresolvedReference unresolvedReference_p)
          Constructor
 
Method Summary
 String getId()
          get the ID of the shortcut
 String getName()
          get the name of the shortcut
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_...
 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.
 
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, toString, wait, wait, wait
 

Constructor Detail

OwShortcutItemUnresolved

public OwShortcutItemUnresolved(String id_p,
                                String name_p,
                                com.wewebu.ow.server.ecm.OwStandardUnresolvedReference unresolvedReference_p)
Constructor

Parameters:
id_p - shortcut ID
name_p - shortcut name
unresolvedReference_p - the unresolved reference this link points to
Method Detail

getId

public String getId()
             throws Exception
Description copied from class: OwShortCutItem
get the ID of the shortcut

Specified by:
getId in class OwShortCutItem
Returns:
the ID Sring
Throws:
Exception

getName

public String getName()
Description copied from class: OwShortCutItem
get the name of the shortcut

Specified by:
getName in class OwShortCutItem
Returns:
the name String

getPersistString

protected String getPersistString()
                           throws Exception
Description copied from class: OwShortCutItem
get a string that persists the short cut. Used in string constructor.

Specified by:
getPersistString in class OwShortCutItem
Throws:
Exception

getType

public int getType()
Description copied from class: OwShortCutItem
get the type of the short cut as defined in OwClipboard.CONTENT_TYPE_...

Specified by:
getType in class OwShortCutItem

insertIcon

public void insertIcon(OwShortCutItemContext context_p,
                       Writer w_p)
                throws Exception
Description copied from class: OwShortCutItem
render a icon link for this short cut

Specified by:
insertIcon in class OwShortCutItem
Throws:
Exception

insertLabel

public void insertLabel(OwShortCutItemContext context_p,
                        Writer w_p)
                 throws Exception
Description copied from class: OwShortCutItem
render a label link for this short cut

Specified by:
insertLabel in class OwShortCutItem
Throws:
Exception

refresh

public void refresh(com.wewebu.ow.server.ecm.OwRepository repository_p)
Description copied from class: OwShortCutItem
Refresh current OwShortCutItem to have the latest version of the object.

Specified by:
refresh in class OwShortCutItem
Parameters:
repository_p - - the repository


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.