Package com.openkm.sdk4j.definition
Interface BaseStamp
-
- All Known Implementing Classes:
StampImpl
public interface BaseStampBaseStamp- Author:
- sochoa
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StampImageSizecalculateFlyImageDimensions(String uuid, long imgToStampWidth, long imgToStampHeight, long floatingImageWidth, long floatingImageHeight, int pageNumber)Calculate fly image dimensions stamp image size.StampCoordinatescalculateStampCoordinates(long imgToStampWidth, long imgToStampHeight, long floatingDivWidth, long floatingDivHeight, String exprX, String exprY, String stampType, String stampAlign)Calculate stamp coordinates stamp coordinates.StampExpressionscalculateStampExpressions(long imgToStampWidth, long imgToStampHeight, long posX, long posY)Calculate stamp expressions stamp expressions.List<StampItem>getAllStamps()Gets all stamps.StampPersonalImagegetPersonalStampImage(String uuid, String imageUuid, long id)Gets personal stamp image.List<Document>getPersonalStamps()Gets personal stamps.StampBarcodegetStampBarcodeByPk(long id, String uuid)Gets stamp barcode by pk.StampImagegetStampImageByPk(long id, String uuid)Gets stamp image by pk.StampTextgetStampTextByPk(long id, String uuid)Gets stamp text by pk.voidstampBarcode(String uuid, long id)Stamp barcode.voidstampImage(String uuid, long id)Stamp image.voidstampImageCustom(String uuid, long stampImageId, 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.voidstampText(String uuid, long id)Stamp text.voidstampTextCustom(String uuid, long stampTextId, String text, String exprX, String exprY, String range)Stamp text custom.
-
-
-
Method Detail
-
getAllStamps
List<StampItem> getAllStamps() throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException
Gets all stamps.- Returns:
- the all stamps
- 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 exception
-
getStampTextByPk
StampText getStampTextByPk(long id, String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException
Gets stamp text by pk.- Parameters:
id- the iduuid- the uuid- Returns:
- the stamp text by pk
- 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 exception
-
getStampImageByPk
StampImage getStampImageByPk(long id, String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException
Gets stamp image by pk.- Parameters:
id- the iduuid- the uuid- Returns:
- the stamp image by pk
- 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 exception
-
getStampBarcodeByPk
StampBarcode getStampBarcodeByPk(long id, String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException
Gets stamp barcode by pk.- Parameters:
id- the iduuid- the uuid- Returns:
- the stamp image by pk
- 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 exception
-
calculateStampCoordinates
StampCoordinates calculateStampCoordinates(long imgToStampWidth, long imgToStampHeight, long floatingDivWidth, long floatingDivHeight, String exprX, String exprY, String stampType, String stampAlign) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException
Calculate stamp coordinates stamp coordinates.- 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 exceptionPathNotFoundException- the path not found exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exception
-
calculateStampExpressions
StampExpressions calculateStampExpressions(long imgToStampWidth, long imgToStampHeight, long posX, long posY) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException
Calculate stamp expressions stamp expressions.- 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 exceptionPathNotFoundException- the path not found exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exception
-
stampText
void stampText(String uuid, long id) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException, ItemExistsException
Stamp text.- 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
void stampImage(String uuid, long id) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException, ItemExistsException
Stamp image.- 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
void stampBarcode(String uuid, long id) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException, ItemExistsException
Stamp barcode.- 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
void stampImageManually(String uuid, long id, String exprX, String exprY, String range, String personalStampUuid) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException, ItemExistsException
Stamp image manually.- 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 exceptionPathNotFoundException- the path not found exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exceptionItemExistsException- the item exists exception
-
stampTextCustom
void stampTextCustom(String uuid, long stampTextId, String text, String exprX, String exprY, String range) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, AuthException, ItemExistsException
Stamp text custom.- 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
void stampImageCustom(String uuid, long stampImageId, String exprX, String exprY, String range, double ratio, InputStream is) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException, ItemExistsException
Stamp image custom.- Parameters:
uuid- the uuidstampImageId- 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 exceptionPathNotFoundException- the path not found exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exceptionItemExistsException- the item exists exception
-
calculateFlyImageDimensions
StampImageSize calculateFlyImageDimensions(String uuid, long imgToStampWidth, long imgToStampHeight, long floatingImageWidth, long floatingImageHeight, int pageNumber) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException
Calculate fly image dimensions stamp image size.- 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 exceptionPathNotFoundException- the path not found exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionAuthException- the principal adapter exception
-
getPersonalStamps
List<Document> getPersonalStamps() throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException
Gets personal stamps.- Returns:
- the personal stamps
- 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 exception
-
getPersonalStampImage
StampPersonalImage getPersonalStampImage(String uuid, String imageUuid, long id) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, AuthException
Gets personal stamp image.- Parameters:
uuid- the uuidimageUuid- the image uuidid- the id- Returns:
- the personal stamp image
- 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 exception
-
-