Constructor and Description |
---|
InternalCore(com.mendix.core.component.LocalComponent component)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<T extends com.mendix.core.actionmanagement.CoreAction<?>> |
addListener(com.mendix.core.actionmanagement.ActionListener<T> al)
Deprecated.
Registers the given ActionListener to the ActionManager.
|
void |
addUserAction(java.lang.Class<? extends UserAction<?>> userActionClass)
Deprecated.
Add the action specified by the given action name to action registry.
|
boolean |
authenticate(IContext context,
IUser user,
java.lang.String password)
Deprecated.
Authenticate the given user with the given password.
|
void |
buildException(java.lang.StringBuilder trace,
java.lang.Throwable e)
Deprecated.
|
boolean |
change(IContext context,
IMendixObject object,
java.util.Map<java.lang.String,java.lang.String> changes)
Deprecated.
Changes the given object in the state store (synchronously).
|
java.util.concurrent.Future<java.lang.Boolean> |
changeAsync(IContext context,
IMendixObject obj,
java.util.Map<java.lang.String,java.lang.String> changes)
Deprecated.
Changes the object (asynchronously).
|
IMendixObject |
commit(IContext context,
IMendixObject object)
Deprecated.
Commits the given object.
|
IMendixObject |
commit(IContext context,
IMendixObject object,
int queryTimeout)
Deprecated.
Commits the given object.
|
java.util.List<IMendixObject> |
commit(IContext context,
java.util.List<IMendixObject> objects)
Deprecated.
Commits the given objects.
|
java.util.List<IMendixObject> |
commit(IContext context,
java.util.List<IMendixObject> objects,
int queryTimeout)
Deprecated.
|
java.util.List<java.util.concurrent.Future<java.util.List<IMendixObject>>> |
commitAsync(IContext context,
java.util.List<IMendixObject> objects)
Deprecated.
Commits the given object (asynchronously).
|
IMendixObject |
commitWithoutEvents(IContext context,
IMendixObject object)
Deprecated.
Commits the given object without events.
|
IMendixObject |
commitWithoutEvents(IContext context,
IMendixObject object,
int queryTimeout)
Deprecated.
Commits the given object without events.
|
java.util.List<IMendixObject> |
commitWithoutEvents(IContext context,
java.util.List<IMendixObject> objects)
Deprecated.
Commits the given objects without events.
|
java.util.List<IMendixObject> |
commitWithoutEvents(IContext context,
java.util.List<IMendixObject> objects,
int queryTimeout)
Deprecated.
Commit the given objects without events.
|
IDataType |
createDataType(java.lang.String type)
Deprecated.
Creates a DataType based on a type.
Possible types: - Boolean - Integer - Long - Float - String - Datetime - {code#id} (enumeration key) - ModuleName.ObjectName (IMendixObject) - [ModuleName.ObjectName] (List |
IDataType |
createDataType(java.lang.String objectType,
java.lang.String attributeName)
Deprecated.
Creates a DataType based on an object type and a attribute name
|
IMendixIdentifier |
createMendixIdentifier(long guid)
Deprecated.
Creates a new IMendixIdentifier for the given guid.
|
IMendixIdentifier |
createMendixIdentifier(java.lang.String guid)
Deprecated.
Creates a IMendixIdentifier for the given guid.
|
IMetaAssociationSchema |
createMetaAssociationSchema(java.lang.String metaAssociationName,
IRetrievalSchema retrievalSchema)
Deprecated.
Create a new IMetaAssociationSchema to specify which associations must be retrieved.
|
IOQLTextGetRequest |
createOQLTextGetRequest()
Deprecated.
Create a new IOQLTextGetRequest.
|
IRetrievalSchema |
createRetrievalSchema()
Deprecated.
Create a new IRetrievalSchema.
|
IContext |
createSystemContext()
Deprecated.
Returns the context of the system session (this is always a sudo context).
|
IXPathTextGetRequest |
createXPathTextGetRequest()
Deprecated.
Create a new IXPathTextGetRequest.
|
boolean |
delete(IContext context,
IMendixObject... objects)
Deprecated.
Deletes the given objects from the database and server state store (synchronously).
|
boolean |
delete(IContext context,
int queryTimeout,
IMendixObject... objects)
Deprecated.
Deletes the given objects from the database and server state store (synchronously).
|
boolean |
delete(IContext context,
java.util.List<IMendixObject> objectList)
Deprecated.
Deletes the given objects from the database and server state store (synchronously).
|
java.util.List<java.util.concurrent.Future<java.lang.Boolean>> |
deleteAsync(IContext context,
IMendixObject object,
boolean useDeleteBehavior)
Deprecated.
Deletes the given object from the database and server state store (asynchronously).
|
java.util.List<java.util.concurrent.Future<java.lang.Boolean>> |
deleteAsync(IContext context,
java.util.List<IMendixObject> objects,
boolean useDeleteBehavior)
Deprecated.
Deletes the given object from the database and server state store (asynchronously).
|
boolean |
deleteWithoutEvents(IContext context,
java.util.List<IMendixObject> objects,
boolean useDeleteBehavior)
Deprecated.
Deletes the given objects from the database and server state store (synchronously) without events This action is executed in a transaction.
|
java.lang.Object |
evaluateExpression(IContext context,
java.util.Map<java.lang.String,java.lang.Object> variables,
java.lang.String expression)
Deprecated.
Evaluate the given (microflow)expression.
|
<R> R |
execute(IContext context,
java.lang.String actionName,
boolean executeInTransaction,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
Execute the specified action (synchronously).
|
<R> R |
execute(IContext context,
java.lang.String actionName,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
Execute the specified action (synchronously).
|
<R> R |
execute(IContext context,
java.lang.String actionName,
java.lang.Object... params)
Deprecated.
|
<T extends com.mendix.core.actionmanagement.CoreAction<R>,R> |
execute(T action)
Deprecated.
Execute an action asynchronously, result is given and/or exceptions are raised when calling Future.get().
|
<R> java.util.concurrent.Future<R> |
executeAsync(IContext context,
java.lang.String microflowName,
long asyncId,
boolean executeInTransaction,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
Execute the specified microflow (asynchronously).
|
<R> java.util.concurrent.Future<R> |
executeAsync(IContext context,
java.lang.String actionName,
long asyncId,
java.lang.Object... params)
Deprecated.
Execute the specified action (asynchronously)
Result is given and/or exceptions are raised when calling Future.get().
|
<R> java.util.concurrent.Future<R> |
executeAsync(IContext context,
java.lang.String actionName,
java.lang.Object... params)
Deprecated.
Execute the specified action (asynchronously)
Result is given and/or exceptions are raised when calling Future.get().
|
<T extends ICoreAction<R>,R> |
executeSync(T action)
Deprecated.
Execute an action synchronously.
|
<T extends com.mendix.core.actionmanagement.CoreAction<R>,R> |
executeVoid(T action)
Deprecated.
Execute the specified action (asynchronously).
|
int |
getActionQueueSize()
Deprecated.
Returns the current action pool queue size.
|
int |
getActiveActionCount()
Deprecated.
Returns the current number of active actions.
|
ISession |
getActiveSession(java.lang.String userName)
Deprecated.
|
java.util.Collection<? extends ISession> |
getActiveSessions()
Deprecated.
|
java.lang.Iterable<IMendixObject> |
getAllMendixObjects()
Deprecated.
Get all IMendixObject types.
|
long |
getCompletedActionCount()
Deprecated.
Returns the number of completed actions since server startup.
|
long |
getConcurrentUserCount(boolean anonymous)
Deprecated.
The current number of concurrent users.
|
Configuration |
getConfiguration()
Deprecated.
|
int |
getCurrentPoolSize()
Deprecated.
Returns the current action pool size.
|
java.lang.String |
getDatabaseChildColumnName(IMetaAssociation iMetaAssociation)
Deprecated.
|
java.lang.String |
getDatabaseColumnName(IMetaPrimitive iMetaPrimitive)
Deprecated.
|
java.lang.String |
getDatabaseParentColumnName(IMetaAssociation iMetaAssociation)
Deprecated.
|
java.lang.String |
getDatabaseTableName(IMetaAssociation iMetaAssociation)
Deprecated.
|
java.lang.String |
getDatabaseTableName(IMetaObject iMetaObject)
Deprecated.
|
ILanguage |
getDefaultLanguage()
Deprecated.
Returns the default language of the loaded project.
|
java.io.InputStream |
getFileDocumentContent(IContext context,
IMendixObject fileDocument)
Deprecated.
Returns contents of a file document as an input stream.
|
java.io.InputStream |
getImage(IContext context,
IMendixObject imageDocument,
boolean retrieveThumbnail)
Deprecated.
Retrieve contents of the given image document.
|
java.util.Map<java.lang.String,IDataType> |
getInputParameters(java.lang.String actionName)
Deprecated.
Returns all input parameter data types the specified action by name.
|
java.lang.String |
getInternationalizedString(IContext context,
java.lang.String key,
java.lang.Object... args)
Deprecated.
Returns the translated string for a certain key and context.
|
java.lang.String |
getInternationalizedString(java.lang.String languageCode,
java.lang.String key,
java.lang.Object... args)
Deprecated.
Returns the translated string for a certain key and language code.
|
int |
getLargestPoolSize()
Deprecated.
Returns the largest action pool size.
|
java.util.Locale |
getLocale(IContext context)
Deprecated.
Retrieve locale using the given context.
|
java.util.Locale |
getLocale(java.lang.String languageCode)
Deprecated.
Retrieve locale using the given language code (e.g.
|
com.mendix.logging.ILogNode |
getLogger(java.lang.String name)
Deprecated.
|
int |
getMaximumNumberConcurrentUsers()
Deprecated.
Returns the maximum number of concurrent users since the server was started.
|
IMetaAssociation |
getMetaAssociation(java.lang.String association)
Deprecated.
Get the IMetaAssociation corresponding to the given association name.
|
java.lang.Iterable<IMetaAssociation> |
getMetaAssociations()
Deprecated.
Get all IMetaAssociations.
|
IMetaObject |
getMetaObject(java.lang.String metaObjectName)
Deprecated.
Get the IMetaObject corresponding to the given meta object name.
|
java.lang.Iterable<IMetaObject> |
getMetaObjects()
Deprecated.
Get all IMetaObjects.
|
IMetaPrimitive |
getMetaPrimitive(java.lang.String qualifiedAttributeName)
Deprecated.
Get the IMetaPrimtive based on a qualified attribute name (e.g.
|
java.util.Set<java.lang.String> |
getMicroflowNames()
Deprecated.
Returns the names of all modeled microflows.
|
long |
getNamedUserCount()
Deprecated.
|
long |
getNumberConcurrentSessions()
Deprecated.
Returns current number of concurrent sessions.
|
IProfiler |
getProfiler()
Deprecated.
|
IDataType |
getReturnType(java.lang.String actionName)
Deprecated.
Returns the return type of the specified action.
|
int |
getScheduledActionCount()
Deprecated.
Returns the number of actions currently scheduled for future execution.
|
java.util.Date |
getStartupDateTime()
Deprecated.
Returns the startup date time of the Mendix Business Server.
|
java.util.List<java.lang.String> |
getSubtypesOf(java.lang.String objectType)
Deprecated.
Get all subtypes for an object type (including subtypes of subtypes, etc.).
|
com.mendix.core.session.User |
getUser(IContext context,
java.lang.String userName)
Deprecated.
Returns a user using the given user name.
|
java.lang.String |
getXASId()
Deprecated.
Returns the id of this server instance.
|
ISession |
initializeGuestSession()
Deprecated.
Initialize a new session for a guest user
|
ISession |
initializeSession(IUser user,
java.lang.String currentSessionId)
Deprecated.
Initialize a new session for the given user.
|
IMendixObject |
instantiate(IContext context,
java.lang.String objectType)
Deprecated.
Creates a new IMendixObject with the given object type (synchronously).
|
java.util.concurrent.Future<IMendixObject> |
instantiateAsync(IContext context,
java.lang.String objectType)
Deprecated.
Creates a new IMendixObject with the given object type (asynchronously).
|
boolean |
isInDevelopment()
Deprecated.
|
boolean |
isSubClassOf(IMetaObject superObject,
IMetaObject type)
Deprecated.
Checks whether a type is a subclass of or equal to a potential super class.
|
boolean |
isSubClassOf(java.lang.String superClass,
short typeHash)
Deprecated.
Checks whether a type is a subclass of or equal to a potential super class.
|
boolean |
isSubClassOf(java.lang.String superClass,
java.lang.String type)
Deprecated.
Checks whether a type is a subclass of or equal to a potential super class.
|
ISession |
login(java.util.Map<java.lang.String,? extends java.lang.Object> params)
Deprecated.
Generic login method (can be used in modules in combination with LoginAction replacement).
|
ISession |
login(java.lang.String userName,
java.lang.String password)
Deprecated.
Login user with the given user name and password.
|
ISession |
login(java.lang.String userName,
java.lang.String password,
com.mendix.m2ee.api.IMxRuntimeRequest request)
Deprecated.
|
ISession |
login(java.lang.String userName,
java.lang.String password,
java.lang.String currentSessionId)
Deprecated.
Login user with the given parameters.
|
void |
logout(ISession session)
Deprecated.
Logout the given session.
|
void |
registerLogSubscriber(com.mendix.logging.LogSubscriber subscriber)
Deprecated.
|
void |
registerProfiler(IProfiler profiler)
Deprecated.
|
boolean |
removeScheduledFuture(java.util.concurrent.RunnableScheduledFuture<?> scheduledFuture)
Deprecated.
Remove scheduled future.
|
<R> java.util.concurrent.ScheduledFuture<?> |
reschedule(java.util.concurrent.RunnableScheduledFuture<R> scheduledFuture,
com.mendix.core.actionmanagement.CoreAction<R> action,
long newDelay,
java.util.concurrent.TimeUnit timeUnit)
Deprecated.
Reschedule an action with a new delay.
|
java.lang.Object |
resolveTokens(IContext context,
java.lang.String text)
Deprecated.
Resolve tokens (Mendix system variables) in the given text.
|
java.util.List<IMendixObject> |
retrieveByIdWithSchema(IContext context,
IMendixIdentifier id,
IRetrievalSchema schema)
Deprecated.
|
java.util.List<IMendixObject> |
retrieveByPath(IContext context,
IMendixObject mxObject,
java.lang.String path)
Deprecated.
Retrieves objects using the given object and path.
|
java.util.List<IMendixObject> |
retrieveByPath(IContext context,
IMendixObject mxObject,
java.lang.String path,
boolean isSelfAssociationChild)
Deprecated.
Retrieves objects using the given object and path.
|
java.util.List<IMendixObject> |
retrieveByPath(IContext context,
IMendixObject mxObject,
java.lang.String path,
java.lang.String entity,
boolean isSelfAssociationChild)
Deprecated.
Retrieves objects using the given object and path.
|
IMendixObject |
retrieveId(IContext context,
IMendixIdentifier id)
Deprecated.
Retrieves object with the given id (synchronously).
|
java.util.concurrent.Future<IMendixObject> |
retrieveIdAsync(IContext context,
IMendixIdentifier id)
Deprecated.
Retrieves object with the given id (asynchronously).
|
java.util.List<IMendixObject> |
retrieveIdList(IContext context,
java.util.List<IMendixIdentifier> ids)
Deprecated.
Retrieves objects with the given ids (synchronously).
|
java.util.List<IMendixObject> |
retrieveIdList(IContext context,
java.util.List<IMendixIdentifier> ids,
int amount,
int offset,
java.util.Map<java.lang.String,java.lang.String> sort)
Deprecated.
Retrieves objects with the given ids (synchronously).
|
java.util.concurrent.Future<java.util.List<IMendixObject>> |
retrieveIdListAsync(IContext context,
java.util.List<IMendixIdentifier> ids)
Deprecated.
Retrieves objects with the given ids (asynchronously).
|
IDataTable |
retrieveOQLDataTable(IContext context,
IGetRequest request)
Deprecated.
Retrieve raw data (IDataTable) using an IGetRequest object (synchronously).
|
IDataTable |
retrieveOQLDataTable(IContext context,
java.lang.String oqlQuery)
Deprecated.
Retrieve raw data (IDataTable) using an IGetRequest object (synchronously).
|
IDataTable |
retrieveOQLDataTable(IContext context,
java.lang.String oqlQuery,
int amount,
int offset)
Deprecated.
Retrieve raw data (IDataTable) using an OQL query (asynchronously).
|
java.util.concurrent.Future<IDataTable> |
retrieveOQLDataTableAsync(IContext context,
IGetRequest request)
Deprecated.
Retrieve raw data (IDataTable) using an IGetRequest object (asynchronously).
|
java.util.concurrent.Future<IDataTable> |
retrieveOQLDataTableAsync(IContext context,
java.lang.String oqlQuery)
Deprecated.
Retrieve raw data (IDataTable) using an OQL query (asynchronously).
|
java.util.concurrent.Future<IDataTable> |
retrieveOQLDataTableAsync(IContext context,
java.lang.String oqlQuery,
int amount,
int offset)
Deprecated.
Retrieve raw data (IDataTable) using an OQL query (asynchronously).
|
java.util.List<IMendixObject> |
retrieveXPathQuery(IContext context,
java.lang.String xpathQuery)
Deprecated.
Retrieves object list based on the given XPath query (synchronously).
|
java.util.List<IMendixObject> |
retrieveXPathQuery(IContext context,
java.lang.String xpathQuery,
int amount,
int offset,
java.util.Map<java.lang.String,java.lang.String> sort)
Deprecated.
Retrieves object list based on the given XPath query (synchronously).
|
java.util.List<IMendixObject> |
retrieveXPathQuery(IContext context,
java.lang.String xpathQuery,
int amount,
int offset,
java.util.Map<java.lang.String,java.lang.String> sort,
int depth)
Deprecated.
Retrieves object list based on the given XPath query (synchronously).
|
java.util.List<IMendixObject> |
retrieveXPathQuery(IContext context,
java.lang.String xpathQuery,
int amount,
int offset,
java.util.Map<java.lang.String,java.lang.String> sort,
int depth,
int timeout)
Deprecated.
|
java.lang.Long |
retrieveXPathQueryAggregate(IContext context,
java.lang.String xpathQuery)
Deprecated.
Retrieves long aggregate value based on the given query (root element of the query should be an aggregate function) (synchronously).
|
java.util.concurrent.Future<java.lang.Long> |
retrieveXPathQueryAggregateAsync(IContext context,
java.lang.String xpathQuery)
Deprecated.
Retrieves long aggregate value based on the given query (root element of the query should be an aggregate function) (asynchronously).
|
java.util.concurrent.Future<java.lang.Double> |
retrieveXPathQueryAggregateAsyncDouble(IContext context,
java.lang.String xpathQuery)
Deprecated.
Retrieves long value based on the given query (query should have an aggregate function as root element)
|
java.math.BigDecimal |
retrieveXPathQueryAggregateDecimal(IContext context,
java.lang.String xpathQuery)
Deprecated.
|
java.lang.Double |
retrieveXPathQueryAggregateDouble(IContext context,
java.lang.String xpathQuery)
Deprecated.
Retrieves double aggregate value based on the given query (root element of the query should be an aggregate function) (synchronously).
|
java.lang.Long |
retrieveXPathQueryAggregateSchema(IContext context,
java.lang.String xpathQuery,
IRetrievalSchema retrievalSchema)
Deprecated.
Retrieves long aggregate value based on the given query and schema (root element of the query should be an aggregate function) (asynchronously).
|
java.lang.Long |
retrieveXPathQueryAggregateSchema(IContext context,
java.lang.String xpathQuery,
IRetrievalSchema retrievalSchema,
boolean disableSecurity)
Deprecated.
Retrieves long aggregate value based on the given query and schema (root element of the query should be an aggregate function) (asynchronously).
|
java.util.concurrent.Future<java.util.List<IMendixObject>> |
retrieveXPathQueryAsync(IContext context,
java.lang.String xpathQuery,
int amount,
int offset,
java.util.Map<java.lang.String,java.lang.String> sort,
int depth)
Deprecated.
Retrieves object list based on the given XPath query (asynchronously).
|
java.util.List<IMendixObject> |
retrieveXPathQueryEscaped(IContext context,
java.lang.String xpathFormat,
int amount,
int offset,
java.util.Map<java.lang.String,java.lang.String> sort,
int depth,
java.lang.String... params)
Deprecated.
Retrieves object list based on the given XPath query (synchronously).
|
java.util.List<IMendixObject> |
retrieveXPathQueryEscaped(IContext context,
java.lang.String xpathFormat,
java.lang.String... params)
Deprecated.
Retrieves object list based on the given XPath query (synchronously).
|
IDataTable |
retrieveXPathQueryRaw(IContext context,
java.lang.String xpathQuery,
int amount,
int offset,
java.util.Map<java.lang.String,java.lang.String> sort,
int depth)
Deprecated.
Retrieves raw data (IDataTables) based on the given XPath query (synchronously).
|
java.util.List<IMendixObject> |
retrieveXPathSchema(IContext context,
java.lang.String xpathQuery,
IRetrievalSchema retrievalSchema,
boolean shouldRetrieveCount,
boolean disableSecurity)
Deprecated.
Retrieves objects based on the XPath query and given schema (synchronously).
|
java.util.List<IMendixObject> |
retrieveXPathSchemaEscaped(IContext context,
java.lang.String xpathFormat,
IRetrievalSchema retrievalSchema,
boolean shouldRetrieveCount,
boolean disableSecurity,
java.lang.String... params)
Deprecated.
Retrieves object list based on the given XPath query (synchronously).
|
IDataTable |
retrieveXPathSchemaRaw(IContext context,
java.lang.String xpathQuery,
boolean shouldRetrieveCount,
IRetrievalSchema retrievalSchema)
Deprecated.
Retrieves raw data (IDataTables) based on the XPath query and given schema (synchronously).
|
IMendixObject |
rollback(IContext context,
IMendixObject object)
Deprecated.
Rollback changes of the object with the given id (synchronously).
|
java.util.concurrent.Future<IMendixObject> |
rollbackAsync(IContext context,
IMendixObject object)
Deprecated.
Rollback changes of the object with the given id (asynchronously).
|
<R> java.util.concurrent.RunnableScheduledFuture<?> |
schedule(com.mendix.core.actionmanagement.CoreAction<R> action,
long delay,
java.util.concurrent.TimeUnit timeUnit)
Deprecated.
Schedule an action on a certain delay from now.
|
java.util.concurrent.RunnableScheduledFuture<?> |
schedule(java.lang.String actionName,
java.util.Date date)
Deprecated.
Schedule an action on a certain date.
|
<R> void |
scheduleAtFixedRate(com.mendix.core.actionmanagement.CoreAction<R> action,
java.util.Date firstRun,
long period,
java.util.concurrent.TimeUnit timeUnit)
Deprecated.
Schedule a periodic action that run for the first time on the given date/time, and subsequently with the given period; that is executions will commence on firstRun then initialDelay+period,
then initialDelay + 2 * period, and so on.
No result will be returned. |
<R> void |
scheduleAtFixedRate(com.mendix.core.actionmanagement.CoreAction<R> action,
long initialDelay,
long period,
java.util.concurrent.TimeUnit timeUnit)
Deprecated.
Schedule a periodic action that runs for the first time after the given initial delay, and subsequently with the given period; that is executions will commence after initialDelay then
initialDelay+period, then initialDelay + 2 * period, and so on.
|
void |
scheduleAtFixedRate(java.lang.String actionName,
java.util.Date firstRun,
long period,
java.util.concurrent.TimeUnit timeUnit,
java.lang.String name,
java.lang.String description)
Deprecated.
Schedule a periodic action that runs for the first time after the given initial delay (first run), and subsequently with the given period; that is executions will commence after initialDelay
then initialDelay+period, then initialDelay + 2 * period, and so on.
|
<R> void |
scheduleWithFixedDelay(com.mendix.core.actionmanagement.CoreAction<R> action,
long initialDelay,
long delay,
java.util.concurrent.TimeUnit timeUnit)
Deprecated.
Schedule a periodic action that runs for the first time after the given initial delay, and subsequently with the given delay between the termination of one execution and the commencement of the
next.
|
void |
storeFileDocumentContent(IContext context,
IMendixObject fileDocument,
java.io.InputStream inputStream)
Deprecated.
Physically stores a file using the given input stream and commits the file document.
|
void |
storeFileDocumentContent(IContext context,
IMendixObject fileDocument,
java.lang.String fileName,
java.io.InputStream inputStream)
Deprecated.
Physically stores a file using the given input stream and commits the file document.
|
void |
storeImageDocumentContent(IContext context,
IMendixObject imageDocument,
java.io.InputStream inputStream,
int thumbnailWidth,
int thumbnailHeight)
Deprecated.
Physically stores an image using the given input stream and commits the image document.
|
void |
unregisterProfiler()
Deprecated.
|
public InternalCore(com.mendix.core.component.LocalComponent component)
public <T extends com.mendix.core.actionmanagement.CoreAction<?>> void addListener(com.mendix.core.actionmanagement.ActionListener<T> al)
ICore
addListener
in interface ICore
al
- the ActionListener to add.public void addUserAction(java.lang.Class<? extends UserAction<?>> userActionClass)
ICore
execute(actionName)
for this action.addUserAction
in interface ICore
userActionClass
- the action (e.g. com.mendix.action.MyAction).public boolean authenticate(IContext context, IUser user, java.lang.String password) throws com.mendix.core.CoreException
ICore
authenticate
in interface ICore
user
- the user.password
- the password.com.mendix.core.CoreException
public void buildException(java.lang.StringBuilder trace, java.lang.Throwable e)
buildException
in interface ICore
public boolean change(IContext context, IMendixObject object, java.util.Map<java.lang.String,java.lang.String> changes) throws com.mendix.core.CoreException
ICore
public java.util.concurrent.Future<java.lang.Boolean> changeAsync(IContext context, IMendixObject obj, java.util.Map<java.lang.String,java.lang.String> changes)
ICore
changeAsync
in interface ICore
context
- the context.obj
- the MendixObject to changechanges
- contains changes by member name (e.g. <"Name", "User1">).public IMendixObject commit(IContext context, IMendixObject object) throws com.mendix.core.CoreException
ICore
public java.util.List<IMendixObject> commit(IContext context, java.util.List<IMendixObject> objects)
ICore
public IMendixObject commit(IContext context, IMendixObject object, int queryTimeout)
ICore
public java.util.List<java.util.concurrent.Future<java.util.List<IMendixObject>>> commitAsync(IContext context, java.util.List<IMendixObject> objects)
ICore
commitAsync
in interface ICore
context
- the contextobjects
- the instances of IMendixObject to commit.public java.util.List<IMendixObject> commit(IContext context, java.util.List<IMendixObject> objects, int queryTimeout)
public IMendixObject commitWithoutEvents(IContext context, IMendixObject object)
ICore
Commits the given object without events. This will store the object in the database and remove it from the server cache.
This action is executed in a transaction.
Validations except unique validation are not executed. It is possible to save an entity which would not pass validations using this method.
commitWithoutEvents
in interface ICore
context
- the context.object
- the IMendixObject to commit.public IMendixObject commitWithoutEvents(IContext context, IMendixObject object, int queryTimeout)
ICore
Commits the given object without events. This will store the object in the database and remove it from the server cache.
This action is executed in a transaction.
Validations except unique validation are not executed. It is possible to save an entity which would not pass validations using this method.
commitWithoutEvents
in interface ICore
context
- the context.object
- the IMendixObject to commit.queryTimeout
- the timeout for queries related to this commit.public java.util.List<IMendixObject> commitWithoutEvents(IContext context, java.util.List<IMendixObject> objects)
ICore
Commits the given objects without events. This will store the objects in the database and remove it from the server cache.
This action is executed in a transaction.
Validations except unique validation are not executed. It is possible to save entities which would not pass validations using this method.
commitWithoutEvents
in interface ICore
context
- the context.objects
- the objects to commit.public java.util.List<IMendixObject> commitWithoutEvents(IContext context, java.util.List<IMendixObject> objects, int queryTimeout)
ICore
commitWithoutEvents
in interface ICore
context
- the context.objects
- the objects to commit.queryTimeout
- the query timeout.public IDataType createDataType(java.lang.String type)
ICore
createDataType
in interface ICore
type
- the type to base the IDataType on.public IDataType createDataType(java.lang.String objectType, java.lang.String attributeName)
ICore
createDataType
in interface ICore
objectType
- the object type (format: "ModuleName.EntityName").attributeName
- the attribute to create the IDataType for (should be a member of above object type)public IMendixIdentifier createMendixIdentifier(long guid)
ICore
createMendixIdentifier
in interface ICore
guid
- the guid.public IMendixIdentifier createMendixIdentifier(java.lang.String guid)
ICore
createMendixIdentifier
in interface ICore
guid
- the guid.public IMetaAssociationSchema createMetaAssociationSchema(java.lang.String metaAssociationName, IRetrievalSchema retrievalSchema)
ICore
createMetaAssociationSchema
in interface ICore
metaAssociationName
- the name of the meta association of this schemaretrievalSchema
- the retrieval schema of the associated meta objectpublic IOQLTextGetRequest createOQLTextGetRequest()
ICore
createOQLTextGetRequest
in interface ICore
public IRetrievalSchema createRetrievalSchema()
ICore
createRetrievalSchema
in interface ICore
public IContext createSystemContext()
ICore
createSystemContext
in interface ICore
public IXPathTextGetRequest createXPathTextGetRequest()
ICore
createXPathTextGetRequest
in interface ICore
public boolean delete(IContext context, IMendixObject... objects)
ICore
public boolean delete(IContext context, int queryTimeout, IMendixObject... objects)
ICore
public boolean delete(IContext context, java.util.List<IMendixObject> objectList)
ICore
public java.util.List<java.util.concurrent.Future<java.lang.Boolean>> deleteAsync(IContext context, IMendixObject object, boolean useDeleteBehavior)
ICore
deleteAsync
in interface ICore
context
- the context.object
- the object to delete.useDeleteBehavior
- whether to use delete behavior.public java.util.List<java.util.concurrent.Future<java.lang.Boolean>> deleteAsync(IContext context, java.util.List<IMendixObject> objects, boolean useDeleteBehavior)
ICore
deleteAsync
in interface ICore
context
- the context.objects
- the objects to delete.useDeleteBehavior
- whether to use delete behavior.public boolean deleteWithoutEvents(IContext context, java.util.List<IMendixObject> objects, boolean useDeleteBehavior)
ICore
deleteWithoutEvents
in interface ICore
context
- the context.objects
- the objects to delete.useDeleteBehavior
- whether to use delete behavior.public java.lang.Object evaluateExpression(IContext context, java.util.Map<java.lang.String,java.lang.Object> variables, java.lang.String expression)
ICore
evaluateExpression
in interface ICore
context
- the context.variables
- name of variables referenced in the expression (without '$') and their values.expression
- the expressionpublic <R> R execute(IContext context, java.lang.String actionName, boolean executeInTransaction, java.util.Map<java.lang.String,java.lang.Object> params) throws com.mendix.core.CoreException
ICore
execute
in interface ICore
context
- the context for this action.actionName
- the name of a microflow or java action (format "ModuleName.ActionName").executeInTransaction
- defines whether the action should be execute in a transaction (enables rolling back changes when exceptions are raised).params
- action parameters by name.com.mendix.core.CoreException
public <R> R execute(IContext context, java.lang.String actionName, java.util.Map<java.lang.String,java.lang.Object> params) throws com.mendix.core.CoreException
ICore
public <R> R execute(IContext context, java.lang.String actionName, java.lang.Object... params) throws com.mendix.core.CoreException
public <T extends com.mendix.core.actionmanagement.CoreAction<R>,R> java.util.concurrent.Future<R> execute(T action)
ICore
public <R> java.util.concurrent.Future<R> executeAsync(IContext context, java.lang.String microflowName, long asyncId, boolean executeInTransaction, java.util.Map<java.lang.String,java.lang.Object> params) throws com.mendix.core.CoreException
ICore
executeAsync
in interface ICore
context
- the context for this microflow.microflowName
- the name of the microflow (format "ModuleName.ActionName").asyncId
- async id of this microflow.executeInTransaction
- defines whether the microflow should be executed in a transaction (enables rolling back changes when exceptions are raised).params
- microflow parameters by name.com.mendix.core.CoreException
public <R> java.util.concurrent.Future<R> executeAsync(IContext context, java.lang.String actionName, long asyncId, java.lang.Object... params) throws com.mendix.core.CoreException
ICore
executeAsync
in interface ICore
context
- the context for this action.actionName
- the name of a microflow or java action (format "ModuleName.ActionName").asyncId
- the asyncId this action has.params
- for microflows: add IMendixObject, IMendixIdentifier or primitive parameters.
for Java actions: add any object parameters.com.mendix.core.CoreException
public <R> java.util.concurrent.Future<R> executeAsync(IContext context, java.lang.String actionName, java.lang.Object... params) throws com.mendix.core.CoreException
ICore
executeAsync
in interface ICore
context
- the context for this action.actionName
- the name of a microflow or java action (format "ModuleName.ActionName").params
- for microflows: add IMendixObject, IMendixIdentifier or primitive parameters.
for Java actions: add any object parameters.com.mendix.core.CoreException
public <T extends ICoreAction<R>,R> R executeSync(T action) throws com.mendix.core.CoreException
ICore
executeSync
in interface ICore
T
- action type, subclass of CoreAction.R
- result type of action, can be any object.action
- the action to execute.com.mendix.core.CoreException
public <T extends com.mendix.core.actionmanagement.CoreAction<R>,R> void executeVoid(T action)
ICore
executeVoid
in interface ICore
T
- action type, subclass of CoreAction.R
- result type of the action, can be any object.action
- the action to execute.public int getActionQueueSize()
ICore
getActionQueueSize
in interface ICore
public int getActiveActionCount()
ICore
getActiveActionCount
in interface ICore
public ISession getActiveSession(java.lang.String userName)
getActiveSession
in interface ICore
userName
- the user name associated with the session to search for.public java.util.Collection<? extends ISession> getActiveSessions()
getActiveSessions
in interface ICore
public java.lang.Iterable<IMendixObject> getAllMendixObjects()
ICore
getAllMendixObjects
in interface ICore
public long getCompletedActionCount()
ICore
getCompletedActionCount
in interface ICore
public long getConcurrentUserCount(boolean anonymous)
ICore
getConcurrentUserCount
in interface ICore
anonymous
- whether anonymous users should be included in the count.public Configuration getConfiguration()
getConfiguration
in interface ICore
public int getCurrentPoolSize()
ICore
getCurrentPoolSize
in interface ICore
public java.lang.String getDatabaseChildColumnName(IMetaAssociation iMetaAssociation)
getDatabaseChildColumnName
in interface ICore
iMetaAssociation
- the meta association to get the database child column name forpublic java.lang.String getDatabaseColumnName(IMetaPrimitive iMetaPrimitive)
getDatabaseColumnName
in interface ICore
iMetaPrimitive
- the meta primitive to get the database column name forpublic java.lang.String getDatabaseParentColumnName(IMetaAssociation iMetaAssociation)
getDatabaseParentColumnName
in interface ICore
iMetaAssociation
- the meta association to get the database parent column name forpublic java.lang.String getDatabaseTableName(IMetaObject iMetaObject)
getDatabaseTableName
in interface ICore
iMetaObject
- the meta object to get the database table name forpublic java.lang.String getDatabaseTableName(IMetaAssociation iMetaAssociation)
getDatabaseTableName
in interface ICore
iMetaAssociation
- the meta association to get the database table name forpublic ILanguage getDefaultLanguage()
ICore
getDefaultLanguage
in interface ICore
public java.io.InputStream getFileDocumentContent(IContext context, IMendixObject fileDocument)
ICore
getFileDocumentContent
in interface ICore
context
- the context.fileDocument
- the file document from which the contents will be returned.public java.io.InputStream getImage(IContext context, IMendixObject imageDocument, boolean retrieveThumbnail)
ICore
public java.util.Map<java.lang.String,IDataType> getInputParameters(java.lang.String actionName)
ICore
getInputParameters
in interface ICore
actionName
- the name of a microflow or java action (format "ModuleName.ActionName").public java.lang.String getInternationalizedString(IContext context, java.lang.String key, java.lang.Object... args)
ICore
getInternationalizedString
in interface ICore
context
- the context.key
- the key referring to the translatable string.args
- the arguments which should be applied to translatable string template.public java.lang.String getInternationalizedString(java.lang.String languageCode, java.lang.String key, java.lang.Object... args)
ICore
getInternationalizedString
in interface ICore
languageCode
- the language code (ISO-639).key
- the key referring to the translatable string.args
- values which should replace possible templates in the translatable string ({1}, {2}, etc.).public int getLargestPoolSize()
ICore
getLargestPoolSize
in interface ICore
public java.util.Locale getLocale(IContext context)
ICore
public java.util.Locale getLocale(java.lang.String languageCode)
ICore
public int getMaximumNumberConcurrentUsers() throws com.mendix.core.CoreException
ICore
getMaximumNumberConcurrentUsers
in interface ICore
com.mendix.core.CoreException
public IMetaAssociation getMetaAssociation(java.lang.String association)
ICore
getMetaAssociation
in interface ICore
association
- the association name (e.g. "System.UserRoles").public java.lang.Iterable<IMetaAssociation> getMetaAssociations()
ICore
getMetaAssociations
in interface ICore
public IMetaObject getMetaObject(java.lang.String metaObjectName)
ICore
getMetaObject
in interface ICore
metaObjectName
- the meta object name.public java.lang.Iterable<IMetaObject> getMetaObjects()
ICore
getMetaObjects
in interface ICore
public IMetaPrimitive getMetaPrimitive(java.lang.String qualifiedAttributeName)
ICore
getMetaPrimitive
in interface ICore
qualifiedAttributeName
- the qualified attribute name.public java.util.Set<java.lang.String> getMicroflowNames()
ICore
getMicroflowNames
in interface ICore
public long getNamedUserCount()
getNamedUserCount
in interface ICore
public long getNumberConcurrentSessions()
ICore
getNumberConcurrentSessions
in interface ICore
public IProfiler getProfiler()
getProfiler
in interface ICore
public IDataType getReturnType(java.lang.String actionName)
ICore
getReturnType
in interface ICore
actionName
- the name of a microflow or java action (format "ModuleName.ActionName").public int getScheduledActionCount()
ICore
getScheduledActionCount
in interface ICore
public java.util.Date getStartupDateTime()
ICore
getStartupDateTime
in interface ICore
public java.util.List<java.lang.String> getSubtypesOf(java.lang.String objectType)
ICore
getSubtypesOf
in interface ICore
objectType
- the object type.public com.mendix.core.session.User getUser(IContext context, java.lang.String userName) throws com.mendix.core.CoreException
ICore
public java.lang.String getXASId()
ICore
public com.mendix.logging.ILogNode getLogger(java.lang.String name)
public ISession initializeGuestSession() throws com.mendix.core.CoreException
ICore
initializeGuestSession
in interface ICore
com.mendix.core.CoreException
public ISession initializeSession(IUser user, java.lang.String currentSessionId) throws com.mendix.core.CoreException
ICore
initializeSession
in interface ICore
user
- the user for which the session should be initialized.currentSessionId
- id of the current session, will be used to transfer data when current session is associated with a guest user.com.mendix.core.CoreException
public IMendixObject instantiate(IContext context, java.lang.String objectType)
ICore
instantiate
in interface ICore
context
- the context.objectType
- type of object to create (e.g. "System.User").public java.util.concurrent.Future<IMendixObject> instantiateAsync(IContext context, java.lang.String objectType)
ICore
instantiateAsync
in interface ICore
context
- the context.objectType
- type of object to create (e.g. "System.User").public boolean isInDevelopment()
isInDevelopment
in interface ICore
public boolean isSubClassOf(IMetaObject superObject, IMetaObject type)
ICore
isSubClassOf
in interface ICore
superObject
- the super object.type
- the name of the type to check.public boolean isSubClassOf(java.lang.String superClass, short typeHash)
ICore
isSubClassOf
in interface ICore
superClass
- the name of the super classtypeHash
- the hash of the name of the type to checkpublic boolean isSubClassOf(java.lang.String superClass, java.lang.String type)
ICore
isSubClassOf
in interface ICore
superClass
- the name of the super classtype
- the name of the type to checkpublic ISession login(java.util.Map<java.lang.String,? extends java.lang.Object> params) throws com.mendix.core.CoreException
ICore
public ISession login(java.lang.String userName, java.lang.String password) throws com.mendix.core.CoreException
ICore
public ISession login(java.lang.String userName, java.lang.String password, com.mendix.m2ee.api.IMxRuntimeRequest request) throws com.mendix.core.CoreException
public ISession login(java.lang.String userName, java.lang.String password, java.lang.String currentSessionId) throws com.mendix.core.CoreException
ICore
public void logout(ISession session)
ICore
public void registerLogSubscriber(com.mendix.logging.LogSubscriber subscriber)
registerLogSubscriber
in interface ICore
public void registerProfiler(IProfiler profiler) throws MendixException
registerProfiler
in interface ICore
MendixException
public boolean removeScheduledFuture(java.util.concurrent.RunnableScheduledFuture<?> scheduledFuture)
ICore
removeScheduledFuture
in interface ICore
scheduledFuture
- the RunnableScheduledFuture to remove.public <R> java.util.concurrent.ScheduledFuture<?> reschedule(java.util.concurrent.RunnableScheduledFuture<R> scheduledFuture, com.mendix.core.actionmanagement.CoreAction<R> action, long newDelay, java.util.concurrent.TimeUnit timeUnit)
ICore
reschedule
in interface ICore
scheduledFuture
- the scheduledFuture (old action) to remove from the queue.action
- the action to reschedule.newDelay
- the new delay.timeUnit
- time unit of the delay.public java.lang.Object resolveTokens(IContext context, java.lang.String text)
ICore
resolveTokens
in interface ICore
context
- the context.text
- the text to resolve.public java.util.List<IMendixObject> retrieveByIdWithSchema(IContext context, IMendixIdentifier id, IRetrievalSchema schema)
retrieveByIdWithSchema
in interface ICore
public java.util.List<IMendixObject> retrieveByPath(IContext context, IMendixObject mxObject, java.lang.String path)
ICore
retrieveByPath
in interface ICore
context
- the context.mxObject
- the start point of the path.path
- the path (association) to the objects to retrieve.public java.util.List<IMendixObject> retrieveByPath(IContext context, IMendixObject mxObject, java.lang.String path, java.lang.String entity, boolean isSelfAssociationChild)
ICore
retrieveByPath
in interface ICore
context
- the context.mxObject
- the start point of the path.path
- the path (association) to the objects to retrieve.entity
- the specialization entity to limit the results to.isSelfAssociationChild
- defines whether the mxObject instance is the child of the path of a self association.public java.util.List<IMendixObject> retrieveByPath(IContext context, IMendixObject mxObject, java.lang.String path, boolean isSelfAssociationChild)
ICore
retrieveByPath
in interface ICore
context
- the context.mxObject
- the start point of the path.path
- the path (association) to the objects to retrieve.isSelfAssociationChild
- defines whether the mxObject instance is the child of the path of a self association.public IMendixObject retrieveId(IContext context, IMendixIdentifier id) throws com.mendix.core.CoreException
ICore
retrieveId
in interface ICore
context
- the context.id
- id of the object to retrieve.com.mendix.core.CoreException
public java.util.concurrent.Future<IMendixObject> retrieveIdAsync(IContext context, IMendixIdentifier id)
ICore
retrieveIdAsync
in interface ICore
context
- the context.id
- id of the object to retrieve.public java.util.List<IMendixObject> retrieveIdList(IContext context, java.util.List<IMendixIdentifier> ids) throws com.mendix.core.CoreException
ICore
retrieveIdList
in interface ICore
context
- the context.ids
- ids of the objects to retrieve.com.mendix.core.CoreException
public java.util.List<IMendixObject> retrieveIdList(IContext context, java.util.List<IMendixIdentifier> ids, int amount, int offset, java.util.Map<java.lang.String,java.lang.String> sort) throws com.mendix.core.CoreException
ICore
retrieveIdList
in interface ICore
context
- the context.ids
- ids of the objects to retrieve.amount
- the maximum number of objects to retrieve from the database.offset
- offset of returned objects when retrieved from the database.sort
- sorting of returned objects when retrieved from the database (e.g. <"Name", "ASC">, <"Age", "DESC">).com.mendix.core.CoreException
public java.util.concurrent.Future<java.util.List<IMendixObject>> retrieveIdListAsync(IContext context, java.util.List<IMendixIdentifier> ids)
ICore
retrieveIdListAsync
in interface ICore
context
- the context.ids
- ids of the objects to retrieve.public IDataTable retrieveOQLDataTable(IContext context, java.lang.String oqlQuery, int amount, int offset) throws com.mendix.core.CoreException
ICore
retrieveOQLDataTable
in interface ICore
context
- the context.oqlQuery
- the OQL query to execute.amount
- maximum number of objects to retrieve.offset
- index of first object to retrieve.com.mendix.core.CoreException
public IDataTable retrieveOQLDataTable(IContext context, IGetRequest request) throws com.mendix.core.CoreException
ICore
retrieveOQLDataTable
in interface ICore
context
- the context.request
- the request object.com.mendix.core.CoreException
public IDataTable retrieveOQLDataTable(IContext context, java.lang.String oqlQuery) throws com.mendix.core.CoreException
ICore
retrieveOQLDataTable
in interface ICore
context
- the context.oqlQuery
- the OQL query to execute.com.mendix.core.CoreException
public java.util.concurrent.Future<IDataTable> retrieveOQLDataTableAsync(IContext context, java.lang.String oqlQuery)
ICore
retrieveOQLDataTableAsync
in interface ICore
context
- the context.oqlQuery
- the OQL query to execute.public java.util.concurrent.Future<IDataTable> retrieveOQLDataTableAsync(IContext context, IGetRequest request)
ICore
retrieveOQLDataTableAsync
in interface ICore
context
- the context.request
- the request object.public java.util.concurrent.Future<IDataTable> retrieveOQLDataTableAsync(IContext context, java.lang.String oqlQuery, int amount, int offset)
ICore
retrieveOQLDataTableAsync
in interface ICore
context
- the context.oqlQuery
- the OQL query to execute.amount
- maximum number of objects to retrieve.offset
- index of first object to retrieve.public java.util.List<IMendixObject> retrieveXPathQuery(IContext context, java.lang.String xpathQuery, int amount, int offset, java.util.Map<java.lang.String,java.lang.String> sort) throws com.mendix.core.CoreException
ICore
retrieveXPathQuery
in interface ICore
context
- the context.xpathQuery
- the XPath query to execute.amount
- maximum number of objects to retrieve.offset
- index of first object to retrieve.sort
- sorting of returned objects when retrieved from the database (e.g. <"Name", "ASC">, <"Age", "DESC">).com.mendix.core.CoreException
public java.lang.Long retrieveXPathQueryAggregate(IContext context, java.lang.String xpathQuery) throws com.mendix.core.CoreException
ICore
retrieveXPathQueryAggregate
in interface ICore
context
- the context.xpathQuery
- the aggregate xpath query (e.g. "COUNT(//System.User)").com.mendix.core.CoreException
public java.lang.Double retrieveXPathQueryAggregateDouble(IContext context, java.lang.String xpathQuery) throws com.mendix.core.CoreException
ICore
retrieveXPathQueryAggregateDouble
in interface ICore
context
- the context.xpathQuery
- the aggregate xpath query (e.g. "COUNT(//System.User)").com.mendix.core.CoreException
public java.math.BigDecimal retrieveXPathQueryAggregateDecimal(IContext context, java.lang.String xpathQuery)
retrieveXPathQueryAggregateDecimal
in interface ICore
public IDataTable retrieveXPathQueryRaw(IContext context, java.lang.String xpathQuery, int amount, int offset, java.util.Map<java.lang.String,java.lang.String> sort, int depth) throws com.mendix.core.CoreException
ICore
retrieveXPathQueryRaw
in interface ICore
context
- the context.xpathQuery
- the XPath query to execute.amount
- maximum number of objects to retrieve.offset
- index of first object to retrieve.sort
- sorting of returned objects when retrieved from the database (e.g. <"Name", "ASC">, <"Age", "DESC">).depth
- indicates the level until which each reference (IMendixIdentifier) is also retrieved as an IMendixObject.com.mendix.core.CoreException
public java.util.List<IMendixObject> retrieveXPathQueryEscaped(IContext context, java.lang.String xpathFormat, java.lang.String... params) throws com.mendix.core.CoreException
ICore
retrieveXPathQueryEscaped
in interface ICore
context
- the context.xpathFormat
- the XPath query to execute with %s for each param to escape.params
- a collection of parameters for each %s in xpathFormat.com.mendix.core.CoreException
public java.util.List<IMendixObject> retrieveXPathQuery(IContext context, java.lang.String xpathQuery) throws com.mendix.core.CoreException
ICore
retrieveXPathQuery
in interface ICore
context
- the context.xpathQuery
- the XPath query to execute.com.mendix.core.CoreException
public java.util.List<IMendixObject> retrieveXPathQuery(IContext context, java.lang.String xpathQuery, int amount, int offset, java.util.Map<java.lang.String,java.lang.String> sort, int depth) throws com.mendix.core.CoreException
ICore
retrieveXPathQuery
in interface ICore
context
- the context.xpathQuery
- the XPath query to execute.amount
- maximum number of objects to retrieve.offset
- index of first object to retrieve.sort
- sorting of returned objects when retrieved from the database (e.g. <"Name", "ASC">, <"Age", "DESC">).depth
- indicates the level until which each reference (IMendixIdentifier) is also retrieved as an IMendixObject.com.mendix.core.CoreException
public java.util.List<IMendixObject> retrieveXPathQuery(IContext context, java.lang.String xpathQuery, int amount, int offset, java.util.Map<java.lang.String,java.lang.String> sort, int depth, int timeout) throws com.mendix.core.CoreException
retrieveXPathQuery
in interface ICore
com.mendix.core.CoreException
public java.lang.Long retrieveXPathQueryAggregateSchema(IContext context, java.lang.String xpathQuery, IRetrievalSchema retrievalSchema) throws com.mendix.core.CoreException
ICore
retrieveXPathQueryAggregateSchema
in interface ICore
context
- the context.xpathQuery
- the aggregate xpath query (e.g. "COUNT(//System.User)").retrievalSchema
- the schema.com.mendix.core.CoreException
public java.lang.Long retrieveXPathQueryAggregateSchema(IContext context, java.lang.String xpathQuery, IRetrievalSchema retrievalSchema, boolean disableSecurity) throws com.mendix.core.CoreException
ICore
retrieveXPathQueryAggregateSchema
in interface ICore
context
- the context.xpathQuery
- the aggregate xpath query (e.g. "COUNT(//System.User)").retrievalSchema
- the schema.disableSecurity
- whether security should be applied for this retrieval.com.mendix.core.CoreException
public java.util.concurrent.Future<java.lang.Double> retrieveXPathQueryAggregateAsyncDouble(IContext context, java.lang.String xpathQuery)
ICore
retrieveXPathQueryAggregateAsyncDouble
in interface ICore
public java.util.concurrent.Future<java.lang.Long> retrieveXPathQueryAggregateAsync(IContext context, java.lang.String xpathQuery)
ICore
retrieveXPathQueryAggregateAsync
in interface ICore
context
- the context.xpathQuery
- the aggregate xpath query (e.g. "COUNT(//System.User)").public java.util.concurrent.Future<java.util.List<IMendixObject>> retrieveXPathQueryAsync(IContext context, java.lang.String xpathQuery, int amount, int offset, java.util.Map<java.lang.String,java.lang.String> sort, int depth)
ICore
retrieveXPathQueryAsync
in interface ICore
context
- the context.xpathQuery
- the XPath query to execute.amount
- maximum number of objects to retrieve.offset
- index of first object to retrieve.sort
- sorting of returned objects when retrieved from the database (e.g. <"Name", "ASC">, <"Age", "DESC">).depth
- indicates the level until which each reference (IMendixIdentifier) is also retrieved as an IMendixObject.public java.util.List<IMendixObject> retrieveXPathSchema(IContext context, java.lang.String xpathQuery, IRetrievalSchema retrievalSchema, boolean shouldRetrieveCount, boolean disableSecurity) throws com.mendix.core.CoreException
ICore
retrieveXPathSchema
in interface ICore
context
- the context.xpathQuery
- the XPath query to execute.retrievalSchema
- the schema to apply.shouldRetrieveCount
- indicates whether the total number object corresponding to the given schema should be included in the result.disableSecurity
- indicates whether security should be applied when this query is being executed.com.mendix.core.CoreException
public java.util.List<IMendixObject> retrieveXPathQueryEscaped(IContext context, java.lang.String xpathFormat, int amount, int offset, java.util.Map<java.lang.String,java.lang.String> sort, int depth, java.lang.String... params) throws com.mendix.core.CoreException
ICore
retrieveXPathQueryEscaped
in interface ICore
context
- the context.xpathFormat
- the XPath query to execute with %s for each param to escape.amount
- maximum number of objects to retrieve.offset
- index of first object to retrieve.sort
- sorting of returned objects when retrieved from the database (e.g. <"Name", "ASC">, <"Age", "DESC">).depth
- depth of the retrieval (0 is all attributes and association guids, 1 is also all attributes of 1-deep associations and 2-deep associaton guids etc.).params
- xpath arguments.com.mendix.core.CoreException
public java.util.List<IMendixObject> retrieveXPathSchemaEscaped(IContext context, java.lang.String xpathFormat, IRetrievalSchema retrievalSchema, boolean shouldRetrieveCount, boolean disableSecurity, java.lang.String... params) throws com.mendix.core.CoreException
ICore
retrieveXPathSchemaEscaped
in interface ICore
context
- the context.xpathFormat
- the XPath query to execute with %s for each param to escape.retrievalSchema
- the schema to apply.shouldRetrieveCount
- indicates whether the total number object corresponding to the given schema should be included in the result.disableSecurity
- indicates whether security should be disabled when executing this query.params
- a collection of parameters for each %s in xpathFormat.com.mendix.core.CoreException
public IDataTable retrieveXPathSchemaRaw(IContext context, java.lang.String xpathQuery, boolean shouldRetrieveCount, IRetrievalSchema retrievalSchema) throws com.mendix.core.CoreException
ICore
retrieveXPathSchemaRaw
in interface ICore
context
- the context.xpathQuery
- the XPath query to execute.shouldRetrieveCount
- indicates whether the total number object corresponding to the given schema should be included in the result.retrievalSchema
- the schema to apply.com.mendix.core.CoreException
public IMendixObject rollback(IContext context, IMendixObject object) throws com.mendix.core.CoreException
ICore
public java.util.concurrent.Future<IMendixObject> rollbackAsync(IContext context, IMendixObject object)
ICore
rollbackAsync
in interface ICore
context
- the context.object
- the object to rollback.public java.util.concurrent.RunnableScheduledFuture<?> schedule(java.lang.String actionName, java.util.Date date) throws com.mendix.core.CoreException
ICore
schedule
in interface ICore
actionName
- the name of a microflow or java action (format "ModuleName.ActionName")date
- the date and time on which the action should be executedcom.mendix.core.CoreException
public <R> java.util.concurrent.RunnableScheduledFuture<?> schedule(com.mendix.core.actionmanagement.CoreAction<R> action, long delay, java.util.concurrent.TimeUnit timeUnit)
ICore
public <R> void scheduleAtFixedRate(com.mendix.core.actionmanagement.CoreAction<R> action, java.util.Date firstRun, long period, java.util.concurrent.TimeUnit timeUnit)
ICore
scheduleAtFixedRate
in interface ICore
action
- the action to executefirstRun
- the Date/time on which the action will be executed the first timeperiod
- the period between each start of the execution of the actiontimeUnit
- the timeUnit in which the period is specifiedpublic <R> void scheduleAtFixedRate(com.mendix.core.actionmanagement.CoreAction<R> action, long initialDelay, long period, java.util.concurrent.TimeUnit timeUnit)
ICore
scheduleAtFixedRate
in interface ICore
action
- the action to execute.initialDelay
- the delay after which the action will be executed the first time.period
- the period between each start of the execution of the action.timeUnit
- the timeUnit in which the initialDelay and the period is specified.public void scheduleAtFixedRate(java.lang.String actionName, java.util.Date firstRun, long period, java.util.concurrent.TimeUnit timeUnit, java.lang.String name, java.lang.String description)
ICore
scheduleAtFixedRate
in interface ICore
actionName
- the name of a microflow or java action (format "ModuleName.ActionName").firstRun
- the date on which the action will be executed the first time.period
- the period between each start of the execution of the action.timeUnit
- the timeUnit in which the initialDelay and the period is specified.name
- the name of the scheduled event.description
- the description of the scheduled event.public <R> void scheduleWithFixedDelay(com.mendix.core.actionmanagement.CoreAction<R> action, long initialDelay, long delay, java.util.concurrent.TimeUnit timeUnit)
ICore
scheduleWithFixedDelay
in interface ICore
action
- the action to execute.initialDelay
- the delay after which the action will be executed the first time.delay
- the delay between the end of the execution of the action and the start of the next time the action will be executed.timeUnit
- the timeUnit in which the initialDelay and the delay is specified.public void storeFileDocumentContent(IContext context, IMendixObject fileDocument, java.io.InputStream inputStream)
storeFileDocumentContent
in interface ICore
context
- the context.fileDocument
- the file document to which the file to store is linked to.inputStream
- the content of the filepublic void storeFileDocumentContent(IContext context, IMendixObject fileDocument, java.lang.String fileName, java.io.InputStream inputStream)
ICore
storeFileDocumentContent
in interface ICore
context
- the context.fileDocument
- the file document to which the file to store is linked to.fileName
- the original name of the file (will be stored in the Name attribute)inputStream
- the content of the filepublic void storeImageDocumentContent(IContext context, IMendixObject imageDocument, java.io.InputStream inputStream, int thumbnailWidth, int thumbnailHeight)
ICore
storeImageDocumentContent
in interface ICore
context
- the context.imageDocument
- the image document to which the image to store is linked to.inputStream
- the content of the filethumbnailWidth
- the width of the thumbnail to create for this image.thumbnailHeight
- the width of the thumbnail to create for this image.public void unregisterProfiler()
unregisterProfiler
in interface ICore