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

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

public class OwShortCutDocumentHelper
extends Object

Helper class for Short Cuts Document.
Stores and manage the OwShortCutItem list.

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


Constructor Summary
OwShortCutDocumentHelper()
           
 
Method Summary
 boolean addShortCut(Collection oShortCuts_p)
          Add a collection of shortcuts to shortcuts helper pool
 boolean addShortCut(OwShortCutItem oObject_p)
          Add a shortcut object to shortcuts helper pool
 void cleanShortCut()
          Clear the shortcut list
 boolean deleteShortCut(Collection oShortCuts_p)
          Delete a collection of shortcuts from shortcuts helper pool
 boolean deleteShortCut(OwShortCutItem oObject_p)
          Delete a shortcut object from shortcuts helper pool
 boolean deleteShortCut(String shortcutId_p)
          Delete shortcut document from shortcuts helper pool by shortcut ID
 String getPersistentId(String id_p)
          Get the id used to persist the OwShortCutItem object
 List getShortcuts()
          Get Shortcuts from shortcuts helper pool
 List getShortcuts(Comparator comparator_p)
          Get Shortcuts sorted shortcuts helper pool
 void refresh(com.wewebu.ow.server.ecm.OwRepository repository_p)
          Refresh the shortcut list with latest version of the object
 void setShortcuts(List shortcuts_p)
          Set a shortcuts list to shortcuts helper pool
 String toString()
          to String implementation, the List ist sorted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OwShortCutDocumentHelper

public OwShortCutDocumentHelper()
Method Detail

addShortCut

public boolean addShortCut(Collection oShortCuts_p)
Add a collection of shortcuts to shortcuts helper pool

Parameters:
oShortCuts_p - Collection of type OwShortCutItem
Returns:
boolean indicates if the list was changed

addShortCut

public boolean addShortCut(OwShortCutItem oObject_p)
Add a shortcut object to shortcuts helper pool

Parameters:
oObject_p - OwShortCutItem
Returns:
boolean indicates if the list was changed

deleteShortCut

public boolean deleteShortCut(Collection oShortCuts_p)
Delete a collection of shortcuts from shortcuts helper pool

Parameters:
oShortCuts_p - Collection of type OwShortCutItem
Returns:
boolean indicates if the list was changed

deleteShortCut

public boolean deleteShortCut(String shortcutId_p)
Delete shortcut document from shortcuts helper pool by shortcut ID

Parameters:
shortcutId_p - unique shortcut ID
Returns:
boolean indicates if the list was changed

deleteShortCut

public boolean deleteShortCut(OwShortCutItem oObject_p)
Delete a shortcut object from shortcuts helper pool

Parameters:
oObject_p - OwShortCutItem
Returns:
boolean indicates if the list was changed

cleanShortCut

public void cleanShortCut()
Clear the shortcut list


getShortcuts

public List getShortcuts()
Get Shortcuts from shortcuts helper pool

Returns:
List with OwShortCutItem

getShortcuts

public List getShortcuts(Comparator comparator_p)
Get Shortcuts sorted shortcuts helper pool

Parameters:
comparator_p - Own Comparator
Returns:
a List of shortcuts

setShortcuts

public void setShortcuts(List shortcuts_p)
Set a shortcuts list to shortcuts helper pool

Parameters:
shortcuts_p - List of OwShortCutItem

toString

public String toString()
to String implementation, the List ist sorted

Overrides:
toString in class Object

refresh

public void refresh(com.wewebu.ow.server.ecm.OwRepository repository_p)
             throws Exception
Refresh the shortcut list with latest version of the object

Throws:
Exception
Since:
3.1.0.3

getPersistentId

public String getPersistentId(String id_p)
Get the id used to persist the OwShortCutItem object

Parameters:
id_p - - the current id of the OwShortCutItem object
Returns:
the persistent id.
Since:
3.1.0.3


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.