public class AutoSubmission extends Submission implements UserId, UserIdentifier
AutoSubmission
is used to generate a URL for auto submission. A user must
be set, which will be the owner of the Thing.Constructor and Description |
---|
AutoSubmission() |
Modifier and Type | Method and Description |
---|---|
UserIdentifier |
getIdentifier()
The user identifier of the local user
This is only available for Partner Site Integration.
|
UserId |
getUser()
The user to submit this Submission on behalf of.
|
String |
getUserId()
Returns the User's ID.
|
String |
getUserIdentifier()
User identifier string.
|
void |
setIdentifier(UserIdentifier identifier) |
void |
setUser(UserId user) |
String |
toUrl()
Returns a URL that can be used for submitting a Thing (for example in a link).
|
addTag, getCategory, getDescription, getLanguage, getTags, getTagsAsString, getTitle, getUrl, isHidden, setCategory, setDescription, setHidden, setLanguage, setTags, setTitle, setUrl, toFlattrObject
public UserId getUser()
public void setUser(UserId user)
public String getUserId()
UserId
public UserIdentifier getIdentifier()
This is only available for Partner Site Integration. You need to register your site with Flattr in order to use user identifiers.
public void setIdentifier(UserIdentifier identifier)
public String getUserIdentifier()
UserIdentifier
Examples:
getUserIdentifier
in interface UserIdentifier
public String toUrl()
Use this URL as a fallback only if you can't use
FlattrService.create(Submission)
or JavaScript. The length of an URL is
limited and depends on the browser and the server. The submission will be truncated
if the maximum length was exceeded.
Copyright © 2010–2017. All rights reserved.