Uses of Class
org.nuclos.api.exception.BusinessException
Package
Description
-
Uses of BusinessException in org.nuclos.api.businessobject.facade
Modifier and TypeMethodDescriptionvoid
Modifiable.delete()
Deletes this bo.static <PK> void
Modifiable.delete
(PK id) Deletes the bo with this id.void
Lockable.lock()
Lock this business object by setting the current user as owner.void
Lock this business object by setting the given owner.void
Saves this bo.void
Lockable.unlock()
Unlock this business object by removing the owner.void
Lockable.unlockAfterCommit()
Unlock this business object after commit by removing the owner. -
Uses of BusinessException in org.nuclos.api.businessobject.facade.thin
-
Uses of BusinessException in org.nuclos.api.communication
Modifier and TypeMethodDescription<C extends RequestContext<?>>
voidCommunicationPort.handleRequest
(C context) Nuclos calls this method only for the types your interface supports.CommunicationPortFactory.newInstance
(CommunicationPortFactory.InstanceContext context) void
-
Uses of BusinessException in org.nuclos.api.context
Modifier and TypeMethodDescription<T extends GenericBusinessObject>
TCustomContext.getGenericBusinessObject
(Class<T> t) This method returns theGenericBusinessObject
containing the entry-data to edit during runtime.<T extends GenericBusinessObject>
TDeleteContext.getGenericBusinessObject
(Class<T> t) This method returns theGenericBusinessObject
containing the entry-data that has to be deleted.<T extends GenericBusinessObject>
TInsertContext.getGenericBusinessObject
(Class<T> t) This method returns theGenericBusinessObject
containing the entry-data that has to be saved.<T extends GenericBusinessObject>
TPrintContext.getGenericBusinessObject
(Class<T> t) returnsGenericBusinessObject
is not persisted automatically<T extends GenericBusinessObject>
TPrintFinalContext.getGenericBusinessObject
(Class<T> t) returnsGenericBusinessObject
is not persisted automatically<T extends GenericBusinessObject>
TStateChangeContext.getGenericBusinessObject
(Class<T> t) This method returns theGenericBusinessObject
that State should be changed<T extends GenericBusinessObject>
TUpdateContext.getGenericBusinessObject
(Class<T> t) This method returns theGenericBusinessObject
containing the entry-data that has been changed during runtime.<T extends GenericBusinessObject>
TGenerateContext.getParameterGenericObject
(Class<T> t) This method returns aGenericBusinessObject
that represent the Parameter<T extends GenericBusinessObject>
TGenerateContext.getSourceGenericObject
(Class<T> t) This method returns theGenericBusinessObject
that represents the source; if there is more than one SourceObject a BusinessException will be thrown; In this case use getSourceObjects(Class<T> t) instead<T extends GenericBusinessObject>
Collection<T>GenerateContext.getSourceGenericObjects
(Class<T> t) This method returns a list ofGenericBusinessObject
s that represent the Sources<T extends BusinessObject>
TGenerateContext.getSourceObject
(Class<T> t) This method returns aBusinessObject
that represents the source; if there is more than one SourceObject a BusinessException will be thrown; In this case use getSourceObjects(Class<T> t) instead<T extends GenericBusinessObject>
TGenerateContext.getTargetGenericObject
(Class<T> t) This method returns aGenericBusinessObject
that represent the Target -
Uses of BusinessException in org.nuclos.api.exception
Modifier and TypeClassDescriptionclass
PointerException
is an exception class used in rule programming. -
Uses of BusinessException in org.nuclos.api.provider
Modifier and TypeMethodDescriptionstatic <PK,
T extends BusinessObject<PK>>
URLWebclientProvider.buildBusinessObjectUrl
(Class<T> boClass) static <PK,
T extends BusinessObject<PK>>
URLWebclientProvider.buildBusinessObjectUrl
(Class<T> boClass, PK boId) static <T extends BusinessObject>
URLWebclientProvider.buildBusinessObjectUrl
(T bo) static URL
WebclientProvider.buildUrl
(WebclientUrl webclientUrl) static <T extends Stateful>
voidStatemodelProvider.changeState
(T t, State sState) Deprecated.static <T extends BusinessObject>
voidBusinessObjectProvider.delete
(T type) Deprecated.UseModifiable.delete()
or UseModifiable.delete(Object)
static void
UserProvider.delete
(NuclosUser user) This method allows to delete a specific user account.static <T extends BusinessObject>
voidBusinessObjectProvider.deleteAll
(Collection<T> type) This method deletes all BusinessObjects of then given collection from the database.static <PK,
T extends LogicalDeletable>
voidBusinessObjectProvider.deleteLogical
(T type) This method deletes all BusinessObjects logical without removing data from the database.static <PK,
T extends LogicalDeletable>
voidBusinessObjectProvider.deleteLogicalAll
(Collection<T> type) This method deletes all BusinessObjects logical without removing data from the database.static <S extends BusinessObject,
T extends BusinessObject>
List<T>GenerationProvider.execute
(List<S> s, Class<? extends Generation<S, T>> genClass) Using the source objects this method runs the given generation and returns the new created target objects.static <S extends BusinessObject,
T extends BusinessObject>
TGenerationProvider.execute
(S s, Class<? extends Generation<S, T>> genClass) Using the source object this method runs the given generation and returns the new created target object.static void
CommunicationProvider.executeRequest
(RequestContext<?> context) static <PK,
T extends BusinessObject<PK>>
TQueryProvider.executeSingleResult
(Query<T> query, Attribute<?>... attributes) This methods executes aQuery
and returns a single resultBusinessObject
of the type determined by theQuery
type.static void
UserProvider.expire
(NuclosUser user, Date date) This method allows to define a date on which to expire a specific user account.static <PK,
T extends Stateful & BusinessObject<PK>>
List<T>QueryProvider.getByProcess
(Process<T> process, Process<T>... additionalProcesses) This method returns allBusinessObject
s that contain one of the given processes;
AProcess
is always assigned to one entity, so the type of the BusinessObject does not have to be mentioned explicitly;
There must be at least one processstatic <PK,
T extends Stateful & BusinessObject<PK>>
List<T>QueryProvider.getByState
(Class<T> type, State state, State... additionalStates) This method returns allBusinessObject
s that contain one of the given states;
AState
is always assigned to one statemodel, that can be used by several entities.static List<NuclosLocale>
DataLocaleProvider.getDataLocales()
This method returns all activeNuclosLocale
.static String
ParameterProvider.getNucletParameter
(NucletParameter parameter) This method returns the value of the givenNucletParameter
as Stringstatic <T> T
WebServiceProvider.getStub
(Class<T> stubClass, WebServiceObject webServiceUID) This method creates a new instance of the given stub class and provides it with all settings (e.g.static String
ParameterProvider.getSystemParameter
(SystemParameter parameter) This method returns the value of the givenSystemParameter
as Stringstatic UID
UserProvider.grantMandator
(NuclosMandator mandator, NuclosUser user) This method assigns a mandator to a given user.static UID
UserProvider.grantRole
(Class<? extends NuclosRole> role, NuclosUser user) This method assigns a role to a given user.static UID
UserProvider.grantRole
(NuclosRole role, NuclosUser user) This method assigns a role to a given user.static void
CommunicationProvider.handleNotification
(NotificationContext context) static void
CommunicationProvider.handleResponse
(RequestContext<?> context) static <PK,
T extends BusinessObject<PK>>
PKBusinessObjectProvider.insert
(T type) Deprecated.static UID
This method creates a Mandator and returns the id of the new object.static UID
MandatorProvider.insert
(String name, NuclosMandator parentMandator) This method creates a Mandator and returns the id of the new object.static UID
UserProvider.insert
(String username, String firstname, String lastname, String email, Boolean passwordChangeRequired) Deprecated.static UID
UserProvider.insert
(String username, String firstname, String lastname, String email, String password, Boolean passwordChangeRequired) Deprecated.static UID
UserProvider.insert
(NuclosUser user) This method creates a Nuclos User and returns the id of the new object.
A password will be generated and a default notification Email with the password will be send.
A new user does not have any roles and therefore does not have any rights in Nuclos.static UID
UserProvider.insert
(NuclosUser user, String password) This method creates a Nuclos User and returns the id of the new object.
Sends a default notification Email with the password.
A new user does not have any roles and therefore does not have any rights in Nuclos.static UID
UserProvider.insert
(NuclosUser user, String password, boolean sendNotification) This method creates a Nuclos User and returns the id of the new object.
A new user does not have any roles and therefore does not have any rights in Nuclos.static <PK,
T extends BusinessObject<PK>>
Collection<PK>BusinessObjectProvider.insertAll
(Collection<T> type) This method receives a collection of new BusinessObjects and stores them in the database.static boolean
UserProvider.isMandatorGranted
(NuclosMandator mandator, NuclosUser user) This method checks if a mandator is granted to a given user.static <T extends InstantiableContext>
TCommunicationProvider.newContextInstance
(CommunicationPortKey portKey, Class<T> contextClass) For use in rules.static <T extends InstantiableContext>
TCommunicationProvider.newContextInstance
(CommunicationPort port, Class<T> contextClass) For internal use in ports.static NuclosFile
This method creates a newNuclosFile
using the given contentstatic NuclosFile
Opens and reads the data from the given file and returns a newNuclosFile
with the same filename and content.static NuclosFile
Opens and reads the data from the file the given filename points to and returns a newNuclosFile
with the same filename and content.static NuclosFile
Returns a newNuclosFile
with the given filename and content.static NuclosImage
This method creates a newNuclosImage
using the given content; a thumbnail will be created automaticallystatic void
FileProvider.print
(NuclosFile file) This method sends aNuclosFile
to the default printerstatic void
FileProvider.print
(NuclosFile file, String printername) This method sends aNuclosFile
to the given printerstatic void
FileProvider.print
(NuclosFile file, PrintProperties printProperties) This method prints aNuclosFile
with the givenPrintProperties
static List<NuclosMail>
MailProvider.receive
(boolean bDeleteMails) This method retrieves allNuclosMail
s that can be found in the Inbox of the account mentioned in the system parameters.static List<NuclosMail>
This method retrieves allNuclosMail
s that can be found in the specified folder of the account mentioned in the system parameters.static void
UserProvider.resetPassword
(NuclosUser user, String password, boolean sendNotification) This method resets the password for the given Nuclos User.static void
UserProvider.revokeMandator
(NuclosMandator mandator, NuclosUser user) This method revokes a mandator from a given user.static void
UserProvider.revokeRole
(Class<? extends NuclosRole> role, NuclosUser user) This method dispossesses a user of the given role.static void
UserProvider.revokeRole
(NuclosRole role, NuclosUser user) This method dispossesses a user of the given role.static DatasourceResult
DatasourceProvider.run
(Class<? extends Datasource> datasourceClass) This methods executes a query for a givenDatasource
-Object.static DatasourceResult
This methods executes a query for a givenDatasource
-Object.static ImportResult
ImportProvider.run
(NuclosFile importFile, boolean isTransactional, Class<? extends ImportStructureDefinition>... structureDefClasses) This method executes an import process by which the content of aNuclosFile
is parsed using the given structure definitions and stored in the database afterwards.static NuclosFile
PrintoutProvider.run
(OutputFormat format, Long boId) This method runs thePrintout
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
static NuclosFile
Providing the parameters this method runs thePrintout
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
static NuclosFile
PrintoutProvider.run
(OutputFormat format, Long boId, Map<String, Object> params, NuclosLocale locale) Providing the parameters this method runs thePrintout
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
containing all localized data in the given locale languagestatic NuclosFile
PrintoutProvider.run
(OutputFormat format, Long boId, NuclosLocale locale) This method runs thePrintout
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
containing all localized data in the given locale languagestatic NuclosFile
ReportProvider.run
(OutputFormat format) This method runs theReport
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
static NuclosFile
ReportProvider.run
(OutputFormat format, Map<String, Object> params) Providing the parameters this method runs theReport
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
static NuclosFile
ReportProvider.run
(OutputFormat format, Map<String, Object> params, NuclosLocale locale) Providing the parameters this method runs theReport
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
containing all localized data in the given locale languagestatic NuclosFile
ReportProvider.run
(OutputFormat format, NuclosLocale locale) This method runs theReport
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
containing all localized data in the given locale languagestatic NuclosFile
static ImportResult
XmlImportProvider.run
(NuclosFile importFile, boolean isTransactional, Class<? extends XmlImportStructureDefinition>... structureDefClasses) This method executes an import process by which the content of aNuclosFile
is parsed using the given structure definitions and stored in the database afterwards.static void
FileProvider.save
(NuclosFile file, String directory) This method saves aNuclosFile
in the given directorystatic void
MailProvider.send
(InputStream is) Takes an email as an .eml from an input stream and sends it.static void
MailProvider.send
(NuclosMail mail) This method sends aNuclosMail
All connection settings like POP3/SMTP must be set in Nuclos as system parametersstatic NuclosFile
FileProvider.toPdf
(NuclosFile file) Transforms the given file to PDF.static void
MailProvider.transformToEml
(NuclosMail nuclosMail, OutputStream outputStream) Transforms aNuclosMail
to the EML format and writes it to the specifiedOutputStream
.static <T extends BusinessObject>
voidDeprecated.static void
UserProvider.update
(NuclosUser user) This method updates the given Nuclos User.static <T extends BusinessObject>
voidBusinessObjectProvider.updateAll
(Collection<T> type) This method updates all BusinessObjects in the given collection. -
Uses of BusinessException in org.nuclos.api.rule
Modifier and TypeMethodDescriptionAuthenticationRule.authenticate
(AuthenticationContext context) void
StateChangeRule.changeState
(StateChangeContext context) StateChangeContext
is the context providing all attributes and methods that are relevant for StateChange-operations.void
StateChangeFinalRule.changeStateFinal
(StateChangeContext context) StateChangeContext
is the context providing all attributes and methods that are relevant for StateChange-operations.void
CommunicationRule.communicate
(C context) CommunicationContext
is the context providing all custom - relevant attributes and methods.void
CustomRule.custom
(CustomContext context) CustomContext
is the context providing all custom - relevant attributes and methods.void
DeleteRule.delete
(DeleteContext context) DeleteContext
is the context providing all deleting - relevant attributes and methods.void
DeleteFinalRule.deleteFinal
(DeleteContext context) DeleteContext
is the context providing all deleting - relevant attributes and methods.void
JobRule.execute
(JobContext context) JobContext
is the context providing all attributes and methods that are relevant for Job-operations.void
GenerateRule.generate
(GenerateContext context) GenerateContext
is the context providing all generation - relevant attributes and methods like TargetObjects, SourceObjects and ParameterObjectsvoid
GenerateFinalRule.generateFinal
(GenerateContext context) GenerateContext
is the context providing all generation - relevant attributes and methods like TargetObjects, SourceObjects and ParameterObjectsvoid
InsertRule.insert
(InsertContext context) InsertContext
is the context providing all insert - relevant attributes and methods.void
InsertFinalRule.insertFinal
(InsertContext context) InsertContext
is the context providing all insert - relevant attributes and methods.void
PrintRule.print
(PrintContext context) PrintContext
is the context providing all print - relevant attributes and methods.void
PrintFinalRule.printFinal
(PrintFinalContext context) PrintContext
is the context providing all print - relevant attributes and methods.default boolean
AuthenticationRule.refreshAuthentication
(RefreshAuthenticationContext context) A session with login whose lifetime has expired will call this method next time a request starts.void
UpdateRule.update
(UpdateContext context) UpdateContext
is the context providing all update - relevant attributes and methods.void
UpdateFinalRule.updateFinal
(UpdateContext context) UpdateContext
is the context providing all updateFinal - relevant attributes and methods. -
Uses of BusinessException in org.nuclos.api.service
Modifier and TypeMethodDescriptionWebclientService.buildUrl
(WebclientUrl webclientUrl) <T extends Stateful>
voidStatemodelService.changeState
(T t, State sState) Method changes the state of the BusinessObject t.<T extends BusinessObject>
voidBusinessObjectService.delete
(T type) void
UserService.delete
(NuclosUser user) This method allows to delete a specific user account.<T extends BusinessObject>
voidBusinessObjectService.deleteAll
(Collection<T> type) <PK,
T extends LogicalDeletable>
voidBusinessObjectService.deleteLogical
(T type) <PK,
T extends LogicalDeletable>
voidBusinessObjectService.deleteLogicalAll
(Collection<T> type) <S extends BusinessObject,
T extends BusinessObject>
List<T>GenerationService.execute
(List<S> s, Class<? extends Generation<S, T>> genClass) <S extends BusinessObject,
T extends BusinessObject>
TGenerationService.execute
(S s, Class<? extends Generation<S, T>> genClass) <PK,
T extends BusinessObject<PK>>
TQueryService.executeQuerySingleResult
(Query<T> query, Attribute<?>... attributes) void
CommunicationService.executeRequest
(RequestContext<?> context) void
UserService.expire
(NuclosUser user, Date date) This method allows to define a date on which to expire a specific user account.<PK,
T extends Stateful & BusinessObject<PK>>
List<T>QueryService.getByProcess
(Process<T> process, Process<T>... additionalProcesses) <PK,
T extends Stateful & BusinessObject<PK>>
List<T>QueryService.getByState
(Class<T> type, State state, State... additionalStates) ParameterService.getNucletParameter
(NucletParameter parameter) <T> T
WebService.getStub
(Class<T> stubClass, WebServiceObject webService) This method creates a new instance of the given stub class and provides it with all settings (e.g.ParameterService.getSystemParameter
(SystemParameter parameter) UserService.grantMandator
(NuclosMandator mandator, NuclosUser user) This method assigns a mandator to a given user.UserService.grantRole
(Class<? extends NuclosRole> role, NuclosUser user) This method assigns a role to a given user.UserService.grantRole
(NuclosRole role, NuclosUser user) This method assigns a role to a given user.void
CommunicationService.handleNotification
(NotificationContext context) void
CommunicationService.handleResponse
(RequestContext<?> context) <PK,
T extends BusinessObject<PK>>
PKBusinessObjectService.insert
(T type) MandatorService.insert
(String name, NuclosMandator parentMandator) UserService.insert
(String username, String firstname, String lastname, String email, Boolean passwordChangeRequired) Deprecated.UserService.insert
(String username, String firstname, String lastname, String email, String password, Boolean passwordChangeRequired) Deprecated.UserService.insert
(NuclosUser user) This method creates a Nuclos User and returns the id of the new object.
A password will be generated and a default notification Email with the password will be send.
A new user does not have any roles and therefore does not have any rights in Nuclos.UserService.insert
(NuclosUser user, String password) This method creates a Nuclos User and returns the id of the new object.
Sends a default notification Email with the password.
A new user does not have any roles and therefore does not have any rights in Nuclos.UserService.insert
(NuclosUser user, String password, boolean sendNotification) This method creates a Nuclos User and returns the id of the new object.
A new user does not have any roles and therefore does not have any rights in Nuclos.<PK,
T extends BusinessObject<PK>>
Collection<PK>BusinessObjectService.insertAll
(Collection<T> type) boolean
UserService.isMandatorGranted
(NuclosMandator mandator, NuclosUser user) This method checks if a mandator is granted to a given user.<T extends InstantiableContext>
TCommunicationService.newContextInstance
(CommunicationPortKey portKey, Class<T> contextClass) For use in rules.<T extends InstantiableContext>
TCommunicationService.newContextInstance
(CommunicationPort port, Class<T> contextClass) For internal use in ports.void
FileService.print
(NuclosFile file) void
FileService.print
(NuclosFile file, String printerName) void
FileService.print
(NuclosFile file, PrintProperties printProperties) MailService.receive
(boolean bDeleteMails) void
UserService.resetPassword
(NuclosUser user, String password, boolean sendNotification) This method resets the password for the given Nuclos User.void
UserService.revokeMandator
(NuclosMandator mandator, NuclosUser user) This method revokes a mandator from a given user.void
UserService.revokeRole
(Class<? extends NuclosRole> role, NuclosUser user) This method dispossesses a user of the given role.void
UserService.revokeRole
(NuclosRole role, NuclosUser user) This method dispossesses a user of the given role.DatasourceService.run
(Class<? extends Datasource> datasourceClass) ImportService.run
(NuclosFile importFile, boolean isTransactional, Class<? extends ImportStructureDefinition>... structureDefClasses) This method executes an import process by which the content of aNuclosFile
is parsed using the given structure definitions and stored in the database afterwards.PrintoutService.run
(OutputFormat format, Long iBusinessObjectId) PrintoutService.run
(OutputFormat format, Long iBusinessObjectId, Map<String, Object> params, NuclosLocale locale) PrintoutService.run
(OutputFormat format, Long iBusinessObjectId, NuclosLocale locale) ReportService.run
(OutputFormat format) ReportService.run
(OutputFormat format, Map<String, Object> params) ReportService.run
(OutputFormat format, Map<String, Object> params, NuclosLocale locale) ReportService.run
(OutputFormat format, NuclosLocale locale) XmlImportService.run
(NuclosFile importFile, boolean isTransactional, Class<? extends XmlImportStructureDefinition>... structureDefClasses) This method executes an XML import process by which the content of aNuclosFile
is parsed using the given XML structure definitions and stored in the database afterwards.void
FileService.save
(NuclosFile file, String directory) void
MailService.send
(InputStream is) void
MailService.send
(NuclosMail mail) FileService.toPdf
(NuclosFile file) void
MailService.transformToEml
(NuclosMail mail, OutputStream outputStream) <T extends BusinessObject>
voidvoid
UserService.update
(NuclosUser user) This method updates the given Nuclos User.<T extends BusinessObject>
voidBusinessObjectService.updateAll
(Collection<T> type)
Stateful.changeStatus(State)