org.opencrx.kernel.backend
Class Base

java.lang.Object
  extended by org.opencrx.kernel.backend.AbstractImpl
      extended by org.opencrx.kernel.backend.Base

public class Base
extends AbstractImpl


Field Summary
static List<String> ASSIGN_TO_ME_ATTRIBUTES
           
static String COMMENT_SEPARATOR_BOT
           
static String COMMENT_SEPARATOR_EOT
           
static short IMPORT_EXPORT_FORMAT_NOT_SUPPORTED
           
static short IMPORT_EXPORT_ITEM_NOT_VALID
           
static short IMPORT_EXPORT_MISSING_DATA
           
static short IMPORT_EXPORT_OK
           
static String MIME_TYPE_ZIP
           
 
Constructor Summary
protected Base()
           
 
Method Summary
 String analyseReport(List<String> report)
          Counts the number of occurences of items in report and returns a string of the form item0: n0, item1: n1, etc.
 void assignToMe(RefObject_1_0 target, boolean overwrite, boolean useRunAsPrincipal)
           
 void createOrUpdateMedia(CrxObject object, String contentType, String contentName, InputStream content)
           
 String getAccessUrl(Object context, String contextPattern, RefObject_1_0 object)
           
 String getAccessUrl(Object context, String contextPattern, RefObject_1_0 object, boolean asTinyUrl)
           
static Base getInstance()
           
 String getTitle(RefObject_1_0 refObj, org.openmdx.portal.servlet.Codes codes, short locale, boolean asShortTitle)
           
 boolean isAccessUrl(String url)
           
static void register()
           
 void sendAlert(ContextCapable target, String toUsers, String name, String description, short importance, Integer resendDelayInSeconds, ContextCapable reference)
           
 String toNbspS(Object obj)
           
static String toS(Object obj)
           
 
Methods inherited from class org.opencrx.kernel.backend.AbstractImpl
getInstance, getUidAsString, registerImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMPORT_EXPORT_OK

public static final short IMPORT_EXPORT_OK
See Also:
Constant Field Values

IMPORT_EXPORT_FORMAT_NOT_SUPPORTED

public static final short IMPORT_EXPORT_FORMAT_NOT_SUPPORTED
See Also:
Constant Field Values

IMPORT_EXPORT_ITEM_NOT_VALID

public static final short IMPORT_EXPORT_ITEM_NOT_VALID
See Also:
Constant Field Values

IMPORT_EXPORT_MISSING_DATA

public static final short IMPORT_EXPORT_MISSING_DATA
See Also:
Constant Field Values

MIME_TYPE_ZIP

public static final String MIME_TYPE_ZIP
See Also:
Constant Field Values

COMMENT_SEPARATOR_BOT

public static final String COMMENT_SEPARATOR_BOT
See Also:
Constant Field Values

COMMENT_SEPARATOR_EOT

public static final String COMMENT_SEPARATOR_EOT
See Also:
Constant Field Values

ASSIGN_TO_ME_ATTRIBUTES

public static final List<String> ASSIGN_TO_ME_ATTRIBUTES
Constructor Detail

Base

protected Base()
Method Detail

register

public static void register()

getInstance

public static Base getInstance()
                        throws ServiceException
Throws:
ServiceException

sendAlert

public void sendAlert(ContextCapable target,
                      String toUsers,
                      String name,
                      String description,
                      short importance,
                      Integer resendDelayInSeconds,
                      ContextCapable reference)
               throws ServiceException
Throws:
ServiceException

assignToMe

public void assignToMe(RefObject_1_0 target,
                       boolean overwrite,
                       boolean useRunAsPrincipal)
                throws ServiceException
Throws:
ServiceException

analyseReport

public String analyseReport(List<String> report)
Counts the number of occurences of items in report and returns a string of the form item0: n0, item1: n1, etc.


getAccessUrl

public String getAccessUrl(Object context,
                           String contextPattern,
                           RefObject_1_0 object)

getAccessUrl

public String getAccessUrl(Object context,
                           String contextPattern,
                           RefObject_1_0 object,
                           boolean asTinyUrl)

isAccessUrl

public boolean isAccessUrl(String url)

createOrUpdateMedia

public void createOrUpdateMedia(CrxObject object,
                                String contentType,
                                String contentName,
                                InputStream content)
                         throws IOException
Throws:
IOException

toS

public static String toS(Object obj)

toNbspS

public String toNbspS(Object obj)

getTitle

public String getTitle(RefObject_1_0 refObj,
                       org.openmdx.portal.servlet.Codes codes,
                       short locale,
                       boolean asShortTitle)
                throws ServiceException
Throws:
ServiceException


This software is published under the BSD license. Copyright © 2003-2012, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.