public class OwStandardPasteMetadataHandler extends Object implements OwPasteMetadataHandler
OwStandardPasteMetadataHandler - Used for plugins with JSPForm. Provide support for paste operations inside properties view.
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 OwPropertyCollection |
m_properties
properties from the object
|
protected static String |
QUERY_KEY_PROPNAME
query string for the property name
|
Constructor and Description |
---|
OwStandardPasteMetadataHandler(OwMainAppContext context_p,
boolean isSystemPropertiesView_p,
boolean hasPasteMetadataEnabled_p)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected OwClipboard |
getClipboard()
Get current Clipboard, often used in this class.
|
boolean |
isPasteMetadataActivated()
check if paste metadata is active and should be displayed for user
|
void |
onPasteAllMetaData(javax.servlet.http.HttpServletRequest request_p)
called when user presses the paste all metadata button
|
void |
onPasteThisMetaData(javax.servlet.http.HttpServletRequest request_p)
called when user presses the paste this metadata button
|
void |
renderPasteAllMetadata(Writer w_p,
OwEventTarget view_p)
Render the "paste all" metadata HTML code.
|
void |
renderPasteMetadata(Writer w_p,
OwProperty prop_p,
OwEventTarget view_p)
Render the "paste" metadata HTML code
|
void |
setProperties(OwPropertyCollection properties_p)
Set the current properties.
|
protected static final String QUERY_KEY_PROPNAME
protected OwPropertyCollection m_properties
public OwStandardPasteMetadataHandler(OwMainAppContext context_p, boolean isSystemPropertiesView_p, boolean hasPasteMetadataEnabled_p)
public void setProperties(OwPropertyCollection properties_p)
OwPasteMetadataHandler
setProperties
in interface OwPasteMetadataHandler
properties_p
- - the properties.public void onPasteAllMetaData(javax.servlet.http.HttpServletRequest request_p) throws Exception
OwPasteMetadataHandler
onPasteAllMetaData
in interface OwPasteMetadataHandler
Exception
public void onPasteThisMetaData(javax.servlet.http.HttpServletRequest request_p) throws Exception
OwPasteMetadataHandler
onPasteThisMetaData
in interface OwPasteMetadataHandler
Exception
protected OwClipboard getClipboard()
public boolean isPasteMetadataActivated()
OwPasteMetadataHandler
isPasteMetadataActivated
in interface OwPasteMetadataHandler
public void renderPasteAllMetadata(Writer w_p, OwEventTarget view_p) throws Exception
OwPasteMetadataHandler
renderPasteAllMetadata
in interface OwPasteMetadataHandler
w_p
- - the writerview_p
- - the viewException
public void renderPasteMetadata(Writer w_p, OwProperty prop_p, OwEventTarget view_p) throws Exception
OwPasteMetadataHandler
renderPasteMetadata
in interface OwPasteMetadataHandler
Exception
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.