Liferay 7.0-ce-m3

com.liferay.portlet.softwarecatalog.service
Class SCProductEntryLocalServiceUtil

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

@ProviderType
public class SCProductEntryLocalServiceUtil
extends Object

Provides the local service utility for SCProductEntry. This utility wraps SCProductEntryLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server. 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 it 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 addGroupPermissions, boolean addGuestPermissions)
           
static void addProductEntryResources(long productEntryId, String[] groupPermissions, String[] guestPermissions)
           
static void addProductEntryResources(SCProductEntry productEntry, boolean addGroupPermissions, boolean addGuestPermissions)
           
static void addProductEntryResources(SCProductEntry productEntry, String[] groupPermissions, String[] guestPermissions)
           
static void addSCLicenseSCProductEntries(long licenseId, List<SCProductEntry> SCProductEntries)
           
static void addSCLicenseSCProductEntries(long licenseId, long[] productEntryIds)
           
static void addSCLicenseSCProductEntry(long licenseId, long productEntryId)
           
static void addSCLicenseSCProductEntry(long licenseId, SCProductEntry scProductEntry)
           
static SCProductEntry addSCProductEntry(SCProductEntry scProductEntry)
          Adds the s c product entry to the database.
static void clearSCLicenseSCProductEntries(long licenseId)
           
static SCProductEntry createSCProductEntry(long productEntryId)
          Creates a new s c product entry with the primary key.
static PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
static void deleteProductEntries(long groupId)
           
static SCProductEntry deleteProductEntry(long productEntryId)
           
static SCProductEntry deleteProductEntry(SCProductEntry productEntry)
           
static void deleteSCLicenseSCProductEntries(long licenseId, List<SCProductEntry> SCProductEntries)
           
static void deleteSCLicenseSCProductEntries(long licenseId, long[] productEntryIds)
           
static void deleteSCLicenseSCProductEntry(long licenseId, long productEntryId)
           
static void deleteSCLicenseSCProductEntry(long licenseId, SCProductEntry scProductEntry)
           
static SCProductEntry deleteSCProductEntry(long productEntryId)
          Deletes the s c product entry with the primary key from the database.
static SCProductEntry deleteSCProductEntry(SCProductEntry scProductEntry)
          Deletes the s c product entry from the database.
static DynamicQuery dynamicQuery()
           
static
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
static
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
static
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
static long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
static SCProductEntry fetchSCProductEntry(long productEntryId)
           
static ActionableDynamicQuery getActionableDynamicQuery()
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static List<SCProductEntry> getCompanyProductEntries(long companyId, int start, int end)
           
static int getCompanyProductEntriesCount(long companyId)
           
static PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
static List<SCProductEntry> getProductEntries(long groupId, int start, int end)
           
static List<SCProductEntry> getProductEntries(long groupId, int start, int end, OrderByComparator<SCProductEntry> 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<SCProductEntry> 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 long[] getSCLicensePrimaryKeys(long productEntryId)
          Returns the licenseIds of the s c licenses associated with the s c product entry.
static List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId)
           
static List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId, int start, int end)
           
static List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId, int start, int end, OrderByComparator<SCProductEntry> orderByComparator)
           
static int getSCLicenseSCProductEntriesCount(long licenseId)
           
static List<SCProductEntry> getSCProductEntries(int start, int end)
          Returns a range of all the s c product entries.
static int getSCProductEntriesCount()
          Returns the number of s c product entries.
static SCProductEntry getSCProductEntry(long productEntryId)
          Returns the s c product entry with the primary key.
static SCProductEntryLocalService getService()
           
static boolean hasSCLicenseSCProductEntries(long licenseId)
           
static boolean hasSCLicenseSCProductEntry(long licenseId, long productEntryId)
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
static void setSCLicenseSCProductEntries(long licenseId, long[] productEntryIds)
           
 void setService(SCProductEntryLocalService service)
          Deprecated. As of 6.2.0
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 or adds it if it does not yet exist.
 
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

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
Throws:
PortalException

addProductEntryResources

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

addProductEntryResources

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

addProductEntryResources

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

addProductEntryResources

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

addSCLicenseSCProductEntries

public static void addSCLicenseSCProductEntries(long licenseId,
                                                List<SCProductEntry> SCProductEntries)

addSCLicenseSCProductEntries

public static void addSCLicenseSCProductEntries(long licenseId,
                                                long[] productEntryIds)

addSCLicenseSCProductEntry

public static void addSCLicenseSCProductEntry(long licenseId,
                                              long productEntryId)

addSCLicenseSCProductEntry

public static void addSCLicenseSCProductEntry(long licenseId,
                                              SCProductEntry scProductEntry)

addSCProductEntry

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

Parameters:
scProductEntry - the s c product entry
Returns:
the s c product entry that was added

clearSCLicenseSCProductEntries

public static void clearSCLicenseSCProductEntries(long licenseId)

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

deletePersistedModel

public static PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                           throws PortalException
Throws:
PortalException

deleteProductEntries

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

deleteProductEntry

public static SCProductEntry deleteProductEntry(SCProductEntry productEntry)
                                         throws PortalException
Throws:
PortalException

deleteProductEntry

public static SCProductEntry deleteProductEntry(long productEntryId)
                                         throws PortalException
Throws:
PortalException

deleteSCLicenseSCProductEntries

public static void deleteSCLicenseSCProductEntries(long licenseId,
                                                   List<SCProductEntry> SCProductEntries)

deleteSCLicenseSCProductEntries

public static void deleteSCLicenseSCProductEntries(long licenseId,
                                                   long[] productEntryIds)

deleteSCLicenseSCProductEntry

public static void deleteSCLicenseSCProductEntry(long licenseId,
                                                 long productEntryId)

deleteSCLicenseSCProductEntry

public static void deleteSCLicenseSCProductEntry(long licenseId,
                                                 SCProductEntry scProductEntry)

deleteSCProductEntry

public static SCProductEntry deleteSCProductEntry(long productEntryId)
                                           throws PortalException
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
Returns:
the s c product entry that was removed
Throws:
PortalException - if a s c product entry with the primary key could not be found

deleteSCProductEntry

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

Parameters:
scProductEntry - the s c product entry
Returns:
the s c product entry that was removed

dynamicQuery

public static DynamicQuery dynamicQuery()

dynamicQuery

public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                       int start,
                                       int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                       int start,
                                       int end,
                                       OrderByComparator<T> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery,
                                     Projection projection)
Returns the number of rows matching the dynamic query.

Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchSCProductEntry

public static SCProductEntry fetchSCProductEntry(long productEntryId)

getActionableDynamicQuery

public static ActionableDynamicQuery getActionableDynamicQuery()

getBeanIdentifier

public static String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

getCompanyProductEntries

public static List<SCProductEntry> getCompanyProductEntries(long companyId,
                                                            int start,
                                                            int end)

getCompanyProductEntriesCount

public static int getCompanyProductEntriesCount(long companyId)

getPersistedModel

public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                        throws PortalException
Throws:
PortalException

getProductEntries

public static List<SCProductEntry> getProductEntries(long groupId,
                                                     int start,
                                                     int end)

getProductEntries

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

getProductEntries

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

getProductEntries

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

getProductEntriesCount

public static int getProductEntriesCount(long groupId)

getProductEntriesCount

public static int getProductEntriesCount(long groupId,
                                         long userId)

getProductEntry

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

getRepositoryXML

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

getRepositoryXML

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

getSCLicensePrimaryKeys

public static long[] getSCLicensePrimaryKeys(long productEntryId)
Returns the licenseIds of the s c licenses associated with the s c product entry.

Parameters:
productEntryId - the productEntryId of the s c product entry
Returns:
long[] the licenseIds of s c licenses associated with the s c product entry

getSCLicenseSCProductEntries

public static List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId)

getSCLicenseSCProductEntries

public static List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId,
                                                                int start,
                                                                int end)

getSCLicenseSCProductEntries

public static List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId,
                                                                int start,
                                                                int end,
                                                                OrderByComparator<SCProductEntry> orderByComparator)

getSCLicenseSCProductEntriesCount

public static int getSCLicenseSCProductEntriesCount(long licenseId)

getSCProductEntries

public static List<SCProductEntry> getSCProductEntries(int start,
                                                       int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
Returns:
the range of s c product entries

getSCProductEntriesCount

public static int getSCProductEntriesCount()
Returns the number of s c product entries.

Returns:
the number of s c product entries

getSCProductEntry

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

Parameters:
productEntryId - the primary key of the s c product entry
Returns:
the s c product entry
Throws:
PortalException - if a s c product entry with the primary key could not be found

hasSCLicenseSCProductEntries

public static boolean hasSCLicenseSCProductEntries(long licenseId)

hasSCLicenseSCProductEntry

public static boolean hasSCLicenseSCProductEntry(long licenseId,
                                                 long productEntryId)

setBeanIdentifier

public static void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

setSCLicenseSCProductEntries

public static void setSCLicenseSCProductEntries(long licenseId,
                                                long[] productEntryIds)

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
Throws:
PortalException

updateSCProductEntry

public static SCProductEntry updateSCProductEntry(SCProductEntry scProductEntry)
Updates the s c product entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Parameters:
scProductEntry - the s c product entry
Returns:
the s c product entry that was updated

getService

public static SCProductEntryLocalService getService()

setService

@Deprecated
public void setService(SCProductEntryLocalService service)
Deprecated. As of 6.2.0


Liferay 7.0-ce-m3