Liferay 6.2-ce-ga5

com.liferay.portlet.softwarecatalog.service
Interface SCProductEntryLocalService

All Superinterfaces:
BaseLocalService, PersistedModelLocalService
All Known Implementing Classes:
SCProductEntryLocalServiceWrapper

@ProviderType
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface SCProductEntryLocalService
extends BaseLocalService, PersistedModelLocalService

Provides the local service interface for SCProductEntry. 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:
SCProductEntryLocalServiceUtil, com.liferay.portlet.softwarecatalog.service.base.SCProductEntryLocalServiceBaseImpl, com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryLocalServiceImpl

Method Summary
 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)
           
 void addProductEntryResources(long productEntryId, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addProductEntryResources(long productEntryId, String[] groupPermissions, String[] guestPermissions)
           
 void addProductEntryResources(SCProductEntry productEntry, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addProductEntryResources(SCProductEntry productEntry, String[] groupPermissions, String[] guestPermissions)
           
 void addSCLicenseSCProductEntries(long licenseId, List<SCProductEntry> SCProductEntries)
           
 void addSCLicenseSCProductEntries(long licenseId, long[] productEntryIds)
           
 void addSCLicenseSCProductEntry(long licenseId, long productEntryId)
           
 void addSCLicenseSCProductEntry(long licenseId, SCProductEntry scProductEntry)
           
 SCProductEntry addSCProductEntry(SCProductEntry scProductEntry)
          Adds the s c product entry to the database.
 void clearSCLicenseSCProductEntries(long licenseId)
           
 SCProductEntry createSCProductEntry(long productEntryId)
          Creates a new s c product entry with the primary key.
 void deleteProductEntries(long groupId)
           
 SCProductEntry deleteProductEntry(long productEntryId)
           
 SCProductEntry deleteProductEntry(SCProductEntry productEntry)
           
 void deleteSCLicenseSCProductEntries(long licenseId, List<SCProductEntry> SCProductEntries)
           
 void deleteSCLicenseSCProductEntries(long licenseId, long[] productEntryIds)
           
 void deleteSCLicenseSCProductEntry(long licenseId, long productEntryId)
           
 void deleteSCLicenseSCProductEntry(long licenseId, SCProductEntry scProductEntry)
           
 SCProductEntry deleteSCProductEntry(long productEntryId)
          Deletes the s c product entry with the primary key from the database.
 SCProductEntry deleteSCProductEntry(SCProductEntry scProductEntry)
          Deletes the s c product entry from the database.
 DynamicQuery dynamicQuery()
           
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 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.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows that match the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows that match the dynamic query.
 SCProductEntry fetchSCProductEntry(long productEntryId)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 List<SCProductEntry> getCompanyProductEntries(long companyId, int start, int end)
           
 int getCompanyProductEntriesCount(long companyId)
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 List<SCProductEntry> getProductEntries(long groupId, int start, int end)
           
 List<SCProductEntry> getProductEntries(long groupId, int start, int end, OrderByComparator obc)
           
 List<SCProductEntry> getProductEntries(long groupId, long userId, int start, int end)
           
 List<SCProductEntry> getProductEntries(long groupId, long userId, int start, int end, OrderByComparator obc)
           
 int getProductEntriesCount(long groupId)
           
 int getProductEntriesCount(long groupId, long userId)
           
 SCProductEntry getProductEntry(long productEntryId)
           
 String getRepositoryXML(long groupId, String baseImageURL, Date oldestDate, int maxNumOfVersions, Properties repoSettings)
           
 String getRepositoryXML(long groupId, String version, String baseImageURL, Date oldestDate, int maxNumOfVersions, Properties repoSettings)
           
 List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId)
           
 List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId, int start, int end)
           
 List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId, int start, int end, OrderByComparator orderByComparator)
           
 int getSCLicenseSCProductEntriesCount(long licenseId)
           
 List<SCProductEntry> getSCProductEntries(int start, int end)
          Returns a range of all the s c product entries.
 int getSCProductEntriesCount()
          Returns the number of s c product entries.
 SCProductEntry getSCProductEntry(long productEntryId)
          Returns the s c product entry with the primary key.
 boolean hasSCLicenseSCProductEntries(long licenseId)
           
 boolean hasSCLicenseSCProductEntry(long licenseId, long productEntryId)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setSCLicenseSCProductEntries(long licenseId, long[] productEntryIds)
           
 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)
           
 SCProductEntry updateSCProductEntry(SCProductEntry scProductEntry)
          Updates the s c product entry in the database or adds it if it does not yet exist.
 

Method Detail

addSCProductEntry

@Indexable(type=REINDEX)
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
Returns:
the s c product entry that was added
Throws:
SystemException - if a system exception occurred

createSCProductEntry

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

@Indexable(type=DELETE)
SCProductEntry 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
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
SystemException - if a system exception occurred

deleteSCProductEntry

@Indexable(type=DELETE)
SCProductEntry 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
Returns:
the s c product entry that was removed
Throws:
SystemException - if a system exception occurred

dynamicQuery

DynamicQuery dynamicQuery()

dynamicQuery

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

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

dynamicQuery

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. 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
Throws:
SystemException - if a system exception occurred

dynamicQuery

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. 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
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

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

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

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery,
                       Projection projection)
                       throws SystemException
Returns the number of rows that match the dynamic query.

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

fetchSCProductEntry

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCProductEntry fetchSCProductEntry(long productEntryId)
                                   throws SystemException
Throws:
SystemException

getSCProductEntry

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCProductEntry getSCProductEntry(long productEntryId)
                                 throws PortalException,
                                        SystemException
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
SystemException - if a system exception occurred

getPersistedModel

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException,
                                        SystemException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Throws:
PortalException
SystemException

getSCProductEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<SCProductEntry> getSCProductEntries(int start,
                                                                                  int end)
                                         throws SystemException
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
Throws:
SystemException - if a system exception occurred

getSCProductEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getSCProductEntriesCount()
                             throws SystemException
Returns the number of s c product entries.

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

updateSCProductEntry

@Indexable(type=REINDEX)
SCProductEntry updateSCProductEntry(SCProductEntry scProductEntry)
                                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

addSCLicenseSCProductEntry

void addSCLicenseSCProductEntry(long licenseId,
                                long productEntryId)
                                throws SystemException
Throws:
SystemException - if a system exception occurred

addSCLicenseSCProductEntry

void addSCLicenseSCProductEntry(long licenseId,
                                SCProductEntry scProductEntry)
                                throws SystemException
Throws:
SystemException - if a system exception occurred

addSCLicenseSCProductEntries

void addSCLicenseSCProductEntries(long licenseId,
                                  long[] productEntryIds)
                                  throws SystemException
Throws:
SystemException - if a system exception occurred

addSCLicenseSCProductEntries

void addSCLicenseSCProductEntries(long licenseId,
                                  List<SCProductEntry> SCProductEntries)
                                  throws SystemException
Throws:
SystemException - if a system exception occurred

clearSCLicenseSCProductEntries

void clearSCLicenseSCProductEntries(long licenseId)
                                    throws SystemException
Throws:
SystemException - if a system exception occurred

deleteSCLicenseSCProductEntry

void deleteSCLicenseSCProductEntry(long licenseId,
                                   long productEntryId)
                                   throws SystemException
Throws:
SystemException - if a system exception occurred

deleteSCLicenseSCProductEntry

void deleteSCLicenseSCProductEntry(long licenseId,
                                   SCProductEntry scProductEntry)
                                   throws SystemException
Throws:
SystemException - if a system exception occurred

deleteSCLicenseSCProductEntries

void deleteSCLicenseSCProductEntries(long licenseId,
                                     long[] productEntryIds)
                                     throws SystemException
Throws:
SystemException - if a system exception occurred

deleteSCLicenseSCProductEntries

void deleteSCLicenseSCProductEntries(long licenseId,
                                     List<SCProductEntry> SCProductEntries)
                                     throws SystemException
Throws:
SystemException - if a system exception occurred

getSCLicenseSCProductEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId)
                                                  throws SystemException
Throws:
SystemException - if a system exception occurred

getSCLicenseSCProductEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId,
                                                                                           int start,
                                                                                           int end)
                                                  throws SystemException
Throws:
SystemException - if a system exception occurred

getSCLicenseSCProductEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId,
                                                                                           int start,
                                                                                           int end,
                                                                                           OrderByComparator orderByComparator)
                                                  throws SystemException
Throws:
SystemException - if a system exception occurred

getSCLicenseSCProductEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getSCLicenseSCProductEntriesCount(long licenseId)
                                      throws SystemException
Throws:
SystemException - if a system exception occurred

hasSCLicenseSCProductEntry

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasSCLicenseSCProductEntry(long licenseId,
                                                                            long productEntryId)
                                   throws SystemException
Throws:
SystemException - if a system exception occurred

hasSCLicenseSCProductEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasSCLicenseSCProductEntries(long licenseId)
                                     throws SystemException
Throws:
SystemException - if a system exception occurred

setSCLicenseSCProductEntries

void setSCLicenseSCProductEntries(long licenseId,
                                  long[] productEntryIds)
                                  throws SystemException
Throws:
SystemException - if a system exception occurred

getBeanIdentifier

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

Returns:
the Spring bean ID for this bean

setBeanIdentifier

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

Parameters:
beanIdentifier - the Spring bean ID for this bean

addProductEntry

@Indexable(type=REINDEX)
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

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

addProductEntryResources

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

addProductEntryResources

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

addProductEntryResources

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

deleteProductEntries

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

deleteProductEntry

@Indexable(type=DELETE)
SCProductEntry deleteProductEntry(long productEntryId)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

deleteProductEntry

@Indexable(type=DELETE)
SCProductEntry deleteProductEntry(SCProductEntry productEntry)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getCompanyProductEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<SCProductEntry> getCompanyProductEntries(long companyId,
                                                                                       int start,
                                                                                       int end)
                                              throws SystemException
Throws:
SystemException

getCompanyProductEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCompanyProductEntriesCount(long companyId)
                                  throws SystemException
Throws:
SystemException

getProductEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<SCProductEntry> getProductEntries(long groupId,
                                                                                int start,
                                                                                int end)
                                       throws SystemException
Throws:
SystemException

getProductEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<SCProductEntry> getProductEntries(long groupId,
                                                                                int start,
                                                                                int end,
                                                                                OrderByComparator obc)
                                       throws SystemException
Throws:
SystemException

getProductEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<SCProductEntry> getProductEntries(long groupId,
                                                                                long userId,
                                                                                int start,
                                                                                int end)
                                       throws SystemException
Throws:
SystemException

getProductEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<SCProductEntry> getProductEntries(long groupId,
                                                                                long userId,
                                                                                int start,
                                                                                int end,
                                                                                OrderByComparator obc)
                                       throws SystemException
Throws:
SystemException

getProductEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getProductEntriesCount(long groupId)
                           throws SystemException
Throws:
SystemException

getProductEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getProductEntriesCount(long groupId,
                                                                    long userId)
                           throws SystemException
Throws:
SystemException

getProductEntry

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCProductEntry getProductEntry(long productEntryId)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getRepositoryXML

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String getRepositoryXML(long groupId,
                                                                 String baseImageURL,
                                                                 Date oldestDate,
                                                                 int maxNumOfVersions,
                                                                 Properties repoSettings)
                        throws SystemException
Throws:
SystemException

getRepositoryXML

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String getRepositoryXML(long groupId,
                                                                 String version,
                                                                 String baseImageURL,
                                                                 Date oldestDate,
                                                                 int maxNumOfVersions,
                                                                 Properties repoSettings)
                        throws SystemException
Throws:
SystemException

updateProductEntry

@Indexable(type=REINDEX)
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

Liferay 6.2-ce-ga5