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) |
StampCoordinates |
calculateStampCoordinates(long imgToStampWidth,
long imgToStampHeight,
long floatingDivWidth,
long floatingDivHeight,
String exprX,
String exprY,
String stampType,
String stampAlign) |
StampExpressions |
calculateStampExpressions(long imgToStampWidth,
long imgToStampHeight,
long posX,
long posY) |
List<StampItem> |
getAllStamps() |
StampPersonalImage |
getPersonalStampImage(String uuid,
String imgUuid,
long id) |
List<Document> |
getPersonalStamps() |
StampImage |
getStampImageByPk(long id,
String uuid) |
StampText |
getStampTextByPk(long id,
String uuid) |
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
void |
stampImage(String uuid,
long id) |
void |
stampImageCustom(String uuid,
long id,
String exprX,
String exprY,
String range,
double ratio,
InputStream is) |
void |
stampImageManually(String uuid,
long id,
String exprX,
String exprY,
String range,
String personalStampUuid) |
void |
stampText(String uuid,
long id) |
getClient, resource, resourcepublic StampImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public List<StampItem> getAllStamps() throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
getAllStamps in interface BaseStampAccessDeniedExceptionRepositoryExceptionDatabaseExceptionWebserviceExceptionUnknownExceptionPrincipalAdapterExceptionpublic StampText getStampTextByPk(long id, String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
getStampTextByPk in interface BaseStampAccessDeniedExceptionRepositoryExceptionDatabaseExceptionWebserviceExceptionUnknownExceptionPrincipalAdapterExceptionpublic StampImage getStampImageByPk(long id, String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
getStampImageByPk in interface BaseStampAccessDeniedExceptionRepositoryExceptionDatabaseExceptionWebserviceExceptionUnknownExceptionPrincipalAdapterExceptionpublic 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
calculateStampCoordinates in interface BaseStampAccessDeniedExceptionRepositoryExceptionDatabaseExceptionWebserviceExceptionUnknownExceptionPrincipalAdapterExceptionpublic StampExpressions calculateStampExpressions(long imgToStampWidth, long imgToStampHeight, long posX, long posY) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
calculateStampExpressions in interface BaseStampAccessDeniedExceptionRepositoryExceptionDatabaseExceptionWebserviceExceptionUnknownExceptionPrincipalAdapterExceptionpublic void stampText(String uuid, long id) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, PrincipalAdapterException, ItemExistsException
stampText in interface BaseStampAccessDeniedExceptionRepositoryExceptionDatabaseExceptionPathNotFoundExceptionWebserviceExceptionUnknownExceptionPrincipalAdapterExceptionItemExistsExceptionpublic void stampImage(String uuid, long id) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknownException, PrincipalAdapterException, ItemExistsException
stampImage in interface BaseStampAccessDeniedExceptionRepositoryExceptionDatabaseExceptionPathNotFoundExceptionWebserviceExceptionUnknownExceptionPrincipalAdapterExceptionItemExistsExceptionpublic void stampImageManually(String uuid, long id, String exprX, String exprY, String range, String personalStampUuid) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException, ItemExistsException
stampImageManually in interface BaseStampAccessDeniedExceptionRepositoryExceptionDatabaseExceptionWebserviceExceptionUnknownExceptionPrincipalAdapterExceptionItemExistsExceptionpublic void stampImageCustom(String uuid, long id, String exprX, String exprY, String range, double ratio, InputStream is) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException, ItemExistsException
stampImageCustom in interface BaseStampAccessDeniedExceptionRepositoryExceptionDatabaseExceptionWebserviceExceptionUnknownExceptionPrincipalAdapterExceptionItemExistsExceptionpublic StampImageSize calculateFlyImageDimensions(String uuid, long imgToStampWidth, long imgToStampHeight, long floatingImageWidth, long floatingImageHeight, int pageNumber) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
calculateFlyImageDimensions in interface BaseStampAccessDeniedExceptionRepositoryExceptionDatabaseExceptionWebserviceExceptionUnknownExceptionPrincipalAdapterExceptionpublic List<Document> getPersonalStamps() throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
getPersonalStamps in interface BaseStampAccessDeniedExceptionRepositoryExceptionDatabaseExceptionWebserviceExceptionUnknownExceptionPrincipalAdapterExceptionpublic StampPersonalImage getPersonalStampImage(String uuid, String imgUuid, long id) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
getPersonalStampImage in interface BaseStampAccessDeniedExceptionRepositoryExceptionDatabaseExceptionWebserviceExceptionUnknownExceptionPrincipalAdapterExceptionCopyright © 2021 Open Knowledge Management System S.L.. All Rights Reserved.