public class S3ShortLinkServiceImpl extends java.lang.Object implements IShortLinkService
Constructor and Description |
---|
S3ShortLinkServiceImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateShortLink(java.lang.String ticket,
java.lang.String objectId)
Responsible for creating the X digit pin, short link and storage of the pin and object id.
|
java.lang.String |
resolveShortLink(java.lang.String ticket,
java.lang.String pin)
Takes in an X digit pin and returns the objectId of the doc
|
public java.lang.String generateShortLink(java.lang.String ticket, java.lang.String objectId)
IShortLinkService
generateShortLink
in interface IShortLinkService
objectId
- the objectId of the document to create a short Link forpublic java.lang.String resolveShortLink(java.lang.String ticket, java.lang.String pin)
IShortLinkService
resolveShortLink
in interface IShortLinkService
pin
- - the X digit pin number in the short URL