com.wewebu.ow.server.plug.owdocprops
Class OwBatchPropertyAssignmentDocumentFunction

java.lang.Object
  extended by com.wewebu.ow.server.app.OwFunction
      extended by com.wewebu.ow.server.app.OwDocumentFunction
          extended by com.wewebu.ow.server.plug.owdocprops.OwBatchPropertyAssignmentDocumentFunction
All Implemented Interfaces:
com.wewebu.ow.server.app.OwPlugin

public class OwBatchPropertyAssignmentDocumentFunction
extends com.wewebu.ow.server.app.OwDocumentFunction

Implementation of the Document edit properties plugin.

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
 
Fields inherited from class com.wewebu.ow.server.app.OwFunction
DESCRIPTION_KEY_CLASSES, DESCRIPTION_KEY_OBJ_TYPES, DESCRIPTION_KEY_TYPE, DRAG_DROP_PROPERTY_MAX_FILESIZE, m_MainContext
 
Constructor Summary
OwBatchPropertyAssignmentDocumentFunction()
           
 
Method Summary
protected  boolean canSetValue(com.wewebu.ow.server.ecm.OwProperty prop_p)
          Check if this Property can be edit.
 String getBigIcon()
           
protected  com.wewebu.ow.server.app.OwClipboard getClipboard()
           
 String getIcon()
           
protected  boolean isClipboardEmpty()
          Helper method to Check if the clipboard is empty
 boolean isEnabled(Collection objCol_p, com.wewebu.ow.server.ecm.OwObject parent_p, int iContext_p)
           
 boolean isEnabled(com.wewebu.ow.server.ecm.OwObject oObject_p, com.wewebu.ow.server.ecm.OwObject oParent_p, int iContext_p)
           
protected  boolean isSystemProperty(com.wewebu.ow.server.ecm.OwProperty prop_p)
          Check if given property is a system-property.
protected  boolean isValidClipboardContentType()
           
 void onClickEvent(com.wewebu.ow.server.ecm.OwObject object_p, com.wewebu.ow.server.ecm.OwObject parent_p, com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p)
           
 void onMultiselectClickEvent(Collection objectCol_p, com.wewebu.ow.server.ecm.OwObject parent_p, com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p)
           
 void setFinishMessage(String msg_p)
           
 
Methods inherited from class com.wewebu.ow.server.app.OwDocumentFunction
addHistoryEvent, addHistoryEvent, getBigDefaultIconHTML, getBigIconHTML, getColumnTitle, getContextMenu, getDefaultIconHTML, getDefaultLabel, getDisplayNameFromUserId, getEnableColumnClickEvent, getIconHTML, getLabel, getMultiselect, getNeedParent, getObjectInstance, getPluginType, getRetrievalPropertyNames, getShowInEditViews, init, isObjectTypeSupported, onColumnClickEvent
 
Methods inherited from class com.wewebu.ow.server.app.OwFunction
getConfigNode, getContext, getDragDropProperties, getEventManager, getHelpPath, getName, getNoEvent, getPluginID, getPluginTitle, getPluginTypeDisplayName, getSafeSetting, getSupportedObjectClassesFromDescriptor, getSupportedObjectTypesFromDescriptor, getTooltip, isDragDropTarget, isObjectClassSupported, setSafeSetting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwBatchPropertyAssignmentDocumentFunction

public OwBatchPropertyAssignmentDocumentFunction()
Method Detail

getIcon

public String getIcon()
               throws Exception
Specified by:
getIcon in interface com.wewebu.ow.server.app.OwPlugin
Overrides:
getIcon in class com.wewebu.ow.server.app.OwFunction
Throws:
Exception

getBigIcon

public String getBigIcon()
                  throws Exception
Overrides:
getBigIcon in class com.wewebu.ow.server.app.OwFunction
Throws:
Exception

onClickEvent

public void onClickEvent(com.wewebu.ow.server.ecm.OwObject object_p,
                         com.wewebu.ow.server.ecm.OwObject parent_p,
                         com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p)
                  throws Exception
Specified by:
onClickEvent in class com.wewebu.ow.server.app.OwDocumentFunction
Throws:
Exception

onMultiselectClickEvent

public void onMultiselectClickEvent(Collection objectCol_p,
                                    com.wewebu.ow.server.ecm.OwObject parent_p,
                                    com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p)
                             throws Exception
Overrides:
onMultiselectClickEvent in class com.wewebu.ow.server.app.OwDocumentFunction
Throws:
Exception

setFinishMessage

public void setFinishMessage(String msg_p)

getClipboard

protected com.wewebu.ow.server.app.OwClipboard getClipboard()

isClipboardEmpty

protected boolean isClipboardEmpty()
Helper method to Check if the clipboard is empty

Returns:
boolean false only if content exist and content!= null.

isValidClipboardContentType

protected boolean isValidClipboardContentType()

isSystemProperty

protected boolean isSystemProperty(com.wewebu.ow.server.ecm.OwProperty prop_p)
                            throws Exception
Check if given property is a system-property.

Parameters:
prop_p - OwProperty which should be checked
Returns:
boolean true only if given property is a system property.
Throws:
Exception - if missing rights to read information

canSetValue

protected boolean canSetValue(com.wewebu.ow.server.ecm.OwProperty prop_p)
                       throws Exception
Check if this Property can be edit. Return true if the property is not a system property and is not read-only, else returns false.

Parameters:
prop_p - OwProperty which should be checked.
Returns:
boolean true, only if user can edit the given Property
Throws:
Exception

isEnabled

public boolean isEnabled(com.wewebu.ow.server.ecm.OwObject oObject_p,
                         com.wewebu.ow.server.ecm.OwObject oParent_p,
                         int iContext_p)
                  throws Exception
Overrides:
isEnabled in class com.wewebu.ow.server.app.OwDocumentFunction
Throws:
Exception

isEnabled

public boolean isEnabled(Collection objCol_p,
                         com.wewebu.ow.server.ecm.OwObject parent_p,
                         int iContext_p)
                  throws Exception
Overrides:
isEnabled in class com.wewebu.ow.server.app.OwDocumentFunction
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.