|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface IGImageLocalService
The interface for the i g image local service.
Never modify or reference this interface directly. Always use IGImageLocalServiceUtil
to access the i g image local service. Add custom service methods to IGImageLocalServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.
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.
IGImageLocalServiceUtil
,
IGImageLocalServiceBaseImpl
,
IGImageLocalServiceImpl
Method Summary | |
---|---|
IGImage |
addIGImage(IGImage igImage)
Adds the i g image to the database. |
IGImage |
addImage(long userId,
long groupId,
long folderId,
String name,
String description,
File file,
String contentType,
ServiceContext serviceContext)
|
IGImage |
addImage(long userId,
long groupId,
long folderId,
String name,
String description,
String fileName,
byte[] bytes,
String contentType,
ServiceContext serviceContext)
|
IGImage |
addImage(long userId,
long groupId,
long folderId,
String name,
String description,
String fileName,
InputStream is,
String contentType,
ServiceContext serviceContext)
|
void |
addImageResources(IGImage image,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addImageResources(IGImage image,
String[] communityPermissions,
String[] guestPermissions)
|
void |
addImageResources(long imageId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addImageResources(long imageId,
String[] communityPermissions,
String[] guestPermissions)
|
IGImage |
createIGImage(long imageId)
Creates a new i g image with the primary key. |
void |
deleteIGImage(IGImage igImage)
Deletes the i g image from the database. |
void |
deleteIGImage(long imageId)
Deletes the i g image with the primary key from the database. |
void |
deleteImage(IGImage image)
|
void |
deleteImage(long imageId)
|
void |
deleteImages(long groupId,
long folderId)
|
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)
Counts the number of rows that match the dynamic query. |
int |
getFoldersImagesCount(long groupId,
List<Long> folderIds)
|
List<IGImage> |
getGroupImages(long groupId,
int start,
int end)
|
List<IGImage> |
getGroupImages(long groupId,
long userId,
int start,
int end)
|
int |
getGroupImagesCount(long groupId)
|
int |
getGroupImagesCount(long groupId,
long userId)
|
IGImage |
getIGImage(long imageId)
Gets the i g image with the primary key. |
IGImage |
getIGImageByUuidAndGroupId(String uuid,
long groupId)
Gets the i g image with the UUID and group id. |
List<IGImage> |
getIGImages(int start,
int end)
Gets a range of all the i g images. |
int |
getIGImagesCount()
Gets the number of i g images. |
IGImage |
getImage(long imageId)
|
IGImage |
getImageByCustom1ImageId(long custom1ImageId)
|
IGImage |
getImageByCustom2ImageId(long custom2ImageId)
|
IGImage |
getImageByFolderIdAndNameWithExtension(long groupId,
long folderId,
String nameWithExtension)
|
IGImage |
getImageByLargeImageId(long largeImageId)
|
IGImage |
getImageBySmallImageId(long smallImageId)
|
IGImage |
getImageByUuidAndGroupId(String uuid,
long groupId)
|
List<IGImage> |
getImages(long groupId,
long folderId)
|
List<IGImage> |
getImages(long groupId,
long folderId,
int start,
int end)
|
List<IGImage> |
getImages(long groupId,
long folderId,
int start,
int end,
OrderByComparator obc)
|
int |
getImagesCount(long groupId,
long folderId)
|
List<IGImage> |
getNoAssetImages()
|
void |
updateAsset(long userId,
IGImage image,
long[] assetCategoryIds,
String[] assetTagNames,
String contentType)
|
IGImage |
updateIGImage(IGImage igImage)
Updates the i g image in the database. |
IGImage |
updateIGImage(IGImage igImage,
boolean merge)
Updates the i g image in the database. |
IGImage |
updateImage(long userId,
long imageId,
long groupId,
long folderId,
String name,
String description,
byte[] bytes,
String contentType,
ServiceContext serviceContext)
|
IGImage |
updateImage(long userId,
long imageId,
long groupId,
long folderId,
String name,
String description,
File file,
String contentType,
ServiceContext serviceContext)
|
IGImage |
updateImage(long userId,
long imageId,
long groupId,
long folderId,
String name,
String description,
InputStream is,
String contentType,
ServiceContext serviceContext)
|
void |
updateSmallImage(long smallImageId,
long largeImageId)
|
Method Detail |
---|
IGImage addIGImage(IGImage igImage) throws SystemException
igImage
- the i g image to add
SystemException
- if a system exception occurredIGImage createIGImage(long imageId)
imageId
- the primary key for the new i g image
void deleteIGImage(long imageId) throws PortalException, SystemException
imageId
- the primary key of the i g image to delete
PortalException
- if a i g image with the primary key could not be found
SystemException
- if a system exception occurredvoid deleteIGImage(IGImage igImage) throws SystemException
igImage
- the i g image to delete
SystemException
- if a system exception occurredList dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredList 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 query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)
SystemException
- if a system exception occurredList 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 query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredlong dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) IGImage getIGImage(long imageId) throws PortalException, SystemException
imageId
- the primary key of the i g image to get
PortalException
- if a i g image with the primary key could not be found
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) IGImage getIGImageByUuidAndGroupId(String uuid, long groupId) throws PortalException, SystemException
uuid
- the UUID of i g image to getgroupId
- the group id of the i g image to get
PortalException
- if a i g image with the UUID and group id could not be found
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) 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 images to returnend
- the upper bound of the range of i g images to return (not inclusive)
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) int getIGImagesCount() throws SystemException
SystemException
- if a system exception occurredIGImage updateIGImage(IGImage igImage) throws SystemException
igImage
- the i g image to update
SystemException
- if a system exception occurredIGImage updateIGImage(IGImage igImage, boolean merge) throws SystemException
igImage
- the i g image to updatemerge
- 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 occurredIGImage addImage(long userId, long groupId, long folderId, String name, String description, File file, String contentType, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
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
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
void addImageResources(IGImage image, boolean addCommunityPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
void addImageResources(IGImage image, String[] communityPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
void addImageResources(long imageId, boolean addCommunityPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
void addImageResources(long imageId, String[] communityPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
void deleteImage(IGImage image) throws PortalException, SystemException
PortalException
SystemException
void deleteImage(long imageId) throws PortalException, SystemException
PortalException
SystemException
void deleteImages(long groupId, long folderId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getFoldersImagesCount(long groupId, List<Long> folderIds) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<IGImage> getGroupImages(long groupId, int start, int end) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<IGImage> getGroupImages(long groupId, long userId, int start, int end) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupImagesCount(long groupId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupImagesCount(long groupId, long userId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) IGImage getImage(long imageId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) IGImage getImageByCustom1ImageId(long custom1ImageId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) IGImage getImageByCustom2ImageId(long custom2ImageId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) IGImage getImageByFolderIdAndNameWithExtension(long groupId, long folderId, String nameWithExtension) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) IGImage getImageByLargeImageId(long largeImageId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) IGImage getImageBySmallImageId(long smallImageId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) IGImage getImageByUuidAndGroupId(String uuid, long groupId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<IGImage> getImages(long groupId, long folderId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<IGImage> getImages(long groupId, long folderId, int start, int end) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<IGImage> getImages(long groupId, long folderId, int start, int end, OrderByComparator obc) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getImagesCount(long groupId, long folderId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<IGImage> getNoAssetImages() throws SystemException
SystemException
void updateAsset(long userId, IGImage image, long[] assetCategoryIds, String[] assetTagNames, String contentType) throws PortalException, SystemException
PortalException
SystemException
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
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
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
void updateSmallImage(long smallImageId, long largeImageId) throws PortalException, SystemException
PortalException
SystemException
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |