com.liferay.portlet.imagegallery.service
Class IGImageServiceUtil
java.lang.Object
com.liferay.portlet.imagegallery.service.IGImageServiceUtil
public class IGImageServiceUtil
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This class provides static methods for the
com.liferay.portlet.imagegallery.service.IGImageService
bean. The static methods of this class calls the same methods of the bean
instance. It's convenient to be able to just write one line to call a method
on a bean instead of writing a lookup call and a method call.
- Author:
- Brian Wing Shun Chan
- See Also:
IGImageService
Method Summary |
static IGImage |
addImage(long folderId,
java.lang.String name,
java.lang.String description,
java.io.File file,
java.lang.String contentType,
java.lang.String[] tagsEntries,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static IGImage |
addImage(long folderId,
java.lang.String name,
java.lang.String description,
java.io.File file,
java.lang.String contentType,
java.lang.String[] tagsEntries,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
static void |
deleteImage(long imageId)
|
static void |
deleteImageByFolderIdAndNameWithExtension(long folderId,
java.lang.String nameWithExtension)
|
static IGImage |
getImage(long imageId)
|
static IGImage |
getImageByFolderIdAndNameWithExtension(long folderId,
java.lang.String nameWithExtension)
|
static IGImage |
getImageByLargeImageId(long largeImageId)
|
static IGImage |
getImageBySmallImageId(long smallImageId)
|
static java.util.List<IGImage> |
getImages(long folderId)
|
static IGImageService |
getService()
|
void |
setService(IGImageService service)
|
static IGImage |
updateImage(long imageId,
long folderId,
java.lang.String name,
java.lang.String description,
java.io.File file,
java.lang.String contentType,
java.lang.String[] tagsEntries)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IGImageServiceUtil
public IGImageServiceUtil()
addImage
public static IGImage addImage(long folderId,
java.lang.String name,
java.lang.String description,
java.io.File file,
java.lang.String contentType,
java.lang.String[] tagsEntries,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
addImage
public static IGImage addImage(long folderId,
java.lang.String name,
java.lang.String description,
java.io.File file,
java.lang.String contentType,
java.lang.String[] tagsEntries,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
deleteImage
public static void deleteImage(long imageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
deleteImageByFolderIdAndNameWithExtension
public static void deleteImageByFolderIdAndNameWithExtension(long folderId,
java.lang.String nameWithExtension)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
getImage
public static IGImage getImage(long imageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
getImageByFolderIdAndNameWithExtension
public static IGImage getImageByFolderIdAndNameWithExtension(long folderId,
java.lang.String nameWithExtension)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
getImageByLargeImageId
public static IGImage getImageByLargeImageId(long largeImageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
getImageBySmallImageId
public static IGImage getImageBySmallImageId(long smallImageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
getImages
public static java.util.List<IGImage> getImages(long folderId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
updateImage
public static IGImage updateImage(long imageId,
long folderId,
java.lang.String name,
java.lang.String description,
java.io.File file,
java.lang.String contentType,
java.lang.String[] tagsEntries)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
getService
public static IGImageService getService()
setService
public void setService(IGImageService service)