com.wewebu.ow.server.app
Class OwMimeManager.OwOpenCommand

java.lang.Object
  extended by com.wewebu.ow.server.app.OwMimeManager.OwOpenCommand
Enclosing class:
OwMimeManager

public static class OwMimeManager.OwOpenCommand
extends Object

Identifies a open command URL or script.

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
OwMimeManager.OwOpenCommand(OwMainAppContext context_p, OwObjectReference obj_p, String additionalParams_p)
           
OwMimeManager.OwOpenCommand(OwMainAppContext context_p, OwObjectReference obj_p, String additionalParams_p, int page_p)
           
OwMimeManager.OwOpenCommand(OwMainAppContext context_p, OwObjectReference obj_p, String mimeContext_p, String additionalParams_p, int page_p)
           
OwMimeManager.OwOpenCommand(OwMainAppContext context_p, OwObjectReference obj_p, String mimeContext_p, String additionalParams_p, int page_p, boolean handleEditTag_p)
           
OwMimeManager.OwOpenCommand(OwMimeManager mimemanager_p, OwObjectReference obj_p, String additionalParams_p)
           
OwMimeManager.OwOpenCommand(OwMimeManager mimemanager_p, OwObjectReference obj_p, String additionalParams_p, int page_p)
           
OwMimeManager.OwOpenCommand(OwMimeManager mimemanager_p, OwObjectReference obj_p, String additionalParams_p, int page_p, boolean handleEditTag_p)
           
 
Method Summary
 boolean canGetScript()
          check if a script can be generated out of the given command
 boolean canGetURL()
          check if a script can generated out of the given command
 String getScript(int iViewerMode_p, OwWindowPositions windowpos_p, boolean fPreviewMode_p)
          get the pure script command if a script is defined by this command
 String getURL()
          get the command URL if a pure URL is defined by this command
 int getViewerMode()
          get the defined viewer mode to use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwMimeManager.OwOpenCommand

public OwMimeManager.OwOpenCommand(OwMainAppContext context_p,
                                   OwObjectReference obj_p,
                                   String additionalParams_p)
                            throws Exception
Throws:
Exception

OwMimeManager.OwOpenCommand

public OwMimeManager.OwOpenCommand(OwMainAppContext context_p,
                                   OwObjectReference obj_p,
                                   String additionalParams_p,
                                   int page_p)
                            throws Exception
Throws:
Exception

OwMimeManager.OwOpenCommand

public OwMimeManager.OwOpenCommand(OwMainAppContext context_p,
                                   OwObjectReference obj_p,
                                   String mimeContext_p,
                                   String additionalParams_p,
                                   int page_p)
                            throws Exception
Throws:
Exception

OwMimeManager.OwOpenCommand

public OwMimeManager.OwOpenCommand(OwMainAppContext context_p,
                                   OwObjectReference obj_p,
                                   String mimeContext_p,
                                   String additionalParams_p,
                                   int page_p,
                                   boolean handleEditTag_p)
                            throws Exception
Throws:
Exception

OwMimeManager.OwOpenCommand

public OwMimeManager.OwOpenCommand(OwMimeManager mimemanager_p,
                                   OwObjectReference obj_p,
                                   String additionalParams_p)
                            throws Exception
Throws:
Exception

OwMimeManager.OwOpenCommand

public OwMimeManager.OwOpenCommand(OwMimeManager mimemanager_p,
                                   OwObjectReference obj_p,
                                   String additionalParams_p,
                                   int page_p)
                            throws Exception
Throws:
Exception

OwMimeManager.OwOpenCommand

public OwMimeManager.OwOpenCommand(OwMimeManager mimemanager_p,
                                   OwObjectReference obj_p,
                                   String additionalParams_p,
                                   int page_p,
                                   boolean handleEditTag_p)
                            throws Exception
Throws:
Exception
Method Detail

getViewerMode

public int getViewerMode()
get the defined viewer mode to use

Returns:
int viewer mode as defined with OwMimeManager.VIEWER_MODE_...

canGetScript

public boolean canGetScript()
check if a script can be generated out of the given command

Returns:
true if the script can be generated false otherwise

getScript

public String getScript(int iViewerMode_p,
                        OwWindowPositions windowpos_p,
                        boolean fPreviewMode_p)
                 throws Exception
get the pure script command if a script is defined by this command

Parameters:
iViewerMode_p - int override viewer mode or use VIEWER_MODE_DEFAULT
windowpos_p - OwWindowPositions
fPreviewMode_p - boolean true = try to open object in a fast preview mode (i.e. do no fancy scripting or open integrated), false = open exactly as defined in the mimetable
Returns:
String script command, or throws exception if command is no script
Throws:
Exception

canGetURL

public boolean canGetURL()
check if a script can generated out of the given command

Returns:
a boolean

getURL

public String getURL()
              throws OwInvalidOperationException
get the command URL if a pure URL is defined by this command

Returns:
String URL
Throws:
OwInvalidOperationException - if command is no URL


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.