Package com.xpn.xwiki.plugin.image
Class ImagePluginAPI
- java.lang.Object
-
- com.xpn.xwiki.api.Api
-
- com.xpn.xwiki.plugin.PluginApi<ImagePlugin>
-
- com.xpn.xwiki.plugin.image.ImagePluginAPI
-
@Deprecated public class ImagePluginAPI extends PluginApi<ImagePlugin>
Deprecated.the plugin technology is deprecated, consider rewriting as components- Version:
- $Id: 9107374730990c0260a639c9dbf55c9a1c69921f $
-
-
Constructor Summary
Constructors Constructor Description ImagePluginAPI(ImagePlugin imagePlugin, XWikiContext context)
Deprecated.Creates a new instance of this plugin API.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getHeight(String pageName, String attachmentName)
Deprecated.Detects the height of an image attached to a wiki page.int
getWidth(String pageName, String attachmentName)
Deprecated.Detects the width of an image attached to a wiki page.-
Methods inherited from class com.xpn.xwiki.plugin.PluginApi
getInternalPlugin, getProtectedPlugin, setPlugin
-
Methods inherited from class com.xpn.xwiki.api.Api
convert, convert, convert, convertAttachments, getAuthorizationManager, getContextualAuthorizationManager, getXWikiContext, hasAccess, hasAccessLevel, hasAdminRights, hasProgrammingRights, hasWikiAdminRights
-
-
-
-
Constructor Detail
-
ImagePluginAPI
public ImagePluginAPI(ImagePlugin imagePlugin, XWikiContext context)
Deprecated.Creates a new instance of this plugin API.- Parameters:
imagePlugin
- the underlying image plugin that is exposed by this APIcontext
- the XWiki context
-
-
Method Detail
-
getHeight
public int getHeight(String pageName, String attachmentName)
Deprecated.Detects the height of an image attached to a wiki page.- Parameters:
pageName
- the name of a wiki pageattachmentName
- the name of an image attached to the specified page- Returns:
- the height of the specified image
-
-