Liferay 6.0.5

com.liferay.portlet.softwarecatalog.service
Class SCProductEntryLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalServiceUtil

public class SCProductEntryLocalServiceUtil
extends Object

The utility for the s c product entry local service. This utility wraps SCProductEntryLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server.

Never modify this class directly. Add custom service methods to SCProductEntryLocalServiceImpl and rerun ServiceBuilder to regenerate this class.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

See Also:
SCProductEntryLocalService, SCProductEntryLocalServiceBaseImpl, SCProductEntryLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
SCProductEntryLocalServiceUtil()
           
 
Method Summary
static SCProductEntry addProductEntry(long userId, String name, String type, String tags, String shortDescription, String longDescription, String pageURL, String author, String repoGroupId, String repoArtifactId, long[] licenseIds, List<byte[]> thumbnails, List<byte[]> fullImages, ServiceContext serviceContext)
           
static void addProductEntryResources(long productEntryId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addProductEntryResources(long productEntryId, String[] communityPermissions, String[] guestPermissions)
           
static void addProductEntryResources(SCProductEntry productEntry, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addProductEntryResources(SCProductEntry productEntry, String[] communityPermissions, String[] guestPermissions)
           
static SCProductEntry addSCProductEntry(SCProductEntry scProductEntry)
          Adds the s c product entry to the database.
static SCProductEntry createSCProductEntry(long productEntryId)
          Creates a new s c product entry with the primary key.
static void deleteProductEntries(long groupId)
           
static void deleteProductEntry(long productEntryId)
           
static void deleteProductEntry(SCProductEntry productEntry)
           
static void deleteSCProductEntry(long productEntryId)
          Deletes the s c product entry with the primary key from the database.
static void deleteSCProductEntry(SCProductEntry scProductEntry)
          Deletes the s c product entry from the database.
static List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
static long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
static List<SCProductEntry> getCompanyProductEntries(long companyId, int start, int end)
           
static int getCompanyProductEntriesCount(long companyId)
           
static List<SCProductEntry> getProductEntries(long groupId, int start, int end)
           
static List<SCProductEntry> getProductEntries(long groupId, int start, int end, OrderByComparator obc)
           
static List<SCProductEntry> getProductEntries(long groupId, long userId, int start, int end)
           
static List<SCProductEntry> getProductEntries(long groupId, long userId, int start, int end, OrderByComparator obc)
           
static int getProductEntriesCount(long groupId)
           
static int getProductEntriesCount(long groupId, long userId)
           
static SCProductEntry getProductEntry(long productEntryId)
           
static String getRepositoryXML(long groupId, String baseImageURL, Date oldestDate, int maxNumOfVersions, Properties repoSettings)
           
static String getRepositoryXML(long groupId, String version, String baseImageURL, Date oldestDate, int maxNumOfVersions, Properties repoSettings)
           
static List<SCProductEntry> getSCProductEntries(int start, int end)
          Gets a range of all the s c product entries.
static int getSCProductEntriesCount()
          Gets the number of s c product entries.
static SCProductEntry getSCProductEntry(long productEntryId)
          Gets the s c product entry with the primary key.
static SCProductEntryLocalService getService()
           
 void setService(SCProductEntryLocalService service)
           
static SCProductEntry updateProductEntry(long productEntryId, String name, String type, String tags, String shortDescription, String longDescription, String pageURL, String author, String repoGroupId, String repoArtifactId, long[] licenseIds, List<byte[]> thumbnails, List<byte[]> fullImages)
           
static SCProductEntry updateSCProductEntry(SCProductEntry scProductEntry)
          Updates the s c product entry in the database.
static SCProductEntry updateSCProductEntry(SCProductEntry scProductEntry, boolean merge)
          Updates the s c product entry in the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCProductEntryLocalServiceUtil

public SCProductEntryLocalServiceUtil()
Method Detail

addSCProductEntry

public static SCProductEntry addSCProductEntry(SCProductEntry scProductEntry)
                                        throws SystemException
Adds the s c product entry to the database. Also notifies the appropriate model listeners.

Parameters:
scProductEntry - the s c product entry to add
Returns:
the s c product entry that was added
Throws:
SystemException - if a system exception occurred

createSCProductEntry

public static SCProductEntry createSCProductEntry(long productEntryId)
Creates a new s c product entry with the primary key. Does not add the s c product entry to the database.

Parameters:
productEntryId - the primary key for the new s c product entry
Returns:
the new s c product entry

deleteSCProductEntry

public static void deleteSCProductEntry(long productEntryId)
                                 throws PortalException,
                                        SystemException
Deletes the s c product entry with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
productEntryId - the primary key of the s c product entry to delete
Throws:
PortalException - if a s c product entry with the primary key could not be found
SystemException - if a system exception occurred

deleteSCProductEntry

public static void deleteSCProductEntry(SCProductEntry scProductEntry)
                                 throws SystemException
Deletes the s c product entry from the database. Also notifies the appropriate model listeners.

Parameters:
scProductEntry - the s c product entry to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery)
                         throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
                         throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
                              throws SystemException
Counts the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getSCProductEntry

public static SCProductEntry getSCProductEntry(long productEntryId)
                                        throws PortalException,
                                               SystemException
Gets the s c product entry with the primary key.

Parameters:
productEntryId - the primary key of the s c product entry to get
Returns:
the s c product entry
Throws:
PortalException - if a s c product entry with the primary key could not be found
SystemException - if a system exception occurred

getSCProductEntries

public static List<SCProductEntry> getSCProductEntries(int start,
                                                       int end)
                                                throws SystemException
Gets a range of all the s c product entries.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of s c product entries to return
end - the upper bound of the range of s c product entries to return (not inclusive)
Returns:
the range of s c product entries
Throws:
SystemException - if a system exception occurred

getSCProductEntriesCount

public static int getSCProductEntriesCount()
                                    throws SystemException
Gets the number of s c product entries.

Returns:
the number of s c product entries
Throws:
SystemException - if a system exception occurred

updateSCProductEntry

public static SCProductEntry updateSCProductEntry(SCProductEntry scProductEntry)
                                           throws SystemException
Updates the s c product entry in the database. Also notifies the appropriate model listeners.

Parameters:
scProductEntry - the s c product entry to update
Returns:
the s c product entry that was updated
Throws:
SystemException - if a system exception occurred

updateSCProductEntry

public static SCProductEntry updateSCProductEntry(SCProductEntry scProductEntry,
                                                  boolean merge)
                                           throws SystemException
Updates the s c product entry in the database. Also notifies the appropriate model listeners.

Parameters:
scProductEntry - the s c product entry to update
merge - whether to merge the s c product entry with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the s c product entry that was updated
Throws:
SystemException - if a system exception occurred

addProductEntry

public static SCProductEntry addProductEntry(long userId,
                                             String name,
                                             String type,
                                             String tags,
                                             String shortDescription,
                                             String longDescription,
                                             String pageURL,
                                             String author,
                                             String repoGroupId,
                                             String repoArtifactId,
                                             long[] licenseIds,
                                             List<byte[]> thumbnails,
                                             List<byte[]> fullImages,
                                             ServiceContext serviceContext)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

addProductEntryResources

public static void addProductEntryResources(long productEntryId,
                                            boolean addCommunityPermissions,
                                            boolean addGuestPermissions)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

addProductEntryResources

public static void addProductEntryResources(long productEntryId,
                                            String[] communityPermissions,
                                            String[] guestPermissions)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

addProductEntryResources

public static void addProductEntryResources(SCProductEntry productEntry,
                                            boolean addCommunityPermissions,
                                            boolean addGuestPermissions)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

addProductEntryResources

public static void addProductEntryResources(SCProductEntry productEntry,
                                            String[] communityPermissions,
                                            String[] guestPermissions)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

deleteProductEntries

public static void deleteProductEntries(long groupId)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

deleteProductEntry

public static void deleteProductEntry(long productEntryId)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

deleteProductEntry

public static void deleteProductEntry(SCProductEntry productEntry)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getCompanyProductEntries

public static List<SCProductEntry> getCompanyProductEntries(long companyId,
                                                            int start,
                                                            int end)
                                                     throws SystemException
Throws:
SystemException

getCompanyProductEntriesCount

public static int getCompanyProductEntriesCount(long companyId)
                                         throws SystemException
Throws:
SystemException

getProductEntries

public static List<SCProductEntry> getProductEntries(long groupId,
                                                     int start,
                                                     int end)
                                              throws SystemException
Throws:
SystemException

getProductEntries

public static List<SCProductEntry> getProductEntries(long groupId,
                                                     int start,
                                                     int end,
                                                     OrderByComparator obc)
                                              throws SystemException
Throws:
SystemException

getProductEntries

public static List<SCProductEntry> getProductEntries(long groupId,
                                                     long userId,
                                                     int start,
                                                     int end)
                                              throws SystemException
Throws:
SystemException

getProductEntries

public static List<SCProductEntry> getProductEntries(long groupId,
                                                     long userId,
                                                     int start,
                                                     int end,
                                                     OrderByComparator obc)
                                              throws SystemException
Throws:
SystemException

getProductEntriesCount

public static int getProductEntriesCount(long groupId)
                                  throws SystemException
Throws:
SystemException

getProductEntriesCount

public static int getProductEntriesCount(long groupId,
                                         long userId)
                                  throws SystemException
Throws:
SystemException

getProductEntry

public static SCProductEntry getProductEntry(long productEntryId)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getRepositoryXML

public static String getRepositoryXML(long groupId,
                                      String baseImageURL,
                                      Date oldestDate,
                                      int maxNumOfVersions,
                                      Properties repoSettings)
                               throws SystemException
Throws:
SystemException

getRepositoryXML

public static String getRepositoryXML(long groupId,
                                      String version,
                                      String baseImageURL,
                                      Date oldestDate,
                                      int maxNumOfVersions,
                                      Properties repoSettings)
                               throws SystemException
Throws:
SystemException

updateProductEntry

public static SCProductEntry updateProductEntry(long productEntryId,
                                                String name,
                                                String type,
                                                String tags,
                                                String shortDescription,
                                                String longDescription,
                                                String pageURL,
                                                String author,
                                                String repoGroupId,
                                                String repoArtifactId,
                                                long[] licenseIds,
                                                List<byte[]> thumbnails,
                                                List<byte[]> fullImages)
                                         throws PortalException,
                                                SystemException
Throws:
PortalException
SystemException

getService

public static SCProductEntryLocalService getService()

setService

public void setService(SCProductEntryLocalService service)

Liferay 6.0.5