org.exoplatform.addon.service
Class AddOnService

java.lang.Object
  extended by org.exoplatform.addon.service.AddOnService

public class AddOnService
extends Object


Field Summary
static String EXO_PRIVILEGEABLE_NODE_TYPE
           
static String imgPathBase
           
static String MIX_COMMENTABLE_NODE_TYPE
           
static String MIX_VOTEABLE_NODE_TYPE
           
static String PREFERENCE_EMAIL_SUBJECT
          The Constant PREFERENCE_EMAIL_SUBJECT.
static String PREFERENCE_FROM
          The Constant PREFERENCE_RECEIVER.
static String PREFERENCE_FROM_NAME
          The Constant PREFERENCE_RECEIVER.
static String PREFERENCE_ITEM_PATH
          The Constant PREFERENCE_ITEM_PATH.
static String PREFERENCE_RECEIVER
          The Constant PREFERENCE_RECEIVER.
static String PREFERENCE_SITE
          The Constant PREFERENCE_ITEM_PATH.
 
Constructor Summary
AddOnService()
           
 
Method Summary
static javax.jcr.Node createCommunityFolder()
           
static String getAddOnHomePath()
           
static String getImageCover(javax.jcr.Node node)
           
static List<String> getImagesNode(javax.jcr.Node node)
           
static javax.jcr.Node getNode(String path)
           
static javax.jcr.Node getNodeById(String uuid)
           
static String getPortalName()
           
static String getRestName()
           
static String getStrProperty(javax.jcr.Node node, String propertyName)
           
static void SendConfirmationAddonPublishedEmail(String receiver, String nodeName, String hostName)
           
static void sendNewAddonSubmisson(String receiver, String fromEmail, String subject, String email, String titleAddon, String description, String version, String license, String author, String compatibility, String sourceUrl, String documentUrl, String downloadUrl, Boolean hosted, String hostName)
           
static void sendRequestReceiveMail(String receiver, String fromEmail, String hostName)
           
static javax.jcr.Node storeNode(String title, String name, Boolean hosted, Map<String,String> map, Boolean isNew)
           
static javax.jcr.Node updateNode(String title, String name, Boolean hosted, Map<String,String> map, Boolean isNew)
           
static boolean validateEmail(String email)
          validate the fields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFERENCE_RECEIVER

public static final String PREFERENCE_RECEIVER
The Constant PREFERENCE_RECEIVER.

See Also:
Constant Field Values

PREFERENCE_FROM

public static final String PREFERENCE_FROM
The Constant PREFERENCE_RECEIVER.

See Also:
Constant Field Values

PREFERENCE_FROM_NAME

public static final String PREFERENCE_FROM_NAME
The Constant PREFERENCE_RECEIVER.

See Also:
Constant Field Values

PREFERENCE_EMAIL_SUBJECT

public static final String PREFERENCE_EMAIL_SUBJECT
The Constant PREFERENCE_EMAIL_SUBJECT.

See Also:
Constant Field Values

PREFERENCE_ITEM_PATH

public static final String PREFERENCE_ITEM_PATH
The Constant PREFERENCE_ITEM_PATH.

See Also:
Constant Field Values

PREFERENCE_SITE

public static final String PREFERENCE_SITE
The Constant PREFERENCE_ITEM_PATH.

See Also:
Constant Field Values

MIX_VOTEABLE_NODE_TYPE

public static final String MIX_VOTEABLE_NODE_TYPE
See Also:
Constant Field Values

MIX_COMMENTABLE_NODE_TYPE

public static final String MIX_COMMENTABLE_NODE_TYPE
See Also:
Constant Field Values

EXO_PRIVILEGEABLE_NODE_TYPE

public static final String EXO_PRIVILEGEABLE_NODE_TYPE
See Also:
Constant Field Values

imgPathBase

public static String imgPathBase
Constructor Detail

AddOnService

public AddOnService()
Method Detail

getNode

public static javax.jcr.Node getNode(String path)
                              throws javax.jcr.PathNotFoundException,
                                     javax.jcr.RepositoryException
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

getNodeById

public static javax.jcr.Node getNodeById(String uuid)
                                  throws javax.jcr.PathNotFoundException,
                                         javax.jcr.RepositoryException
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

getStrProperty

public static String getStrProperty(javax.jcr.Node node,
                                    String propertyName)
                             throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getImageCover

public static String getImageCover(javax.jcr.Node node)
                            throws javax.jcr.PathNotFoundException,
                                   javax.jcr.RepositoryException
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

getImagesNode

public static List<String> getImagesNode(javax.jcr.Node node)
                                  throws Exception,
                                         javax.jcr.RepositoryException
Throws:
Exception
javax.jcr.RepositoryException

updateNode

public static javax.jcr.Node updateNode(String title,
                                        String name,
                                        Boolean hosted,
                                        Map<String,String> map,
                                        Boolean isNew)
                                 throws Exception
Throws:
Exception

storeNode

public static javax.jcr.Node storeNode(String title,
                                       String name,
                                       Boolean hosted,
                                       Map<String,String> map,
                                       Boolean isNew)
                                throws Exception
Throws:
Exception

getPortalName

public static String getPortalName()

getRestName

public static String getRestName()

getAddOnHomePath

public static String getAddOnHomePath()
                               throws Exception
Throws:
Exception

createCommunityFolder

public static javax.jcr.Node createCommunityFolder()
                                            throws Exception
Throws:
Exception

sendRequestReceiveMail

public static void sendRequestReceiveMail(String receiver,
                                          String fromEmail,
                                          String hostName)
                                   throws Exception
Throws:
Exception

sendNewAddonSubmisson

public static void sendNewAddonSubmisson(String receiver,
                                         String fromEmail,
                                         String subject,
                                         String email,
                                         String titleAddon,
                                         String description,
                                         String version,
                                         String license,
                                         String author,
                                         String compatibility,
                                         String sourceUrl,
                                         String documentUrl,
                                         String downloadUrl,
                                         Boolean hosted,
                                         String hostName)
                                  throws Exception
Throws:
Exception

SendConfirmationAddonPublishedEmail

public static void SendConfirmationAddonPublishedEmail(String receiver,
                                                       String nodeName,
                                                       String hostName)
                                                throws Exception
Throws:
Exception

validateEmail

public static boolean validateEmail(String email)
validate the fields



Copyright © 2003–2014 eXo Platform SAS. All rights reserved.