com.liferay.portal.service.impl
Class ImageLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.base.ImageLocalServiceBaseImpl
      extended by com.liferay.portal.service.impl.ImageLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.service.ImageLocalService

public class ImageLocalServiceImpl
extends ImageLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portal.service.base.ImageLocalServiceBaseImpl
accountLocalService, accountPersistence, accountService, addressLocalService, addressPersistence, addressService, classNameLocalService, classNamePersistence, classNameService, companyLocalService, companyPersistence, companyService, contactLocalService, contactPersistence, contactService, countryPersistence, countryService, emailAddressLocalService, emailAddressPersistence, emailAddressService, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, layoutFinder, layoutLocalService, layoutPersistence, layoutService, layoutSetLocalService, layoutSetPersistence, layoutSetService, layoutTemplateLocalService, listTypePersistence, listTypeService, membershipRequestLocalService, membershipRequestPersistence, membershipRequestService, organizationFinder, organizationLocalService, organizationPersistence, organizationService, orgGroupPermissionFinder, orgGroupPermissionPersistence, orgGroupRolePersistence, orgLaborLocalService, orgLaborPersistence, orgLaborService, passwordPolicyFinder, passwordPolicyLocalService, passwordPolicyPersistence, passwordPolicyRelLocalService, passwordPolicyRelPersistence, passwordPolicyService, passwordTrackerLocalService, passwordTrackerPersistence, permissionFinder, permissionLocalService, permissionPersistence, permissionService, permissionUserFinder, phoneLocalService, phonePersistence, phoneService, pluginSettingLocalService, pluginSettingPersistence, pluginSettingService, portalLocalService, portalService, portletItemLocalService, portletItemPersistence, portletLocalService, portletPersistence, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, portletService, quartzLocalService, regionPersistence, regionService, releaseLocalService, releasePersistence, resourceCodeLocalService, resourceCodePersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, roleFinder, roleLocalService, rolePersistence, roleService, serviceComponentLocalService, serviceComponentPersistence, subscriptionLocalService, subscriptionPersistence, themeLocalService, themeService, userFinder, userGroupFinder, userGroupLocalService, userGroupPersistence, userGroupRoleLocalService, userGroupRolePersistence, userGroupRoleService, userGroupService, userIdMapperLocalService, userIdMapperPersistence, userLocalService, userPersistence, userService, userTrackerLocalService, userTrackerPathLocalService, userTrackerPathPersistence, userTrackerPersistence, webDAVPropsLocalService, webDAVPropsPersistence, websiteLocalService, websitePersistence, websiteService
 
Constructor Summary
ImageLocalServiceImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 void deleteImage(long imageId)
           
 com.liferay.portal.model.Image getCompanyLogo(long imageId)
           
 com.liferay.portal.model.Image getDefaultCompanyLogo()
           
 com.liferay.portal.model.Image getDefaultSpacer()
           
 com.liferay.portal.model.Image getDefaultUserFemalePortrait()
           
 com.liferay.portal.model.Image getDefaultUserMalePortrait()
           
 com.liferay.portal.model.Image getImage(byte[] bytes)
           
 com.liferay.portal.model.Image getImage(java.io.File file)
           
 com.liferay.portal.model.Image getImage(java.io.InputStream is)
           
protected  com.liferay.portal.model.Image getImage(java.io.InputStream is, byte[] bytes)
           
 com.liferay.portal.model.Image getImage(long imageId)
           
 com.liferay.portal.model.Image getImageOrDefault(long imageId)
           
 java.util.List<com.liferay.portal.model.Image> getImages()
           
 java.util.List<com.liferay.portal.model.Image> getImages(int start, int end)
           
 java.util.List<com.liferay.portal.model.Image> getImagesBySize(int size)
           
 boolean isNullOrDefaultSpacer(byte[] bytes)
           
 com.liferay.portal.model.Image updateImage(long imageId, byte[] bytes)
           
 com.liferay.portal.model.Image updateImage(long imageId, byte[] bytes, java.lang.String type, int height, int width, int size)
           
 com.liferay.portal.model.Image updateImage(long imageId, java.io.File file)
           
 com.liferay.portal.model.Image updateImage(long imageId, java.io.InputStream is)
           
 
Methods inherited from class com.liferay.portal.service.base.ImageLocalServiceBaseImpl
addImage, createImage, deleteImage, dynamicQuery, dynamicQuery, getAccountLocalService, getAccountPersistence, getAccountService, getAddressLocalService, getAddressPersistence, getAddressService, getClassNameLocalService, getClassNamePersistence, getClassNameService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getContactLocalService, getContactPersistence, getContactService, getCountryPersistence, getCountryService, getEmailAddressLocalService, getEmailAddressPersistence, getEmailAddressService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImagesCount, getLayoutFinder, getLayoutLocalService, getLayoutPersistence, getLayoutService, getLayoutSetLocalService, getLayoutSetPersistence, getLayoutSetService, getLayoutTemplateLocalService, getListTypePersistence, getListTypeService, getMembershipRequestLocalService, getMembershipRequestPersistence, getMembershipRequestService, getOrganizationFinder, getOrganizationLocalService, getOrganizationPersistence, getOrganizationService, getOrgGroupPermissionFinder, getOrgGroupPermissionPersistence, getOrgGroupRolePersistence, getOrgLaborLocalService, getOrgLaborPersistence, getOrgLaborService, getPasswordPolicyFinder, getPasswordPolicyLocalService, getPasswordPolicyPersistence, getPasswordPolicyRelLocalService, getPasswordPolicyRelPersistence, getPasswordPolicyService, getPasswordTrackerLocalService, getPasswordTrackerPersistence, getPermissionFinder, getPermissionLocalService, getPermissionPersistence, getPermissionService, getPermissionUserFinder, getPhoneLocalService, getPhonePersistence, getPhoneService, getPluginSettingLocalService, getPluginSettingPersistence, getPluginSettingService, getPortalLocalService, getPortalService, getPortletItemLocalService, getPortletItemPersistence, getPortletLocalService, getPortletPersistence, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getPortletService, getQuartzLocalService, getRegionPersistence, getRegionService, getReleaseLocalService, getReleasePersistence, getResourceCodeLocalService, getResourceCodePersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getRoleFinder, getRoleLocalService, getRolePersistence, getRoleService, getServiceComponentLocalService, getServiceComponentPersistence, getSubscriptionLocalService, getSubscriptionPersistence, getThemeLocalService, getThemeService, getUserFinder, getUserGroupFinder, getUserGroupLocalService, getUserGroupPersistence, getUserGroupRoleLocalService, getUserGroupRolePersistence, getUserGroupRoleService, getUserGroupService, getUserIdMapperLocalService, getUserIdMapperPersistence, getUserLocalService, getUserPersistence, getUserService, getUserTrackerLocalService, getUserTrackerPathLocalService, getUserTrackerPathPersistence, getUserTrackerPersistence, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWebsiteLocalService, getWebsitePersistence, getWebsiteService, setAccountLocalService, setAccountPersistence, setAccountService, setAddressLocalService, setAddressPersistence, setAddressService, setClassNameLocalService, setClassNamePersistence, setClassNameService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setContactLocalService, setContactPersistence, setContactService, setCountryPersistence, setCountryService, setEmailAddressLocalService, setEmailAddressPersistence, setEmailAddressService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setLayoutFinder, setLayoutLocalService, setLayoutPersistence, setLayoutService, setLayoutSetLocalService, setLayoutSetPersistence, setLayoutSetService, setLayoutTemplateLocalService, setListTypePersistence, setListTypeService, setMembershipRequestLocalService, setMembershipRequestPersistence, setMembershipRequestService, setOrganizationFinder, setOrganizationLocalService, setOrganizationPersistence, setOrganizationService, setOrgGroupPermissionFinder, setOrgGroupPermissionPersistence, setOrgGroupRolePersistence, setOrgLaborLocalService, setOrgLaborPersistence, setOrgLaborService, setPasswordPolicyFinder, setPasswordPolicyLocalService, setPasswordPolicyPersistence, setPasswordPolicyRelLocalService, setPasswordPolicyRelPersistence, setPasswordPolicyService, setPasswordTrackerLocalService, setPasswordTrackerPersistence, setPermissionFinder, setPermissionLocalService, setPermissionPersistence, setPermissionService, setPermissionUserFinder, setPhoneLocalService, setPhonePersistence, setPhoneService, setPluginSettingLocalService, setPluginSettingPersistence, setPluginSettingService, setPortalLocalService, setPortalService, setPortletItemLocalService, setPortletItemPersistence, setPortletLocalService, setPortletPersistence, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setPortletService, setQuartzLocalService, setRegionPersistence, setRegionService, setReleaseLocalService, setReleasePersistence, setResourceCodeLocalService, setResourceCodePersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setRoleFinder, setRoleLocalService, setRolePersistence, setRoleService, setServiceComponentLocalService, setServiceComponentPersistence, setSubscriptionLocalService, setSubscriptionPersistence, setThemeLocalService, setThemeService, setUserFinder, setUserGroupFinder, setUserGroupLocalService, setUserGroupPersistence, setUserGroupRoleLocalService, setUserGroupRolePersistence, setUserGroupRoleService, setUserGroupService, setUserIdMapperLocalService, setUserIdMapperPersistence, setUserLocalService, setUserPersistence, setUserService, setUserTrackerLocalService, setUserTrackerPathLocalService, setUserTrackerPathPersistence, setUserTrackerPersistence, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWebsiteLocalService, setWebsitePersistence, setWebsiteService, updateImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageLocalServiceImpl

public ImageLocalServiceImpl()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()

deleteImage

public void deleteImage(long imageId)
                 throws com.liferay.portal.SystemException
Specified by:
deleteImage in interface com.liferay.portal.service.ImageLocalService
Overrides:
deleteImage in class ImageLocalServiceBaseImpl
Throws:
com.liferay.portal.SystemException

getCompanyLogo

public com.liferay.portal.model.Image getCompanyLogo(long imageId)

getDefaultCompanyLogo

public com.liferay.portal.model.Image getDefaultCompanyLogo()

getDefaultSpacer

public com.liferay.portal.model.Image getDefaultSpacer()

getDefaultUserFemalePortrait

public com.liferay.portal.model.Image getDefaultUserFemalePortrait()

getDefaultUserMalePortrait

public com.liferay.portal.model.Image getDefaultUserMalePortrait()

getImage

public com.liferay.portal.model.Image getImage(long imageId)
Specified by:
getImage in interface com.liferay.portal.service.ImageLocalService
Overrides:
getImage in class ImageLocalServiceBaseImpl

getImage

public com.liferay.portal.model.Image getImage(byte[] bytes)
                                        throws java.io.IOException
Throws:
java.io.IOException

getImage

public com.liferay.portal.model.Image getImage(java.io.File file)
                                        throws java.io.IOException
Throws:
java.io.IOException

getImage

public com.liferay.portal.model.Image getImage(java.io.InputStream is)
                                        throws java.io.IOException
Throws:
java.io.IOException

getImageOrDefault

public com.liferay.portal.model.Image getImageOrDefault(long imageId)

getImages

public java.util.List<com.liferay.portal.model.Image> getImages()
                                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getImages

public java.util.List<com.liferay.portal.model.Image> getImages(int start,
                                                                int end)
                                                         throws com.liferay.portal.SystemException
Specified by:
getImages in interface com.liferay.portal.service.ImageLocalService
Overrides:
getImages in class ImageLocalServiceBaseImpl
Throws:
com.liferay.portal.SystemException

getImagesBySize

public java.util.List<com.liferay.portal.model.Image> getImagesBySize(int size)
                                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

isNullOrDefaultSpacer

public boolean isNullOrDefaultSpacer(byte[] bytes)

updateImage

public com.liferay.portal.model.Image updateImage(long imageId,
                                                  byte[] bytes)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImage

public com.liferay.portal.model.Image updateImage(long imageId,
                                                  java.io.File file)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImage

public com.liferay.portal.model.Image updateImage(long imageId,
                                                  java.io.InputStream is)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImage

public com.liferay.portal.model.Image updateImage(long imageId,
                                                  byte[] bytes,
                                                  java.lang.String type,
                                                  int height,
                                                  int width,
                                                  int size)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getImage

protected com.liferay.portal.model.Image getImage(java.io.InputStream is,
                                                  byte[] bytes)
                                           throws java.io.IOException
Throws:
java.io.IOException