Package com.openkm.sdk4j.impl
Class StampImpl
java.lang.Object
com.openkm.sdk4j.impl.ClientImpl
com.openkm.sdk4j.impl.StampImpl
- All Implemented Interfaces:
BaseStamp,Serializable
StampImpl
- Author:
- sochoa
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateFlyImageDimensions(String uuid, long imgToStampWidth, long imgToStampHeight, long floatingImageWidth, long floatingImageHeight, int pageNumber) Calculate fly image dimensions stamp image size.calculateStampCoordinates(long imgToStampWidth, long imgToStampHeight, long floatingDivWidth, long floatingDivHeight, String exprX, String exprY, String stampType, String stampAlign) Calculate stamp coordinates stamp coordinates.calculateStampExpressions(long imgToStampWidth, long imgToStampHeight, long posX, long posY) Calculate stamp expressions stamp expressions.Gets all stamps.getPersonalStampImage(String uuid, String imgUuid, long id) Gets personal stamp image.Gets personal stamps.getStampBarcodeByPk(long id, String uuid) Gets stamp barcode by pk.getStampImageByPk(long id, String uuid) Gets stamp image by pk.getStampTextByPk(long id, String uuid) Gets stamp text by pk.protected voidsetAuthorizationToken(String authorizationToken) setAuthenticationTokenvoidstampBarcode(String uuid, long id) Stamp barcode.voidstampImage(String uuid, long id) Stamp image.voidstampImageCustom(String uuid, long id, String exprX, String exprY, String range, double ratio, InputStream is) Stamp image custom.voidstampImageManually(String uuid, long id, String exprX, String exprY, String range, String personalStampUuid) Stamp image manually.voidStamp text.voidstampTextCustom(String uuid, long stampTextId, String text, String exprX, String exprY, String range) Stamp text custom.Methods inherited from class com.openkm.sdk4j.impl.ClientImpl
getClient, getWebTarget, setAuthorizationHeader, setJsessionIdHeader
-
Constructor Details
-
StampImpl
StampImpl
-
-
Method Details
-
setAuthorizationToken
setAuthenticationToken -
getAllStamps
public List<StampItem> getAllStamps() throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, AuthExceptionDescription copied from interface:BaseStampGets all stamps.- Specified by:
getAllStampsin interfaceBaseStamp- Returns:
- the all stamps
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exception
-
getStampTextByPk
public StampText getStampTextByPk(long id, String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, AuthException Description copied from interface:BaseStampGets stamp text by pk.- Specified by:
getStampTextByPkin interfaceBaseStamp- Parameters:
id- the iduuid- the uuid- Returns:
- the stamp text by pk
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exception
-
getStampImageByPk
public StampImage getStampImageByPk(long id, String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, AuthException Description copied from interface:BaseStampGets stamp image by pk.- Specified by:
getStampImageByPkin interfaceBaseStamp- Parameters:
id- the iduuid- the uuid- Returns:
- the stamp image by pk
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exception
-
getStampBarcodeByPk
public StampBarcode getStampBarcodeByPk(long id, String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, AuthException Description copied from interface:BaseStampGets stamp barcode by pk.- Specified by:
getStampBarcodeByPkin interfaceBaseStamp- Parameters:
id- the iduuid- the uuid- Returns:
- the stamp image by pk
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exception
-
calculateStampCoordinates
public StampCoordinates calculateStampCoordinates(long imgToStampWidth, long imgToStampHeight, long floatingDivWidth, long floatingDivHeight, String exprX, String exprY, String stampType, String stampAlign) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, AuthException Description copied from interface:BaseStampCalculate stamp coordinates stamp coordinates.- Specified by:
calculateStampCoordinatesin interfaceBaseStamp- Parameters:
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 align- Returns:
- the stamp coordinates
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exception
-
calculateStampExpressions
public StampExpressions calculateStampExpressions(long imgToStampWidth, long imgToStampHeight, long posX, long posY) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, AuthException Description copied from interface:BaseStampCalculate stamp expressions stamp expressions.- Specified by:
calculateStampExpressionsin interfaceBaseStamp- Parameters:
imgToStampWidth- the img to stamp widthimgToStampHeight- the img to stamp heightposX- the pos xposY- the pos y- Returns:
- the stamp expressions
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exception
-
stampText
public void stampText(String uuid, long id) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException, ItemExistsException Description copied from interface:BaseStampStamp text.- Specified by:
stampTextin interfaceBaseStamp- Parameters:
uuid- the uuidid- the id- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exceptionItemExistsException- the item exists exception
-
stampImage
public void stampImage(String uuid, long id) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException, ItemExistsException Description copied from interface:BaseStampStamp image.- Specified by:
stampImagein interfaceBaseStamp- Parameters:
uuid- the uuidid- the id- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exceptionItemExistsException- the item exists exception
-
stampBarcode
public void stampBarcode(String uuid, long id) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException, ItemExistsException Description copied from interface:BaseStampStamp barcode.- Specified by:
stampBarcodein interfaceBaseStamp- Parameters:
uuid- the uuidid- the id- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exceptionItemExistsException- the item exists exception
-
stampImageManually
public void stampImageManually(String uuid, long id, String exprX, String exprY, String range, String personalStampUuid) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, AuthException, ItemExistsException Description copied from interface:BaseStampStamp image manually.- Specified by:
stampImageManuallyin interfaceBaseStamp- Parameters:
uuid- the uuidid- the idexprX- the expr xexprY- the expr yrange- the rangepersonalStampUuid- the personal stamp uuid- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exceptionItemExistsException- the item exists exception
-
stampTextCustom
public void stampTextCustom(String uuid, long stampTextId, String text, String exprX, String exprY, String range) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, AuthException, ItemExistsException Description copied from interface:BaseStampStamp text custom.- Specified by:
stampTextCustomin interfaceBaseStamp- Parameters:
uuid- the uuidstampTextId- the stamp text idtext- the textexprX- the expr xexprY- the expr yrange- the range*- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exceptionItemExistsException- the item exists exception
-
stampImageCustom
public void stampImageCustom(String uuid, long id, String exprX, String exprY, String range, double ratio, InputStream is) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, AuthException, ItemExistsException Description copied from interface:BaseStampStamp image custom.- Specified by:
stampImageCustomin interfaceBaseStamp- Parameters:
uuid- the uuidid- the stamp image idexprX- the expr xexprY- the expr yrange- the rangeratio- the ratiois- the is- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exceptionItemExistsException- the item exists exception
-
calculateFlyImageDimensions
public StampImageSize calculateFlyImageDimensions(String uuid, long imgToStampWidth, long imgToStampHeight, long floatingImageWidth, long floatingImageHeight, int pageNumber) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, AuthException Description copied from interface:BaseStampCalculate fly image dimensions stamp image size.- Specified by:
calculateFlyImageDimensionsin interfaceBaseStamp- Parameters:
uuid- the uuidimgToStampWidth- the img to stamp widthimgToStampHeight- the img to stamp heightfloatingImageWidth- the floating image widthfloatingImageHeight- the floating image heightpageNumber- the page number- Returns:
- the stamp image size
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exception
-
getPersonalStamps
public List<Document> getPersonalStamps() throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, AuthExceptionDescription copied from interface:BaseStampGets personal stamps.- Specified by:
getPersonalStampsin interfaceBaseStamp- Returns:
- the personal stamps
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exception
-
getPersonalStampImage
public StampPersonalImage getPersonalStampImage(String uuid, String imgUuid, long id) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, AuthException Description copied from interface:BaseStampGets personal stamp image.- Specified by:
getPersonalStampImagein interfaceBaseStamp- Parameters:
uuid- the uuidimgUuid- the image uuidid- the id- Returns:
- the personal stamp image
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exception
-