com.liferay.portlet.imagegallery.service.impl
Class IGImageServiceImpl

java.lang.Object
  extended bycom.liferay.portal.service.impl.PrincipalBean
      extended bycom.liferay.portlet.imagegallery.service.impl.IGImageServiceImpl
All Implemented Interfaces:
com.liferay.portlet.imagegallery.service.IGImageService

public class IGImageServiceImpl
extends PrincipalBean
implements com.liferay.portlet.imagegallery.service.IGImageService

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portal.service.impl.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
IGImageServiceImpl()
           
 
Method Summary
 com.liferay.portlet.imagegallery.model.IGImage addImage(long folderId, java.lang.String description, java.io.File file, java.lang.String contentType, java.lang.String[] tagsEntries, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.imagegallery.model.IGImage addImage(long folderId, java.lang.String description, java.io.File file, java.lang.String contentType, java.lang.String[] tagsEntries, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void deleteImage(long imageId)
           
 com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
           
 com.liferay.portlet.imagegallery.model.IGImage updateImage(long imageId, long folderId, java.lang.String description, java.io.File file, java.lang.String contentType, java.lang.String[] tagsEntries)
           
 
Methods inherited from class com.liferay.portal.service.impl.PrincipalBean
getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IGImageServiceImpl

public IGImageServiceImpl()
Method Detail

addImage

public com.liferay.portlet.imagegallery.model.IGImage addImage(long folderId,
                                                               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
Specified by:
addImage in interface com.liferay.portlet.imagegallery.service.IGImageService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addImage

public com.liferay.portlet.imagegallery.model.IGImage addImage(long folderId,
                                                               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
Specified by:
addImage in interface com.liferay.portlet.imagegallery.service.IGImageService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteImage

public void deleteImage(long imageId)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Specified by:
deleteImage in interface com.liferay.portlet.imagegallery.service.IGImageService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getImage

public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
                                                        throws com.liferay.portal.PortalException,
                                                               com.liferay.portal.SystemException
Specified by:
getImage in interface com.liferay.portlet.imagegallery.service.IGImageService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateImage

public com.liferay.portlet.imagegallery.model.IGImage updateImage(long imageId,
                                                                  long folderId,
                                                                  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
Specified by:
updateImage in interface com.liferay.portlet.imagegallery.service.IGImageService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException