public interface IconProvider
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getIcon(SessionToken session,
IconDescriptor iconDescriptor)
Gets the the icon (in PNG-format) identified by the icon descriptor.
|
byte[] |
getIcon(SessionToken session,
IconDescriptor iconDescriptor,
int width,
int height)
Gets the the icon (in PNG-format) identified by the icon descriptor.
|
byte[] |
getIcon(SessionToken session,
java.util.UUID iconID)
Gets the (latest revision of the) designated icon (in PNG-format) or
null in case no icon with the designated ID exists. |
byte[] |
getIcon(SessionToken session,
java.util.UUID iconID,
int width,
int height)
Gets the (latest revision of the) designated icon (in PNG-format) with the
designated dimensions or
null in case no icon with the
designated ID exists. |
IconDescriptor |
getIconDescriptor(SessionToken session,
java.util.UUID iconID)
Gets the latest revision of the designated icon descriptor or
null in case no icon descriptor with the designated ID exists. |
IconDescriptor getIconDescriptor(SessionToken session, java.util.UUID iconID)
null in case no icon descriptor with the designated ID exists.session - The session which is used to check for access rights on this
method.iconID - The ID of the icon descriptor of which to retrieve the latest
revision.null in case the corresponding icon descriptor does
not exist.byte[] getIcon(SessionToken session, java.util.UUID iconID)
null in case no icon with the designated ID exists. The
returned icon will be the one with the biggest dimension available.session - The session which is used to check for access rights on this
method.iconID - The ID of the icon of which to retrieve the latest revision.null in case the corresponding icon
does not exist.byte[] getIcon(SessionToken session, java.util.UUID iconID, int width, int height)
null in case no icon with the
designated ID exists. session - The session which is used to check for access rights on this
method.iconID - The ID of the icon of which to retrieve the latest revision
with the designated dimensions.width - The width (in pixel) of the icon to retrieve.height - The height (in pixel) of the icon to retrieve.null in case
the corresponding icon does not exist.byte[] getIcon(SessionToken session, IconDescriptor iconDescriptor)
session - The session which is used to check for access rights on this
method.iconDescriptor - The descriptor providing the icon ID as well as the
revision for which to retrieve code.java.lang.IllegalArgumentException - If the designated icon descriptor is
invalid, for instance it has an invalid icon ID or revision, an
IllegalArgumentException will be thrown.byte[] getIcon(SessionToken session, IconDescriptor iconDescriptor, int width, int height)
session - The session which is used to check for access rights on this
method.iconDescriptor - The descriptor providing the icon ID as well as the
revision for which to retrieve code.width - The width (in pixel) of the icon to retrieve.height - The height (in pixel) of the icon to retrieve.java.lang.IllegalArgumentException - If the designated icon descriptor is
invalid, for instance it has an invalid icon ID or revision, an
IllegalArgumentException will be thrown.