public class Kiwa
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Kiwa.Status |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_RESET_PASSWORD_VALIDITY |
static int |
STATISTICS_COMPUTING_MAXDELAY |
Modifier and Type | Method and Description |
---|---|
AccountManager |
accountManager() |
Actalog |
actalog() |
Actilog |
actilog() |
void |
activateAccount(Account account) |
void |
activateAccount(long accountId) |
Actulog |
actulog() |
LoadedFileHeader |
addAttachment(Dataset dataset,
java.lang.String name,
byte[] data) |
void |
addComment(Request request,
long ownerId,
java.lang.String comment) |
void |
addCommentFromAutomaticNotification(Dataset dataset,
long ownerId,
java.lang.String comment)
This method add a comment in the current dataset sciboard request if on is alive from user action.
|
void |
addDatasetGenealogyFile(Dataset dataset,
LoadedFile originFile,
java.util.List<org.tip.puck.net.workers.ControlReporter.ControlType> controls,
java.util.Locale locale) |
void |
addDatasetTerminologyFile(Dataset dataset,
LoadedFile originFile,
java.util.List<org.tip.puck.net.relations.workers.RelationModelReporter.ControlType> controls,
java.util.Locale locale) |
Agora |
agora() |
BuildInformation |
buildInformation() |
java.lang.String |
buildRequestDescription(Request source) |
void |
cancelFormatIssue(FormatIssue source) |
void |
cancelRequest(Request request,
java.lang.String comment) |
LoadedFileHeaders |
censusLoadedFileHeaders() |
void |
clearStatistics(Dataset source) |
void |
clearStatistics(Datasets source) |
void |
clearStatistics(Dataset dataset,
Statistics target) |
void |
clearStatisticsAll() |
void |
clearStatisticsGenealogies() |
void |
clearStatisticsTerminologies() |
void |
closeRequest(Request request,
long decisionMakerId,
Request.Status decision,
java.lang.String comment) |
void |
confirmFormatIssue(FormatIssue source) |
static org.tip.puck.report.Report |
controlNet(LoadedFile source,
java.util.Locale locale,
java.util.List<org.tip.puck.net.workers.ControlReporter.ControlType> controls) |
static LoadedFile |
convert(java.lang.String targetExtension,
java.lang.String targetName,
LoadedFile source) |
static LoadedFile |
convertNet(java.lang.String targetExtension,
java.lang.String targetName,
org.tip.puck.net.Net net) |
Account |
createAccount(java.lang.String email,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String password,
Account.EmailScope emailScope,
java.lang.String organization,
java.lang.String businessCard,
java.lang.String country,
java.lang.String website,
org.joda.time.DateTimeZone timeZone,
boolean emailNotification) |
Article |
createArticle(java.lang.String name,
java.lang.String author,
boolean visible,
java.util.Locale locale,
java.lang.String text) |
void |
createCollaborator(Dataset dataset,
Account collaboratorAccount,
java.lang.String description,
org.tip.puck.net.workers.AttributeFilters filters) |
Collection |
createCollection(Contributor contributor,
java.lang.String name,
java.lang.String description,
Collection.Scope scope) |
Dataset |
createDataset(Contributor contributor,
java.lang.String name) |
FormatIssue |
createFormatIssue(long contributorId,
long datasetId,
LoadedFile file) |
Forum |
createForum(java.lang.String title,
java.lang.String subtitle) |
Message |
createMessage(Topic parent,
Account author,
java.lang.String text) |
Topic |
createTopic(Forum forum,
java.lang.String title,
java.lang.String text,
boolean sticky,
Topic.Status status,
Account author) |
Wire |
createWire(java.lang.String title,
java.lang.String author,
org.joda.time.DateTime publicationDate,
java.util.Locale locale,
java.lang.String leadParagraph,
java.lang.String body) |
void |
downForum(Forum forum) |
EnvironmentInformation |
environmentInformation() |
Eucles |
eucles() |
void |
export(java.io.OutputStream out,
KiwaExportCriteria criteria) |
Dataset.Type |
extractDatasetTypeFromRequest(Request source) |
fr.devinsy.util.StringList |
findOrphanSubkeys() |
Account |
getAuthentifiedAccount(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
java.lang.Long |
getAuthentifiedAccountId(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
KiwaCharterView |
getCharterView() |
DatasetFile |
getDatasetFile(Dataset dataset,
Account account) |
fr.devinsy.xidyn.views.CharterView |
getEmailCharterView() |
byte[] |
getKidarepFile(long id) |
LoadedFile |
getLoadedFile(LoadedFileHeader source) |
LoadedFile |
getLoadedFileDetached(LoadedFileHeader source) |
int |
getResetPasswordValidity() |
Kiwa.Status |
getStatus() |
java.lang.String |
getUserLanguage(javax.servlet.http.HttpServletRequest request) |
java.util.Locale |
getUserLocale(javax.servlet.http.HttpServletRequest request) |
java.lang.String |
getWebContentPath() |
java.lang.String |
getWebsiteUrl() |
Hico |
hico() |
java.lang.String |
howToCite(Dataset source) |
void |
importArticles(byte[] source) |
static Kiwa |
instance() |
boolean |
isModerator(Account account) |
boolean |
isRedactor(Account account) |
boolean |
isSciboarder(Account account) |
boolean |
isScichief(Account account) |
boolean |
isWebmaster(Account account) |
Kidarep |
kidarep() |
java.lang.String[] |
languages() |
static java.awt.image.BufferedImage |
loadImage(LoadedFile source) |
static org.tip.puck.net.Net |
loadNet(LoadedFile source) |
static org.tip.puck.net.Net |
loadNet(LoadedFile source,
java.lang.String charsetName) |
static org.tip.puck.net.Net |
loadNetTXT1(LoadedFile source,
java.lang.String charsetName) |
static org.tip.puck.net.Net |
loadNetXLS1(LoadedFile source) |
static org.tip.puck.net.relations.RelationModel |
loadTerminology(LoadedFile source) |
static org.tip.puck.net.relations.RelationModel |
loadTerminology(LoadedFile source,
java.lang.String charsetName) |
Log |
log(Log.Level level,
java.lang.String event) |
Log |
log(Log.Level level,
java.lang.String event,
java.lang.String detail) |
Log |
log(Log.Level level,
java.lang.String event,
java.lang.String detailFormat,
java.lang.Object... details) |
EventLog |
logEvent(EventLog.Category category,
java.lang.String... arguments) |
protected void |
logKiwaInit(java.lang.String currentLogItem,
java.lang.String status) |
void |
logPageHit(java.lang.String page,
javax.servlet.http.HttpServletRequest request) |
void |
notifyFormatInspectors(java.lang.String subject,
java.lang.CharSequence content,
java.util.Locale locale) |
void |
notifyMembers(Accounts accounts,
java.lang.String subject,
java.lang.CharSequence content,
java.util.Locale locale) |
void |
notifyModerators(Account author,
java.lang.String subject,
java.lang.CharSequence content,
java.util.Locale locale) |
void |
notifySciboarderChiefs(Account author,
java.lang.String subject,
java.lang.CharSequence content,
java.util.Locale locale) |
void |
notifySciboarders(Account author,
java.lang.String subject,
java.lang.CharSequence content,
java.util.Locale locale) |
void |
notifyWebmasters(Account author,
java.lang.String subject,
java.lang.CharSequence content,
java.util.Locale locale) |
java.lang.String |
permanentURI(Dataset dataset) |
void |
publishDataset(Dataset source) |
void |
publishWire(long wireId) |
void |
purgeActalog(int days) |
void |
purgeActilog(int days) |
void |
purgeFormatIssues(int days) |
void |
purgeOrphans() |
void |
putPermanentLinkAttribute(org.tip.puck.net.Net net,
Dataset dataset) |
void |
rebuildGenealogyStatistics(Dataset dataset,
DatasetFile datasetFile) |
void |
rebuildGenealogyStatisticsByThread(Dataset dataset,
DatasetFile datasetFile)
This method rebuilds genealogy statistics.
|
void |
rebuildStatistics(Dataset source) |
void |
rebuildStatistics(Dataset dataset,
DatasetFile datasetFile) |
void |
rebuildStatistics(Datasets source) |
void |
rebuildStatisticsAll() |
void |
rebuildStatisticsGenealogies() |
void |
rebuildStatisticsTerminologies() |
void |
rebuildTerminologyStatistics(Dataset dataset,
DatasetFile datasetFile) |
void |
removeAccount(long accountId) |
void |
removeAllArticles() |
void |
removeArticle(long articleId) |
void |
removeCollaborator(Dataset dataset,
Collaborator collaborator) |
void |
removeCollaborator(Dataset dataset,
long collaboratorId) |
void |
removeCollection(Collection target) |
void |
removeDataset(Dataset source) |
void |
removeDatasetAttachment(Dataset dataset,
LoadedFileHeader attachment) |
void |
removeDatasetFromCollection(Dataset source,
Collection collection) |
void |
removeDatasetOriginFile(Dataset dataset) |
void |
removeFormatIssue(FormatIssue source) |
void |
removeForum(Forum forum) |
void |
removeForum(long forumId) |
void |
removeMessage(long messageId) |
void |
removeMessage(Message message) |
void |
removeTopic(long topicId) |
void |
removeTopic(Topic topic) |
void |
removeWire(long wireId) |
static LoadedFile |
saveImage(java.lang.String targetFileName,
java.awt.image.BufferedImage image) |
static LoadedFile |
saveNet(java.lang.String targetFileName,
org.tip.puck.net.Net net) |
static byte[] |
saveNetToByteArray(org.tip.puck.graphs.GraphType graphType,
org.tip.puck.net.Net net) |
static byte[] |
saveNetToByteArray(java.lang.String extension,
org.tip.puck.net.Net net) |
Sciboard |
sciboard() |
fr.devinsy.kiss4web.SimpleSecurityAgent |
securityAgent() |
void |
sendEmail(java.lang.String to,
java.lang.String subject,
java.lang.CharSequence html) |
void |
setAccountPassword(Account account,
java.lang.String password) |
void |
setCharterView(KiwaCharterView view) |
void |
setDataRoot(java.lang.String key,
java.lang.Object root) |
void |
setEmailCharterView(fr.devinsy.xidyn.views.CharterView view) |
void |
setLogLevel(Log.Level value) |
void |
setResetPasswordValidity(int value) |
void |
setStatus(Kiwa.Status status) |
void |
setUserLanguage(javax.servlet.http.HttpServletResponse response,
java.lang.String language) |
void |
setVote(Request request,
long ownerId,
Vote.Value value) |
void |
setWebContentPath(java.lang.String path) |
Stag |
stag() |
KiwaStorer |
storer() |
Request |
submitDataset(Dataset dataset,
Account account,
java.lang.String comment) |
Request |
submitDatasetUnpublish(Dataset dataset,
Account account,
java.lang.String comment) |
void |
suspendAccount(long accountId) |
void |
transferDataset(Contributor newContributor,
Dataset source) |
void |
unpublishDataset(Dataset dataset) |
void |
unpublishWire(long wireId) |
void |
updateAccount(Account account,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String password,
Account.EmailScope emailScope,
java.lang.String organization,
java.lang.String businessCard,
java.lang.String country,
java.lang.String website,
org.joda.time.DateTimeZone timeZone,
boolean emailNotification) |
void |
updateAccountByWebmaster(Account account,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String email,
Account.EmailScope emailScope,
java.lang.String organization,
java.lang.String businessCard,
java.lang.String country,
java.lang.String website,
org.joda.time.DateTimeZone timeZone,
boolean emailNotification,
Roles roles) |
void |
updateAccountEmail(Account account,
java.lang.String newEmail) |
void |
updateAccountLastConnection(Account account) |
void |
updateArticle(Article article,
java.lang.String name,
java.lang.String author,
boolean visibility,
java.util.Locale locale,
java.lang.String text) |
Collaborator |
updateCollaborator(Dataset dataset,
long collaboratorId,
java.lang.String description,
org.tip.puck.net.workers.AttributeFilters filters) |
void |
updateDataset(Dataset dataset) |
void |
updateForum(Forum forum,
java.lang.String title,
java.lang.String subtitle) |
void |
updateMessage(Message message,
java.lang.String text) |
void |
updateTopic(Topic topic,
long forumId,
java.lang.String title,
boolean sticky,
Topic.Status status) |
void |
updateWire(Wire wire,
java.lang.String title,
java.lang.String author,
org.joda.time.DateTime publicationDate,
java.util.Locale locale,
java.lang.String leadParagraph,
java.lang.String body) |
void |
upForum(Forum forum) |
public static int STATISTICS_COMPUTING_MAXDELAY
public static int DEFAULT_RESET_PASSWORD_VALIDITY
public AccountManager accountManager()
public Actalog actalog()
public Actilog actilog()
public void activateAccount(Account account)
fullName
- email
- password
- public void activateAccount(long accountId)
id
- public Actulog actulog()
public LoadedFileHeader addAttachment(Dataset dataset, java.lang.String name, byte[] data)
dataset
- name
- data
- public void addComment(Request request, long ownerId, java.lang.String comment)
request
- ownerId
- comment
- public void addCommentFromAutomaticNotification(Dataset dataset, long ownerId, java.lang.String comment)
dataset
- ownerId
- comment
- public void addDatasetGenealogyFile(Dataset dataset, LoadedFile originFile, java.util.List<org.tip.puck.net.workers.ControlReporter.ControlType> controls, java.util.Locale locale) throws java.lang.Exception
dataset
- originFile
- controls
- locale
- java.lang.Exception
public void addDatasetTerminologyFile(Dataset dataset, LoadedFile originFile, java.util.List<org.tip.puck.net.relations.workers.RelationModelReporter.ControlType> controls, java.util.Locale locale) throws java.lang.Exception
dataset
- originFile
- controls
- locale
- java.lang.Exception
public Agora agora()
public BuildInformation buildInformation()
public java.lang.String buildRequestDescription(Request source)
public void cancelFormatIssue(FormatIssue source) throws java.lang.Exception
id
- java.lang.Exception
public void cancelRequest(Request request, java.lang.String comment) throws java.lang.Exception
request
- comment
- java.lang.Exception
public LoadedFileHeaders censusLoadedFileHeaders() throws java.lang.Exception
java.lang.Exception
public void clearStatistics(Dataset source) throws java.lang.Exception
dataset
- java.lang.Exception
public void clearStatistics(Dataset dataset, Statistics target) throws java.lang.Exception
dataset
- java.lang.Exception
public void clearStatistics(Datasets source) throws KiwaException
KiwaException
java.lang.Exception
public void clearStatisticsAll() throws KiwaException
KiwaException
public void clearStatisticsGenealogies() throws KiwaException
KiwaException
public void clearStatisticsTerminologies() throws KiwaException
KiwaException
public void closeRequest(Request request, long decisionMakerId, Request.Status decision, java.lang.String comment) throws java.lang.Exception
request
- ownerId
- java.lang.Exception
public void confirmFormatIssue(FormatIssue source) throws java.lang.Exception
id
- java.lang.Exception
public Account createAccount(java.lang.String email, java.lang.String firstName, java.lang.String lastName, java.lang.String password, Account.EmailScope emailScope, java.lang.String organization, java.lang.String businessCard, java.lang.String country, java.lang.String website, org.joda.time.DateTimeZone timeZone, boolean emailNotification)
email
- fullName
- password
- emailScope
- organization
- businessCard
- country
- timeZone
- emailNotification
- public Article createArticle(java.lang.String name, java.lang.String author, boolean visible, java.util.Locale locale, java.lang.String text)
name
- author
- visible
- locale
- text
- public void createCollaborator(Dataset dataset, Account collaboratorAccount, java.lang.String description, org.tip.puck.net.workers.AttributeFilters filters) throws java.lang.Exception
dataset
- collaboratorAccount
- description
- filters
- java.lang.Exception
public Collection createCollection(Contributor contributor, java.lang.String name, java.lang.String description, Collection.Scope scope)
contributor
- name
- description
- scope
- public Dataset createDataset(Contributor contributor, java.lang.String name)
contributor
- name
- public FormatIssue createFormatIssue(long contributorId, long datasetId, LoadedFile file)
contributorId
- datasetId
- file
- public Forum createForum(java.lang.String title, java.lang.String subtitle)
title
- subtitle
- public Message createMessage(Topic parent, Account author, java.lang.String text)
title
- subTitle
- public Topic createTopic(Forum forum, java.lang.String title, java.lang.String text, boolean sticky, Topic.Status status, Account author)
title
- subtitle
- public Wire createWire(java.lang.String title, java.lang.String author, org.joda.time.DateTime publicationDate, java.util.Locale locale, java.lang.String leadParagraph, java.lang.String body)
email
- fullName
- password
- emailScope
- organization
- businessCard
- country
- timeZone
- emailNotification
- public void downForum(Forum forum) throws java.lang.Exception
id
- java.lang.Exception
public EnvironmentInformation environmentInformation()
public Eucles eucles()
public void export(java.io.OutputStream out, KiwaExportCriteria criteria) throws java.io.IOException
out
- criteria
- java.io.IOException
public Dataset.Type extractDatasetTypeFromRequest(Request source)
source
- public fr.devinsy.util.StringList findOrphanSubkeys() throws java.lang.Exception
java.lang.Exception
public Account getAuthentifiedAccount(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- public java.lang.Long getAuthentifiedAccountId(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- public KiwaCharterView getCharterView()
public DatasetFile getDatasetFile(Dataset dataset, Account account)
dataset
- account
- public fr.devinsy.xidyn.views.CharterView getEmailCharterView()
public byte[] getKidarepFile(long id)
id
- public LoadedFile getLoadedFile(LoadedFileHeader source)
source
- public LoadedFile getLoadedFileDetached(LoadedFileHeader source)
source
- public int getResetPasswordValidity()
public Kiwa.Status getStatus()
public java.lang.String getUserLanguage(javax.servlet.http.HttpServletRequest request)
public java.util.Locale getUserLocale(javax.servlet.http.HttpServletRequest request)
public java.lang.String getWebContentPath()
public java.lang.String getWebsiteUrl()
public Hico hico()
public java.lang.String howToCite(Dataset source)
public void importArticles(byte[] source) throws java.lang.Exception
out
- criteria
- java.io.IOException
java.lang.Exception
public boolean isModerator(Account account)
account
- public boolean isRedactor(Account account)
account
- public boolean isSciboarder(Account account)
account
- public boolean isScichief(Account account)
account
- public boolean isWebmaster(Account account)
account
- public Kidarep kidarep()
public java.lang.String[] languages()
public Log log(Log.Level level, java.lang.String event)
level
- category
- comment
- public Log log(Log.Level level, java.lang.String event, java.lang.String detail)
level
- category
- comment
- public Log log(Log.Level level, java.lang.String event, java.lang.String detailFormat, java.lang.Object... details)
level
- category
- comment
- public EventLog logEvent(EventLog.Category category, java.lang.String... arguments)
level
- category
- comment
- protected void logKiwaInit(java.lang.String currentLogItem, java.lang.String status)
currentLogItem
- status
- public void logPageHit(java.lang.String page, javax.servlet.http.HttpServletRequest request)
page
- request
- public void notifyFormatInspectors(java.lang.String subject, java.lang.CharSequence content, java.util.Locale locale) throws java.lang.Exception
subject
- html
- java.lang.Exception
public void notifyMembers(Accounts accounts, java.lang.String subject, java.lang.CharSequence content, java.util.Locale locale) throws java.lang.Exception
subject
- html
- java.lang.Exception
public void notifyModerators(Account author, java.lang.String subject, java.lang.CharSequence content, java.util.Locale locale) throws java.lang.Exception
subject
- html
- java.lang.Exception
public void notifySciboarderChiefs(Account author, java.lang.String subject, java.lang.CharSequence content, java.util.Locale locale) throws java.lang.Exception
subject
- html
- java.lang.Exception
public void notifySciboarders(Account author, java.lang.String subject, java.lang.CharSequence content, java.util.Locale locale) throws java.lang.Exception
subject
- html
- java.lang.Exception
public void notifyWebmasters(Account author, java.lang.String subject, java.lang.CharSequence content, java.util.Locale locale) throws java.lang.Exception
subject
- html
- java.lang.Exception
public java.lang.String permanentURI(Dataset dataset)
dataset
- public void publishDataset(Dataset source)
source
- public void publishWire(long wireId) throws java.lang.Exception
id
- java.lang.Exception
public void purgeActalog(int days) throws java.lang.Exception
days
- java.lang.Exception
public void purgeActilog(int days) throws java.lang.Exception
days
- java.lang.Exception
public void purgeFormatIssues(int days) throws java.lang.Exception
days
- java.lang.Exception
public void purgeOrphans() throws java.lang.NumberFormatException, java.lang.Exception
java.lang.Exception
java.lang.NumberFormatException
public void putPermanentLinkAttribute(org.tip.puck.net.Net net, Dataset dataset)
net
- public void rebuildGenealogyStatistics(Dataset dataset, DatasetFile datasetFile) throws java.lang.Exception
dataset
- datasetFile
- java.lang.Exception
public void rebuildGenealogyStatisticsByThread(Dataset dataset, DatasetFile datasetFile) throws java.lang.Exception
source
- java.lang.Exception
public void rebuildStatistics(Dataset source) throws java.lang.Exception
dataset
- java.lang.Exception
public void rebuildStatistics(Dataset dataset, DatasetFile datasetFile) throws java.lang.Exception
source
- java.lang.Exception
public void rebuildStatistics(Datasets source) throws KiwaException
KiwaException
java.lang.Exception
public void rebuildStatisticsAll() throws KiwaException
dataset
- KiwaException
public void rebuildStatisticsGenealogies() throws KiwaException
dataset
- KiwaException
public void rebuildStatisticsTerminologies() throws KiwaException
dataset
- KiwaException
public void rebuildTerminologyStatistics(Dataset dataset, DatasetFile datasetFile) throws java.lang.Exception
dataset
- java.lang.Exception
public void removeAccount(long accountId)
id
- public void removeAllArticles() throws java.lang.Exception
id
- java.lang.Exception
public void removeArticle(long articleId) throws java.lang.Exception
id
- java.lang.Exception
public void removeCollaborator(Dataset dataset, Collaborator collaborator) throws java.lang.Exception
id
- java.lang.Exception
public void removeCollaborator(Dataset dataset, long collaboratorId) throws java.lang.Exception
id
- java.lang.Exception
public void removeCollection(Collection target) throws java.lang.Exception
id
- java.lang.Exception
public void removeDataset(Dataset source) throws java.lang.Exception
id
- java.lang.Exception
public void removeDatasetAttachment(Dataset dataset, LoadedFileHeader attachment) throws java.lang.Exception
id
- java.lang.Exception
public void removeDatasetFromCollection(Dataset source, Collection collection)
id
- public void removeDatasetOriginFile(Dataset dataset) throws java.lang.Exception
id
- java.lang.Exception
public void removeFormatIssue(FormatIssue source) throws java.lang.Exception
id
- java.lang.Exception
public void removeForum(Forum forum) throws java.lang.Exception
id
- java.lang.Exception
public void removeForum(long forumId) throws java.lang.Exception
id
- java.lang.Exception
public void removeMessage(long messageId) throws java.lang.Exception
id
- java.lang.Exception
public void removeMessage(Message message) throws java.lang.Exception
id
- java.lang.Exception
public void removeTopic(long topicId) throws java.lang.Exception
id
- java.lang.Exception
public void removeTopic(Topic topic) throws java.lang.Exception
id
- java.lang.Exception
public void removeWire(long wireId) throws java.lang.Exception
id
- java.lang.Exception
public Sciboard sciboard()
public fr.devinsy.kiss4web.SimpleSecurityAgent securityAgent()
public void sendEmail(java.lang.String to, java.lang.String subject, java.lang.CharSequence html)
to
- subject
- html
- public void setAccountPassword(Account account, java.lang.String password)
account
- password
- public void setCharterView(KiwaCharterView view)
charterView
- public void setDataRoot(java.lang.String key, java.lang.Object root)
key
- public void setEmailCharterView(fr.devinsy.xidyn.views.CharterView view)
charterView
- public void setLogLevel(Log.Level value)
value
- public void setResetPasswordValidity(int value)
value
- in minutespublic void setStatus(Kiwa.Status status)
status
- public void setUserLanguage(javax.servlet.http.HttpServletResponse response, java.lang.String language)
public void setVote(Request request, long ownerId, Vote.Value value)
request
- ownerId
- value
- public void setWebContentPath(java.lang.String path)
path
- public Stag stag()
public KiwaStorer storer()
public Request submitDataset(Dataset dataset, Account account, java.lang.String comment) throws java.lang.Exception
dataset
- comment
- java.lang.Exception
public Request submitDatasetUnpublish(Dataset dataset, Account account, java.lang.String comment) throws org.tip.puck.PuckException
dataset
- filter
- comment
- org.tip.puck.PuckException
public void suspendAccount(long accountId)
id
- public void transferDataset(Contributor newContributor, Dataset source) throws java.lang.Exception
id
- java.lang.Exception
public void unpublishDataset(Dataset dataset) throws java.lang.Exception
dataset
- java.lang.Exception
public void unpublishWire(long wireId) throws java.lang.Exception
id
- java.lang.Exception
public void updateAccount(Account account, java.lang.String firstName, java.lang.String lastName, java.lang.String password, Account.EmailScope emailScope, java.lang.String organization, java.lang.String businessCard, java.lang.String country, java.lang.String website, org.joda.time.DateTimeZone timeZone, boolean emailNotification)
email
- fullName
- password
- emailScope
- organization
- businessCard
- country
- timeZone
- emailNotification
- public void updateAccountByWebmaster(Account account, java.lang.String firstName, java.lang.String lastName, java.lang.String email, Account.EmailScope emailScope, java.lang.String organization, java.lang.String businessCard, java.lang.String country, java.lang.String website, org.joda.time.DateTimeZone timeZone, boolean emailNotification, Roles roles)
email
- fullName
- password
- emailScope
- organization
- businessCard
- country
- timeZone
- emailNotification
- public void updateAccountEmail(Account account, java.lang.String newEmail)
fullName
- email
- password
- public void updateAccountLastConnection(Account account)
public void updateArticle(Article article, java.lang.String name, java.lang.String author, boolean visibility, java.util.Locale locale, java.lang.String text)
wire
- title
- author
- publicationDate
- locale
- leadParagraph
- body
- public Collaborator updateCollaborator(Dataset dataset, long collaboratorId, java.lang.String description, org.tip.puck.net.workers.AttributeFilters filters) throws java.lang.Exception
collaboratorId
- description
- filters
- java.lang.Exception
public void updateDataset(Dataset dataset)
contributor
- name
- public void updateForum(Forum forum, java.lang.String title, java.lang.String subtitle)
forum
- title
- subtitle
- public void updateMessage(Message message, java.lang.String text)
forum
- title
- subtitle
- public void updateTopic(Topic topic, long forumId, java.lang.String title, boolean sticky, Topic.Status status)
forum
- title
- subtitle
- public void updateWire(Wire wire, java.lang.String title, java.lang.String author, org.joda.time.DateTime publicationDate, java.util.Locale locale, java.lang.String leadParagraph, java.lang.String body)
wire
- title
- author
- publicationDate
- locale
- leadParagraph
- body
- public void upForum(Forum forum) throws java.lang.Exception
id
- java.lang.Exception
public static org.tip.puck.report.Report controlNet(LoadedFile source, java.util.Locale locale, java.util.List<org.tip.puck.net.workers.ControlReporter.ControlType> controls) throws KiwaControlException, java.io.IOException, KiwaBadFileFormatException
source
- locale
- controls
- KiwaControlException
java.io.IOException
KiwaBadFileFormatException
public static LoadedFile convert(java.lang.String targetExtension, java.lang.String targetName, LoadedFile source) throws org.tip.puck.PuckException
targetExtension
- sourceFileName
- sourceData
- org.tip.puck.PuckException
public static LoadedFile convertNet(java.lang.String targetExtension, java.lang.String targetName, org.tip.puck.net.Net net) throws org.tip.puck.PuckException
targetExtension
- sourceFileName
- sourceData
- org.tip.puck.PuckException
public static Kiwa instance()
public static java.awt.image.BufferedImage loadImage(LoadedFile source) throws java.io.IOException
source
- java.io.IOException
public static org.tip.puck.net.Net loadNet(LoadedFile source) throws org.tip.puck.PuckException
source
- org.tip.puck.PuckException
public static org.tip.puck.net.Net loadNet(LoadedFile source, java.lang.String charsetName) throws org.tip.puck.PuckException
pathname
- org.tip.puck.PuckException
java.io.IOException
java.lang.Exception
public static org.tip.puck.net.Net loadNetTXT1(LoadedFile source, java.lang.String charsetName) throws org.tip.puck.PuckException
pathname
- org.tip.puck.PuckException
java.io.IOException
java.lang.Exception
public static org.tip.puck.net.Net loadNetXLS1(LoadedFile source) throws org.tip.puck.PuckException
pathname
- org.tip.puck.PuckException
java.io.IOException
java.lang.Exception
public static org.tip.puck.net.relations.RelationModel loadTerminology(LoadedFile source) throws org.tip.puck.PuckException
source
- org.tip.puck.PuckException
public static org.tip.puck.net.relations.RelationModel loadTerminology(LoadedFile source, java.lang.String charsetName) throws org.tip.puck.PuckException
source
- charsetName
- org.tip.puck.PuckException
public static LoadedFile saveImage(java.lang.String targetFileName, java.awt.image.BufferedImage image) throws java.io.IOException
targetFileName
- image
- java.io.IOException
public static LoadedFile saveNet(java.lang.String targetFileName, org.tip.puck.net.Net net) throws org.tip.puck.PuckException
targetExtension
- sourceFileName
- sourceData
- org.tip.puck.PuckException
public static byte[] saveNetToByteArray(org.tip.puck.graphs.GraphType graphType, org.tip.puck.net.Net net) throws org.tip.puck.PuckException
net
- org.tip.puck.PuckException
public static byte[] saveNetToByteArray(java.lang.String extension, org.tip.puck.net.Net net) throws org.tip.puck.PuckException
net
- org.tip.puck.PuckException