public class StampImpl extends ClientImpl implements BaseStamp, Serializable
Modifier and Type | Method and Description |
---|---|
StampImageSize |
calculateFlyImageDimensions(String uuid,
long imgToStampWidth,
long imgToStampHeight,
long floatingImageWidth,
long floatingImageHeight,
int pageNumber)
Calculate fly image dimensions stamp image size.
|
StampCoordinates |
calculateStampCoordinates(long imgToStampWidth,
long imgToStampHeight,
long floatingDivWidth,
long floatingDivHeight,
String exprX,
String exprY,
String stampType,
String stampAlign)
Calculate stamp coordinates stamp coordinates.
|
StampExpressions |
calculateStampExpressions(long imgToStampWidth,
long imgToStampHeight,
long posX,
long posY)
Calculate stamp expressions stamp expressions.
|
List<StampItem> |
getAllStamps()
Gets all stamps.
|
StampPersonalImage |
getPersonalStampImage(String uuid,
String imgUuid,
long id)
Gets personal stamp image.
|
List<Document> |
getPersonalStamps()
Gets personal stamps.
|
StampBarcode |
getStampBarcodeByPk(long id,
String uuid)
Gets stamp barcode by pk.
|
StampImage |
getStampImageByPk(long id,
String uuid)
Gets stamp image by pk.
|
StampText |
getStampTextByPk(long id,
String uuid)
Gets stamp text by pk.
|
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
void |
stampBarcode(String uuid,
long id)
Stamp barcode.
|
void |
stampImage(String uuid,
long id)
Stamp image.
|
void |
stampImageCustom(String uuid,
long id,
String exprX,
String exprY,
String range,
double ratio,
InputStream is)
Stamp image custom.
|
void |
stampImageManually(String uuid,
long id,
String exprX,
String exprY,
String range,
String personalStampUuid)
Stamp image manually.
|
void |
stampText(String uuid,
long id)
Stamp text.
|
getClient, resource, resource
public StampImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public List<StampItem> getAllStamps() throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
BaseStamp
getAllStamps
in interface BaseStamp
AccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionPrincipalAdapterException
- the principal adapter exceptionpublic StampText getStampTextByPk(long id, String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
BaseStamp
getStampTextByPk
in interface BaseStamp
id
- the iduuid
- the uuidAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionPrincipalAdapterException
- the principal adapter exceptionpublic StampImage getStampImageByPk(long id, String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
BaseStamp
getStampImageByPk
in interface BaseStamp
id
- the iduuid
- the uuidAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionPrincipalAdapterException
- the principal adapter exceptionpublic StampBarcode getStampBarcodeByPk(long id, String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
BaseStamp
getStampBarcodeByPk
in interface BaseStamp
id
- the iduuid
- the uuidAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionPrincipalAdapterException
- the principal adapter exceptionpublic StampCoordinates calculateStampCoordinates(long imgToStampWidth, long imgToStampHeight, long floatingDivWidth, long floatingDivHeight, String exprX, String exprY, String stampType, String stampAlign) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
BaseStamp
calculateStampCoordinates
in interface BaseStamp
imgToStampWidth
- the img to stamp widthimgToStampHeight
- the img to stamp heightfloatingDivWidth
- the floating div widthfloatingDivHeight
- the floating div heightexprX
- the expr xexprY
- the expr ystampType
- the stamp typestampAlign
- the stamp alignAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionPrincipalAdapterException
- the principal adapter exceptionpublic StampExpressions calculateStampExpressions(long imgToStampWidth, long imgToStampHeight, long posX, long posY) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
BaseStamp
calculateStampExpressions
in interface BaseStamp
imgToStampWidth
- the img to stamp widthimgToStampHeight
- the img to stamp heightposX
- the pos xposY
- the pos yAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionPrincipalAdapterException
- the principal adapter exceptionpublic void stampText(String uuid, long id) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, PrincipalAdapterException, ItemExistsException
BaseStamp
stampText
in interface BaseStamp
uuid
- the uuidid
- the idAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPathNotFoundException
- the path not found exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionPrincipalAdapterException
- the principal adapter exceptionItemExistsException
- the item exists exceptionpublic void stampImage(String uuid, long id) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, PrincipalAdapterException, ItemExistsException
BaseStamp
stampImage
in interface BaseStamp
uuid
- the uuidid
- the idAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPathNotFoundException
- the path not found exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionPrincipalAdapterException
- the principal adapter exceptionItemExistsException
- the item exists exceptionpublic void stampBarcode(String uuid, long id) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, PrincipalAdapterException, ItemExistsException
BaseStamp
stampBarcode
in interface BaseStamp
uuid
- the uuidid
- the idAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPathNotFoundException
- the path not found exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionPrincipalAdapterException
- the principal adapter exceptionItemExistsException
- the item exists exceptionpublic void stampImageManually(String uuid, long id, String exprX, String exprY, String range, String personalStampUuid) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException, ItemExistsException
BaseStamp
stampImageManually
in interface BaseStamp
uuid
- the uuidid
- the idexprX
- the expr xexprY
- the expr yrange
- the rangepersonalStampUuid
- the personal stamp uuidAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionPrincipalAdapterException
- the principal adapter exceptionItemExistsException
- the item exists exceptionpublic void stampImageCustom(String uuid, long id, String exprX, String exprY, String range, double ratio, InputStream is) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException, ItemExistsException
BaseStamp
stampImageCustom
in interface BaseStamp
uuid
- the uuidid
- the stamp image idexprX
- the expr xexprY
- the expr yrange
- the rangeratio
- the ratiois
- the isAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionPrincipalAdapterException
- the principal adapter exceptionItemExistsException
- the item exists exceptionpublic StampImageSize calculateFlyImageDimensions(String uuid, long imgToStampWidth, long imgToStampHeight, long floatingImageWidth, long floatingImageHeight, int pageNumber) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
BaseStamp
calculateFlyImageDimensions
in interface BaseStamp
uuid
- the uuidimgToStampWidth
- the img to stamp widthimgToStampHeight
- the img to stamp heightfloatingImageWidth
- the floating image widthfloatingImageHeight
- the floating image heightpageNumber
- the page numberAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionPrincipalAdapterException
- the principal adapter exceptionpublic List<Document> getPersonalStamps() throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
BaseStamp
getPersonalStamps
in interface BaseStamp
AccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionPrincipalAdapterException
- the principal adapter exceptionpublic StampPersonalImage getPersonalStampImage(String uuid, String imgUuid, long id) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
BaseStamp
getPersonalStampImage
in interface BaseStamp
uuid
- the uuidimgUuid
- the image uuidid
- the idAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionPrincipalAdapterException
- the principal adapter exceptionCopyright © 2021 Open Knowledge Management System S.L.. All Rights Reserved.