|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.imagegallery.service.IGImageLocalServiceUtil
public class IGImageLocalServiceUtil
The utility for the i g image local service. This utility wraps com.liferay.portlet.imagegallery.service.impl.IGImageLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server.
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.
IGImageLocalService,
com.liferay.portlet.imagegallery.service.base.IGImageLocalServiceBaseImpl,
com.liferay.portlet.imagegallery.service.impl.IGImageLocalServiceImpl| Constructor Summary | |
|---|---|
IGImageLocalServiceUtil()
|
|
| Method Summary | |
|---|---|
static IGImage |
addIGImage(IGImage igImage)
Adds the i g image to the database. |
static IGImage |
addImage(long userId,
long groupId,
long folderId,
String name,
String description,
File file,
String contentType,
ServiceContext serviceContext)
|
static IGImage |
addImage(long userId,
long groupId,
long folderId,
String name,
String description,
String fileName,
byte[] bytes,
String contentType,
ServiceContext serviceContext)
|
static IGImage |
addImage(long userId,
long groupId,
long folderId,
String name,
String description,
String fileName,
InputStream is,
String contentType,
ServiceContext serviceContext)
|
static void |
addImageResources(IGImage image,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addImageResources(IGImage image,
String[] communityPermissions,
String[] guestPermissions)
|
static void |
addImageResources(long imageId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addImageResources(long imageId,
String[] communityPermissions,
String[] guestPermissions)
|
static IGImage |
createIGImage(long imageId)
Creates a new i g image with the primary key. |
static void |
deleteIGImage(IGImage igImage)
Deletes the i g image from the database. |
static void |
deleteIGImage(long imageId)
Deletes the i g image with the primary key from the database. |
static void |
deleteImage(IGImage image)
|
static void |
deleteImage(long imageId)
|
static void |
deleteImages(long groupId,
long folderId)
|
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)
Returns the number of rows that match the dynamic query. |
static String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
static int |
getFoldersImagesCount(long groupId,
List<Long> folderIds)
|
static List<IGImage> |
getGroupImages(long groupId,
int start,
int end)
|
static List<IGImage> |
getGroupImages(long groupId,
long userId,
int start,
int end)
|
static int |
getGroupImagesCount(long groupId)
|
static int |
getGroupImagesCount(long groupId,
long userId)
|
static IGImage |
getIGImage(long imageId)
Returns the i g image with the primary key. |
static IGImage |
getIGImageByUuidAndGroupId(String uuid,
long groupId)
Returns the i g image with the UUID in the group. |
static List<IGImage> |
getIGImages(int start,
int end)
Returns a range of all the i g images. |
static int |
getIGImagesCount()
Returns the number of i g images. |
static IGImage |
getImage(long imageId)
|
static IGImage |
getImageByCustom1ImageId(long custom1ImageId)
|
static IGImage |
getImageByCustom2ImageId(long custom2ImageId)
|
static IGImage |
getImageByFolderIdAndNameWithExtension(long groupId,
long folderId,
String nameWithExtension)
|
static IGImage |
getImageByLargeImageId(long largeImageId)
|
static IGImage |
getImageBySmallImageId(long smallImageId)
|
static IGImage |
getImageByUuidAndGroupId(String uuid,
long groupId)
|
static List<IGImage> |
getImages(long groupId,
long folderId)
|
static List<IGImage> |
getImages(long groupId,
long folderId,
int start,
int end)
|
static List<IGImage> |
getImages(long groupId,
long folderId,
int start,
int end,
OrderByComparator obc)
|
static int |
getImagesCount(long groupId,
long folderId)
|
static List<IGImage> |
getNoAssetImages()
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
static IGImageLocalService |
getService()
|
static void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
void |
setService(IGImageLocalService service)
|
static void |
updateAsset(long userId,
IGImage image,
long[] assetCategoryIds,
String[] assetTagNames,
String contentType)
|
static IGImage |
updateIGImage(IGImage igImage)
Updates the i g image in the database or adds it if it does not yet exist. |
static IGImage |
updateIGImage(IGImage igImage,
boolean merge)
Updates the i g image in the database or adds it if it does not yet exist. |
static IGImage |
updateImage(long userId,
long imageId,
long groupId,
long folderId,
String name,
String description,
byte[] bytes,
String contentType,
ServiceContext serviceContext)
|
static IGImage |
updateImage(long userId,
long imageId,
long groupId,
long folderId,
String name,
String description,
File file,
String contentType,
ServiceContext serviceContext)
|
static IGImage |
updateImage(long userId,
long imageId,
long groupId,
long folderId,
String name,
String description,
InputStream is,
String contentType,
ServiceContext serviceContext)
|
static void |
updateSmallImage(long smallImageId,
long largeImageId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IGImageLocalServiceUtil()
| Method Detail |
|---|
public static IGImage addIGImage(IGImage igImage)
throws SystemException
igImage - the i g image
SystemException - if a system exception occurredpublic static IGImage createIGImage(long imageId)
imageId - the primary key for the new i g image
public static void deleteIGImage(long imageId)
throws PortalException,
SystemException
imageId - the primary key of the i g image
PortalException - if a i g image with the primary key could not be found
SystemException - if a system exception occurred
public static void deleteIGImage(IGImage igImage)
throws SystemException
igImage - the i g image
SystemException - if a system exception occurred
public static List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
dynamicQuery - the dynamic query
SystemException - if a system exception occurred
public static List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
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.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)
SystemException - if a system exception occurred
public static List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public static long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
dynamicQuery - the dynamic query
SystemException - if a system exception occurred
public static IGImage getIGImage(long imageId)
throws PortalException,
SystemException
imageId - the primary key of the i g image
PortalException - if a i g image with the primary key could not be found
SystemException - if a system exception occurred
public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
throws PortalException,
SystemException
PortalException
SystemException
public static IGImage getIGImageByUuidAndGroupId(String uuid,
long groupId)
throws PortalException,
SystemException
uuid - the UUID of i g imagegroupId - the group id of the i g image
PortalException - if a i g image with the UUID in the group could not be found
SystemException - if a system exception occurred
public static List<IGImage> getIGImages(int start,
int end)
throws SystemException
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.
start - the lower bound of the range of i g imagesend - the upper bound of the range of i g images (not inclusive)
SystemException - if a system exception occurred
public static int getIGImagesCount()
throws SystemException
SystemException - if a system exception occurred
public static IGImage updateIGImage(IGImage igImage)
throws SystemException
igImage - the i g image
SystemException - if a system exception occurred
public static IGImage updateIGImage(IGImage igImage,
boolean merge)
throws SystemException
igImage - the i g imagemerge - whether to merge the i g image with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
SystemException - if a system exception occurredpublic static String getBeanIdentifier()
public static void setBeanIdentifier(String beanIdentifier)
beanIdentifier - the Spring bean ID for this bean
public static IGImage addImage(long userId,
long groupId,
long folderId,
String name,
String description,
File file,
String contentType,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemException
public static IGImage addImage(long userId,
long groupId,
long folderId,
String name,
String description,
String fileName,
byte[] bytes,
String contentType,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemException
public static IGImage addImage(long userId,
long groupId,
long folderId,
String name,
String description,
String fileName,
InputStream is,
String contentType,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemException
public static void addImageResources(IGImage image,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
PortalException
SystemException
public static void addImageResources(IGImage image,
String[] communityPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
PortalException
SystemException
public static void addImageResources(long imageId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
PortalException
SystemException
public static void addImageResources(long imageId,
String[] communityPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
PortalException
SystemException
public static void deleteImage(IGImage image)
throws PortalException,
SystemException
PortalException
SystemException
public static void deleteImage(long imageId)
throws PortalException,
SystemException
PortalException
SystemException
public static void deleteImages(long groupId,
long folderId)
throws PortalException,
SystemException
PortalException
SystemException
public static int getFoldersImagesCount(long groupId,
List<Long> folderIds)
throws SystemException
SystemException
public static List<IGImage> getGroupImages(long groupId,
int start,
int end)
throws SystemException
SystemException
public static List<IGImage> getGroupImages(long groupId,
long userId,
int start,
int end)
throws SystemException
SystemException
public static int getGroupImagesCount(long groupId)
throws SystemException
SystemException
public static int getGroupImagesCount(long groupId,
long userId)
throws SystemException
SystemException
public static IGImage getImage(long imageId)
throws PortalException,
SystemException
PortalException
SystemException
public static IGImage getImageByCustom1ImageId(long custom1ImageId)
throws PortalException,
SystemException
PortalException
SystemException
public static IGImage getImageByCustom2ImageId(long custom2ImageId)
throws PortalException,
SystemException
PortalException
SystemException
public static IGImage getImageByFolderIdAndNameWithExtension(long groupId,
long folderId,
String nameWithExtension)
throws PortalException,
SystemException
PortalException
SystemException
public static IGImage getImageByLargeImageId(long largeImageId)
throws PortalException,
SystemException
PortalException
SystemException
public static IGImage getImageBySmallImageId(long smallImageId)
throws PortalException,
SystemException
PortalException
SystemException
public static IGImage getImageByUuidAndGroupId(String uuid,
long groupId)
throws PortalException,
SystemException
PortalException
SystemException
public static List<IGImage> getImages(long groupId,
long folderId)
throws SystemException
SystemException
public static List<IGImage> getImages(long groupId,
long folderId,
int start,
int end)
throws SystemException
SystemException
public static List<IGImage> getImages(long groupId,
long folderId,
int start,
int end,
OrderByComparator obc)
throws SystemException
SystemException
public static int getImagesCount(long groupId,
long folderId)
throws SystemException
SystemException
public static List<IGImage> getNoAssetImages()
throws SystemException
SystemException
public static void updateAsset(long userId,
IGImage image,
long[] assetCategoryIds,
String[] assetTagNames,
String contentType)
throws PortalException,
SystemException
PortalException
SystemException
public static IGImage updateImage(long userId,
long imageId,
long groupId,
long folderId,
String name,
String description,
byte[] bytes,
String contentType,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemException
public static IGImage updateImage(long userId,
long imageId,
long groupId,
long folderId,
String name,
String description,
File file,
String contentType,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemException
public static IGImage updateImage(long userId,
long imageId,
long groupId,
long folderId,
String name,
String description,
InputStream is,
String contentType,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemException
public static void updateSmallImage(long smallImageId,
long largeImageId)
throws PortalException,
SystemException
PortalException
SystemExceptionpublic static IGImageLocalService getService()
public void setService(IGImageLocalService service)
|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||