Uses of Interface
com.onenetwork.platform.common.usercontext.PlatformUserContext
Package | Description |
---|---|
com.onenetwork.platform.common | |
com.onenetwork.platform.common.menu |
Services and interfaces for manipulating menus in the user interface.
|
com.onenetwork.platform.common.screen |
Service and interface for filtering global screen elements from UI.
|
com.onenetwork.platform.common.task |
Supporting classes related to the "Task" and "TaskReqmt" models.
|
com.onenetwork.platform.common.tax |
Contains services for interacting with a "tax provider" which computes appropriate taxes based on government regulations.
|
com.onenetwork.platform.common.uom |
Service and interface for converting between different units of measure.
|
com.onenetwork.platform.common.user | |
com.onenetwork.platform.common.usercontext |
Objects to represent and manipulate user credentials and preferences.
|
com.onenetwork.platform.data.model |
APIs for reading and writing Models developed with the SDK.
|
com.onenetwork.platform.data.model.perm |
Interfaces and helper classes for implementing customized permission policies on Models.
|
com.onenetwork.platform.data.model.policy |
Services and supporting classes for the persistence and retrieval of module "policies"
which drive application behavior.
|
com.onenetwork.platform.data.sql |
Services for ad-hoc querying and other lower-level database access.
|
com.onenetwork.platform.data.template |
Interface for loading data using a template file and variable bindings.
|
com.onenetwork.platform.data.tlv |
"tlv" is short for TimeLine View - this package contains interfaces into the data fetched for a Timeline view in the user interface.
|
com.onenetwork.platform.data.validation |
Provides services which allow end-users to define "validation rules" with Excel-like function syntax.
|
com.onenetwork.platform.features | |
com.onenetwork.platform.integ |
Common interfaces and utilities for used in integration.
|
com.onenetwork.platform.integ.csv |
Supports the manipulation of CSV data - typically used in the context of inbound integration.
|
com.onenetwork.platform.integ.edi |
Used for parsing, processing and generating EDI messages in X12 and/or EDIFACT format.
|
com.onenetwork.platform.integ.fixlen |
Service for parsing "fixed-length format" files, i.e.
|
com.onenetwork.platform.integ.json |
Service for converting between JSON and Model objects.
|
com.onenetwork.platform.integ.module |
Provides classes for interacting with other Modules in a loosely-typed way (without adding explicit compile-time dependencies).
|
com.onenetwork.platform.integ.msg |
APIs for using Platform's message queuing system.
|
com.onenetwork.platform.integ.notify |
Services for sending email notifications.
|
com.onenetwork.platform.integ.oagis | |
com.onenetwork.platform.integ.oauth |
Service for integrating to external services through OAuth.
|
com.onenetwork.platform.integ.rest |
Infrastructure for implementing REST-ful web services using JAXRS.
|
com.onenetwork.platform.integ.rest.model |
Helper classes related to the Model Create/Detail framework, providing support for manipulating model view/action invocation results
prior to returning to the client layer.
|
com.onenetwork.platform.integ.rest.problem |
Helper classes related to Problems, providing support for manipulating problem-related queries
prior to returning to the client layer.
|
com.onenetwork.platform.integ.rest.report |
Helper classes related to the Report framework, providing support for manipulating report invocation results
prior to returning to the client layer.
|
com.onenetwork.platform.integ.rest.template |
Helper classes related to the Model Templates feature, providing support for manipulating template invocation results
prior to returning to the client layer.
|
com.onenetwork.platform.integ.sap |
Used for parsing, processing and generating SAP "IDoc" files.
|
com.onenetwork.platform.integ.soap |
Infrastructure for implementing SOAP-based web services using JAXWS.
|
com.onenetwork.platform.neonotification | |
com.onenetwork.platform.report.summary | |
com.onenetwork.platform.restapi | |
com.onenetwork.platform.tools.i18n |
Provides access to internationalized messages.
|
com.onenetwork.platform.tools.log |
Extensions of log4j used for logging in Platform.
|
com.onenetwork.platform.workflow |
Services to facilitate the implementation of model workflows.
|
-
Uses of PlatformUserContext in com.onenetwork.platform.common
Methods in com.onenetwork.platform.common with parameters of type PlatformUserContext Modifier and Type Method Description java.lang.String
EnterpriseObject. getUpdatedObjectKey(PlatformUserContext userContext)
Returns ObjectKey using updated values of EDFs which are part of natural key. -
Uses of PlatformUserContext in com.onenetwork.platform.common.menu
Methods in com.onenetwork.platform.common.menu with parameters of type PlatformUserContext Modifier and Type Method Description abstract void
MenuResourceListener. onMenu(MenuDefinition menuDefinition, PlatformUserContext userContext)
Modify MenuDefinition by using PlatformUserContext.abstract void
PortletMenuResourceListener. onPortletMenu(org.json.JSONArray portletCategories, PlatformUserContext userContext)
Called before return available portlets to the end user for Add. -
Uses of PlatformUserContext in com.onenetwork.platform.common.screen
Methods in com.onenetwork.platform.common.screen with parameters of type PlatformUserContext Modifier and Type Method Description java.util.Map<java.lang.String,GlobalScreenElement>
GlobalScreenElementService. getPermittedGlobalScreenElements(PlatformUserContext ctx)
Returns a Map containing all GlobalScreenElements which are available to the given user context, subject to the user's RoleType along with any applicable Feature subscriptions for his Enterprise. -
Uses of PlatformUserContext in com.onenetwork.platform.common.task
Methods in com.onenetwork.platform.common.task with parameters of type PlatformUserContext Modifier and Type Method Description java.lang.String
AbstractTaskType. getTaskDetailFunction(Task task, PlatformUserContext context)
Provides JS function name which is to be invoked when the user drills into the detail for a given task.java.lang.String
AbstractTaskType. getTaskDetailModuleFunction(Task task, PlatformUserContext context)
Provides the module function name that the corresponding module should open when a child task is clicked.java.lang.String
AbstractTaskType. getTaskDetailModulePath(Task task, PlatformUserContext context)
Provides the React Task Summary Widget module path that loads the module dynamically.java.lang.String
AbstractTaskType. getTaskDetailPanel(Task task, PlatformUserContext context)
Provides the Ext.Panel subclass name that handles the display of a task detail.java.lang.String
AbstractTaskType. getTaskDetailWebAction(Task task, PlatformUserContext context)
Returns the WebAction to be used as the default behavior for opening a child task.void
AbstractTaskType. onComplete(Task task, PlatformUserContext context)
Provides an opportunity to take action on task completion.void
AbstractTaskType. onCreate(Task task, PlatformUserContext context)
Provides an opportunity to take action on task creation, for example create child tasks.void
AbstractTaskType. onFirstDetailVisit(Task task, PlatformUserContext context)
Provides an opportunity to take action when the user first visits the detail page of a task.void
AbstractTaskType. onStart(Task task, PlatformUserContext context)
Provides an opportunity to take action on task start.void
AbstractTaskType. postComplete(Task task, PlatformUserContext context)
Provides an opportunity to take action after task completion.void
AbstractTaskType. postCreate(Task task, PlatformUserContext context)
Provides an opportunity to take action after task creation.void
AbstractTaskType. postStart(Task task, PlatformUserContext context)
Provides an opportunity to take action after task start.boolean
AbstractTaskType. shouldStartOnVisitDetail(Task task, PlatformUserContext context)
Returns true iff task "starts" as soon as the user visits the detail page. -
Uses of PlatformUserContext in com.onenetwork.platform.common.tax
Methods in com.onenetwork.platform.common.tax with parameters of type PlatformUserContext Modifier and Type Method Description java.util.Optional<java.lang.String>
TaxService. getTaxCode(java.lang.String provider, long owningEntId, long itemId, PlatformUserContext context)
Looks up the TaxCode associated with the given provider and item owned by the given enterprise. -
Uses of PlatformUserContext in com.onenetwork.platform.common.uom
Methods in com.onenetwork.platform.common.uom that return PlatformUserContext Modifier and Type Method Description PlatformUserContext
HierEnumConversionData. getPlatformUserContext()
Methods in com.onenetwork.platform.common.uom with parameters of type PlatformUserContext Modifier and Type Method Description double
UOMService. convert(java.lang.String enumName, double value, java.lang.String valueUOM, java.lang.String targetUOM, PlatformUserContext context, Scope... scopes)
For an enumeration type, converts the given value from a source unit of measure to a target unit of measure.double
UOMService. convertHierEnum(HierEnumConversionConfig hierEnumConversionConfig, double value, java.lang.String valueUOM, java.lang.String targetUOM, PlatformUserContext context, Scope... scopes)
For an enumeration type, converts the given value from a source unit of measure to a target unit of measure.double
UOMService. convertHierEnum(HierEnumConversionData conversionData, double value, java.lang.String valueUOM, java.lang.String targetUOM, PlatformUserContext context, java.util.List<java.util.List<Scope>> scopes)
For an enumeration type, converts the given value from a source unit of measure to a target unit of measure.HierEnumConversionData
UOMService. fetchHierEnumConversionData(HierEnumConversionConfig hierEnumConversionConfig, PlatformUserContext context, java.util.List<java.util.List<Scope>> scopes)
Return an in-memory cache of conversion data for the provided scopes.Constructors in com.onenetwork.platform.common.uom with parameters of type PlatformUserContext Constructor Description HierEnumConversionData(HierEnumConversionConfig hierEnumConfig, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Double>>> conversionData, PlatformUserContext context)
-
Uses of PlatformUserContext in com.onenetwork.platform.common.user
Methods in com.onenetwork.platform.common.user with parameters of type PlatformUserContext Modifier and Type Method Description UserTermsAndConditions
UserTermsAndConditionsSelector. selectTerms(PlatformUserContext context, org.json.JSONObject config)
Return an appropriateUserTermsAndConditions
based onPlatformUserContext
and a config (JSONObject
)
If no suitableUserTermsAndConditions
are found, should returnnull
-
Uses of PlatformUserContext in com.onenetwork.platform.common.usercontext
Methods in com.onenetwork.platform.common.usercontext that return PlatformUserContext Modifier and Type Method Description PlatformUserContext
UserContextService. createContext(java.lang.Long userId, java.lang.Long roleId)
Given a user id and role id, initialize and returns a suitable PlatformUserContext.PlatformUserContext
UserContextService. createContext(java.lang.String userName, java.lang.String roleName, java.lang.String roleEnt, java.lang.String roleOrg, java.lang.String roleSite)
Given natural key information for a user and role, returns a suitable PlatformUserContext.PlatformUserContext
UserContextService. createDefaultEnterpriseAdminContext(java.lang.Long valueChainId, java.lang.String enterpriseName)
Returns a context with Administrative privileges for the Enterprise with the given id and enterprise name.PlatformUserContext
UserContextService. createDefaultInstanceAdminContext()
Returns a context with Administrative privileges for the entire Platform instance (permissions cross all Value Chains).PlatformUserContext
UserContextService. createDefaultValueChainAdminContext(java.lang.Long valueChainId)
Returns a context with Administrative privileges for the ValueChain with the given id.PlatformUserContext
UserContextService. fromJSONObject(org.json.JSONObject platformUserContextParams)
Creates PlatformUserContext object from JSON object.PlatformUserContext
PlatformUserProfile. getPlatformUserContext()
Returns the user's contextMethods in com.onenetwork.platform.common.usercontext with parameters of type PlatformUserContext Modifier and Type Method Description PlatformUserProfile
UserContextService. getPlatformUserProfile(PlatformUserContext userContext)
Creates a new PlatformUserProfile using the given user and user's preferred LocalePlatformUserProfile
UserContextService. getPlatformUserProfile(PlatformUserContext userContext, java.util.Locale locale)
Deprecated.use#getUserLocale(PlatformUserContext)
-
Uses of PlatformUserContext in com.onenetwork.platform.data.model
Methods in com.onenetwork.platform.data.model that return PlatformUserContext Modifier and Type Method Description PlatformUserContext
PermissionContext. getPlatformUserContext()
Methods in com.onenetwork.platform.data.model with parameters of type PlatformUserContext Modifier and Type Method Description <T extends Model>
longModelDataService. count(java.lang.Class<T> clazz, PlatformUserContext context, SqlParams params, ModelFilter... filters)
This method is similar toModelDataService.read(Class, PlatformUserContext, SqlParams, ModelQueryComponent...)
with one key difference - it returns total count of models.java.util.Map<Model,java.util.Set<java.lang.String>>
ModelDataService. getAvailableActions(java.util.Collection<? extends Model> models, PlatformUserContext context)
Given a collection of fully-populated Models (i.e.<T extends Rider>
TModel. getRider(java.lang.Class<T> cls, PlatformUserContext pltUsrContext)
Deprecated.preferModel.getRider(Class)
<T extends Model>
java.util.List<Field>ModelDataService. getViewFilterFields(ViewRequest<T> viewRequest, PlatformUserContext context)
Returns a collection ofField
objects describing the required and optional filter fields available for the given view.void
SyntheticModelListener. postAction(java.lang.String actionName, Model parentModel, Model childModel, PlatformUserContext userContext)
This method is called after an action has been executed on thechildModel
by the user on a User-defined Page.void
SyntheticModelListener. preAction(java.lang.String actionName, Model parentModel, Model childModel, PlatformUserContext userContext)
This method is called before an action is executed on thechildModel
, but after the action on theparentModel
has been executed by the user on a User-defined Page.<T extends Model>
java.util.List<T>ModelDataService. read(java.lang.Class<T> topLevelClass, PlatformUserContext context, SqlParams params, ModelQueryComponent... queryComponents)
Reads Model objects from the database using user-provided filter, sort and retrieval criteria.<T extends Model>
java.util.List<ModelAudit<T>>ModelDataService. readAudit(java.lang.Class<T> modelClass, PlatformUserContext ctx, SqlParams params, ModelQueryComponent... queryComponents)
Reads audit records for Models from the database using user-provided filter and sort criteria.<T extends Model>
TModelDataService. readById(java.lang.Class<T> topLevelClass, java.lang.Long sysId, PlatformUserContext platformContext, ModelRetrieval... retrievals)
Convenience method for fetching a single Model by its surrogate id.<T extends Model>
java.util.Map<java.lang.Long,T>ModelDataService. readByIds(java.lang.Class<T> topLevelClass, java.util.Collection<java.lang.Long> sysIds, PlatformUserContext platformContext, ModelRetrieval... retrievals)
Convenience method for fetching Models by surrogate id.<T extends Model>
java.util.Map<java.lang.Long,T>ModelDataService. readByIds(java.lang.Class<T> topLevelClass, java.util.Collection<java.lang.Long> sysIds, java.util.Map<java.lang.Class<? extends Model>,java.util.Collection<java.lang.Long>> includeChildSysIdsByModelLevelType, PlatformUserContext platformUserContext)
Convenience method for fetching Models by ids and selecting which child model instances to fetch.<T extends Model>
java.util.List<T>ModelDataService. readByView(ViewRequest<T> viewReadRequest, PlatformUserContext context)
Allows a client to programmatically invoke a view which was defined in studio.boolean
ActionListAsyncThresholdComputation. requiresAsync(com.onenetwork.platform.data.model.impl.ModelLevelType modelLevelType, java.util.List<java.lang.Long> ids, PlatformUserContext ctx)
Provides additional flexibility for developers to decide whether need a asynchronous execution or not.void
AttachmentService. saveAttachments(java.util.List<ModelAttachment> attachments, java.util.List<java.io.InputStream> files, PlatformUserContext creator)
Stores the given InputStreams on disk for the given ModelAttachments, populating their filePaths.<T extends Model>
java.util.Set<java.lang.Long>ModelDataService. validateReadPermission(java.lang.Class<T> topLevelClass, java.util.Set<java.lang.Long> sysIds, PlatformUserContext platformContext)
Given a Set of top-level model sys ids, executes a read query to check if the given context has access to those records.<M extends Model>
voidModelDataService. validateWritePermission(ModelWriteRequest<M> modelWriteRequest, PlatformUserContext platformContext)
Validates write permission for the given models without actually writing models in the DB.<M extends Model>
ModelList<M>ModelDataService. write(ModelList<M> modelList, PlatformUserContext platformContext)
Create, update or delete models using Actions defined in the MPT or SPT.<M extends Model>
ModelList<M>ModelDataService. write(ModelWriteRequest<M> modelWriteRequest, PlatformUserContext platformContext)
Create, update or delete models using Actions defined in the MPT or SPT.Constructors in com.onenetwork.platform.data.model with parameters of type PlatformUserContext Constructor Description PermissionContext(PlatformUserContext platformUserContext)
-
Uses of PlatformUserContext in com.onenetwork.platform.data.model.perm
Methods in com.onenetwork.platform.data.model.perm that return PlatformUserContext Modifier and Type Method Description PlatformUserContext
PermissionRequest. getPlatformUserContext()
Constructors in com.onenetwork.platform.data.model.perm with parameters of type PlatformUserContext Constructor Description ActionPermissionRequest(java.lang.String customModelName, java.lang.String actionName, java.util.List<? extends Model> models, PlatformUserContext platformUserContext)
PermissionRequest(java.lang.String customModelName, PlatformUserContext platformUserContext)
ReportPermissionRequest(java.lang.String customModelName, PlatformUserContext platformUserContext, java.lang.String... params)
ViewPermissionRequest(java.lang.String customModelName, java.lang.String viewName, PlatformUserContext platformUserContext)
-
Uses of PlatformUserContext in com.onenetwork.platform.data.model.policy
Methods in com.onenetwork.platform.data.model.policy that return PlatformUserContext Modifier and Type Method Description PlatformUserContext
PolicyHierarchyContext. getUserContext()
Methods in com.onenetwork.platform.data.model.policy with parameters of type PlatformUserContext Modifier and Type Method Description <T> Pair<T,ModelId>
PolicyService. getFullyQualifiedPolicyValue(java.lang.String fullyQualifiedPolicyName, com.onenetwork.platform.data.model.impl.ModelLevelType modelLevelType, java.lang.Long sysId, T defaultValue, PlatformUserContext context)
LikePolicyService.getPolicyValue(String, ModelLevelType, Long, Object, PlatformUserContext)
, but also returns model information for which policy is defined.<T> T
PolicyService. getPolicyValue(java.lang.String fullyQualifiedPolicyName, com.onenetwork.platform.data.model.impl.ModelLevelType modelLevelType, java.lang.Long sysId, T defaultValue, PlatformUserContext context)
Return the policy defined at the given level, if defined.<T> java.util.Map<java.lang.Long,T>
PolicyService. getPolicyValues(java.lang.String fullyQualifiedPolicyName, com.onenetwork.platform.data.model.impl.ModelLevelType modelLevelType, java.util.Collection<java.lang.Long> sysIds, T defaultValue, PlatformUserContext context)
LikePolicyService.getPolicyValue(String, ModelLevelType, Long, Object, PlatformUserContext)
, but for multiple models at once instead of just one.<T> java.util.Map<java.lang.Long,T>
PolicyService. getValidatedPolicyValues(java.lang.String fullyQualifiedPolicyName, com.onenetwork.platform.data.model.impl.ModelLevelType modelLevelType, java.util.Collection<java.lang.Long> sysIds, T defaultValue, PlatformUserContext context)
Like#getPolicyValues(String, ModelLevelType, Long, Object, PlatformUserContext)
, but additionally validates all model link values in case they are "orphaned" (i.e.Constructors in com.onenetwork.platform.data.model.policy with parameters of type PlatformUserContext Constructor Description PolicyHierarchyContext(PlatformUserContext userContext)
-
Uses of PlatformUserContext in com.onenetwork.platform.data.sql
Methods in com.onenetwork.platform.data.sql with parameters of type PlatformUserContext Modifier and Type Method Description SqlResult
SqlService. executeQuery(java.lang.String sql, SqlParams sqlParams, PlatformUserContext context)
Given an SQL query and params to be bound, executes the SQL and returns the result.SqlResult
SqlService. executeQuery(java.lang.String groupName, java.lang.String sqlDefName, SqlParams sqlParams, PlatformUserContext context)
Lookup and executes the SQL and returns the result.void
SqlService. executeReport(ReportRequest req, TableListener listener, PlatformUserContext context)
Executes the given report, using a user-provided listener to process the result in a streaming fashion instead of returning in-memory.Table
SqlService. executeReport(ReportRequest req, PlatformUserContext context)
Executes the given report, returning an in-memory table representation of the result.SqlResult
SqlService. executeSqlDef(SqlDefQueryRequest request, PlatformUserContext context)
Given aSqlDefQueryRequest
, looks up the associated sql def and executes its query, adhering to any parameters given.java.util.List<Field>
SqlService. getReportFilterFields(java.lang.String reportName, PlatformUserContext context)
Returns a collection ofField
objects describing the required and optional filter fields available for the given reportjava.util.List<Field>
SqlService. getReportRetrievalFields(java.lang.String reportName, PlatformUserContext context)
Returns a collection ofField
objects describing the retrieval fields defined by the report (both visible and hidden)java.lang.String
SqlService. lookupSqlDef(java.lang.String groupName, java.lang.String sqlDefName, PlatformUserContext context)
Looks up the SQL registered for a SqlDef in a Module or EPT. -
Uses of PlatformUserContext in com.onenetwork.platform.data.template
Methods in com.onenetwork.platform.data.template with parameters of type PlatformUserContext Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
DataTemplateService. loadDataTemplate(java.io.File dataTemplateFile, java.util.Map<java.lang.String,java.lang.String> bindings, PlatformUserContext context)
Loads data using a DataTemplate file.java.util.Map<java.lang.String,java.lang.Object>
DataTemplateService. loadEptDataTemplate(java.lang.String fileName, java.util.Map<java.lang.String,java.lang.String> bindings, PlatformUserContext context)
Loads data using a DataTemplate file defined in EPT under "/data" folder. -
Uses of PlatformUserContext in com.onenetwork.platform.data.tlv
Fields in com.onenetwork.platform.data.tlv declared as PlatformUserContext Modifier and Type Field Description protected PlatformUserContext
BaseTimelineViewListener. platformContext
protected PlatformUserContext
BaseTLVEditHandler. platformUserContext
Methods in com.onenetwork.platform.data.tlv that return PlatformUserContext Modifier and Type Method Description PlatformUserContext
BaseTLVEditHandler. getPlatformUserContext()
Returns the user's contextMethods in com.onenetwork.platform.data.tlv with parameters of type PlatformUserContext Modifier and Type Method Description void
BaseTimelineViewListener. setPlatformUserContext(PlatformUserContext platformContext)
This will be called automatically by the framework to provide the context of the user invoking the Timelinevoid
BaseTLVEditHandler. setPlatformUserContext(PlatformUserContext platformUserContext)
Sets the user's contextjava.util.Map<java.lang.Integer,java.lang.Float>
TimelineService. transform(TimelineDefinition timelineDef, java.util.List<BucketizedValue> sourceBucketizedVals, java.util.Map<Bucketization,java.lang.String> transformFuncs, PlatformUserContext platformUserContext)
Generates bucket data for aggregated data points. -
Uses of PlatformUserContext in com.onenetwork.platform.data.validation
Methods in com.onenetwork.platform.data.validation with parameters of type PlatformUserContext Modifier and Type Method Description void
ValidationWBProblemPopulator. addParams(org.json.JSONObject params, Model model, PlatformUserContext ctx)
Adds new params using model info to existing params of the WBProblem created against the model for any validation rules failure.void
ValidationWBProblemPopulator. addSummarySection(org.json.JSONArray summaries, Model model, PlatformUserContext ctx)
Adds new summaries using model info to existing summaries of the WBProblem created against the model for any validation rules failure.ValidationCompilationResponse
ValidationService. compile(ValidationCompilationRequest request, PlatformUserContext ctx)
Compiles the rules from the given request and returns any resulting compilation failures.java.util.List<ValidationPackage>
ValidationService. createValidationPackages(java.util.List<ValidationRule> rules, PlatformUserContext ctx)
Looks up the associated ValidationRuleIf and ValidationRuleThen records for the given rules to assemble ValidationPackages which can be passed to theValidationService.compile(ValidationCompilationRequest, PlatformUserContext)
orValidationService.validate(ValidationRequest, PlatformUserContext)
methods.java.lang.String
ValidationWBProblemPopulator. getAttribute1(Model model, PlatformUserContext ctx)
Given a model, returns the value for attribute1 of the WBProblem created against the model for any validation rules failure.java.lang.String
ValidationWBProblemPopulator. getAttribute2(Model model, PlatformUserContext ctx)
Given a model, returns the value for Attribute2 of the WBProblem created against the model for any validation rules failure.java.lang.String
ValidationWBProblemPopulator. getAttribute3(Model model, PlatformUserContext ctx)
Given a model, returns the value for Attribute3 of the WBProblem created against the model for any validation rules failure.java.util.Calendar
ValidationWBProblemPopulator. getExpiryDate(Model model, PlatformUserContext ctx)
Given a model, returns the expiry date of the WBProblem created against the model for any validation rules failure.java.lang.Long
ValidationWBProblemPopulator. getOwnerId(Model model, PlatformUserContext ctx)
Given a model, returns the owner id of the WBProblem created against the model for any validation rules failure.java.lang.String
ValidationWBProblemPopulator. getPriority(Model model, PlatformUserContext ctx)
Given a model, returns the priority of the WBProblem created against the model for any validation rules failure.java.lang.String
ValidationWBProblemPopulator. getProblemId(Model model, PlatformUserContext ctx)
Given a model, returns the problem id of the WBProblem created against the model for any validation rules failure.java.lang.String
ValidationWBProblemPopulator. getTitleArgs(Model model, PlatformUserContext ctx)
Given a model, returns the title arguments of the WBProblem created against the model for any validation rules failure.void
ValidationFailureHandler. onValidationFailure(Model model, ValidationResponse response, PlatformUserContext ctx)
This method is called if there is any validation failure against a validation context derived from a ModelValidationConfig.ValidationResponse
ValidationService. validate(ValidationRequest request, PlatformUserContext ctx)
Evaluates the rules from the given request and returns any resulting validation failures. -
Uses of PlatformUserContext in com.onenetwork.platform.features
Methods in com.onenetwork.platform.features with parameters of type PlatformUserContext Modifier and Type Method Description java.util.Set<java.lang.String>
SubscribedFeaturesService. getSubscribedFeatures(PlatformUserContext context)
Returns a list of features subscribed by the enterprise in the provided contextboolean
SubscribedFeaturesService. isSubscribedToFeature(java.lang.String feature, PlatformUserContext context)
Verifies if the feature provided is subscribed by the enterprise in provided context -
Uses of PlatformUserContext in com.onenetwork.platform.integ
Methods in com.onenetwork.platform.integ that return PlatformUserContext Modifier and Type Method Description PlatformUserContext
TransformerContext. getPlatformUserContext()
Returns the platform user's contextConstructors in com.onenetwork.platform.integ with parameters of type PlatformUserContext Constructor Description TransformerContext(java.util.List<? extends Field> fields, java.util.Locale locale, PlatformUserContext platformUserContext)
-
Uses of PlatformUserContext in com.onenetwork.platform.integ.csv
Methods in com.onenetwork.platform.integ.csv with parameters of type PlatformUserContext Modifier and Type Method Description java.util.List<Model>
CsvService. csvToModel(java.io.InputStream csvData, java.lang.String inboundInterfaceName, java.lang.String inboundInterfaceVersion, PlatformUserContext platformUserContext)
Given a stream of CSV data, uses the provided inbound interface (typically defined in the MPT) to convert the given CSV data to model objects.java.lang.String
CsvService. getFieldDelimiterFromInterface(java.lang.String interfaceName, java.lang.String interfaceVersion, boolean isInbound, PlatformUserContext pltUsrContext)
Returns the field delimiter used by the CsvInterface Default is "," (comma)java.io.InputStream
CsvService. modelToCsv(ModelList<?> modelList, java.lang.String interfaceName, java.lang.String interfaceVersion, boolean isInbound, PlatformUserContext platformUserContext)
Given a list of models in com.onenetwork.platform.data.model.ModelList, this method uses the provided inbound or outbound interface to convert the given model objects to CSV data.java.io.InputStream
CsvService. modelToCsv(ModelList<?> modelList, java.lang.String outboundInterfaceName, java.lang.String outboundInterfaceVersion, PlatformUserContext platformUserContext)
LikeCsvService.modelToCsv(ModelList, String, String, boolean, PlatformUserContext)
, but assumes the interface is outbound.void
CsvService. transformFieldDelimiter(java.io.InputStream in, char inDelimiter, java.io.OutputStream out, char outDelimiter, PlatformUserContext pltUsrContext)
Transforms the inputStream to change the delimiter to the one specified and writes the new payload to the outputStream.Constructors in com.onenetwork.platform.integ.csv with parameters of type PlatformUserContext Constructor Description CsvTransformContext(PlatformUserContext platformUserContext)
Deprecated.CsvTransformContext(java.util.List<? extends Field> fields, java.util.Locale locale, PlatformUserContext platformUserContext)
-
Uses of PlatformUserContext in com.onenetwork.platform.integ.edi
Methods in com.onenetwork.platform.integ.edi with type parameters of type PlatformUserContext Modifier and Type Method Description <T extends PlatformUserContext>
TEDIMessagingContext. getDvceContext()
Deprecated.<T extends PlatformUserContext>
voidEDIMessagingContext. setDvceContext(T pltUsrContext)
Deprecated.Methods in com.onenetwork.platform.integ.edi that return PlatformUserContext Modifier and Type Method Description PlatformUserContext
EDIMessagingContext. getUserContext()
Method to get the PLT user context which is the user context being used for the EDI processingMethods in com.onenetwork.platform.integ.edi with parameters of type PlatformUserContext Modifier and Type Method Description java.lang.String
EDIConfigService. generateConfigName(InterchangeInfo interchangeInfo, PlatformUserContext pltUsrContext)
This method generates the configName using the set of IDs.protected void
BaseEDIOutboundGenerator. generateEDI(Partner partner, java.util.List<? extends Model> models, PlatformUserContext pltUserContext)
Generates the EDI transaction sets for the models, sends it using EDIUtil.send (also updating the EDI MQ in the process)java.util.List<EdiConfig>
EDIConfigService. getEdiConfigs(Partner partner, PlatformUserContext pltUsrContext)
This method finds the EdiConfig records associated with the partner.java.util.List<EdiConfig>
EDIConfigService. getEdiConfigs(InterchangeInfo interchangeInfo, PlatformUserContext pltUsrContext)
This method finds the EdiConfig records associated with the EDI Ids.java.util.List<EdiConfig>
EDIConfigService. getEdiConfigs(java.lang.String configName, java.lang.String owningEntName, PlatformUserContext pltUsrContext)
This method finds the EdiConfig records associated with the configName.java.util.List<EdiConfig>
EDIConfigService. getEdiConfigsByMaster(Partner master, PlatformUserContext pltUsrContext)
Returns the EdiConfig records setup for a master - like VendorMaster or CustomerMaster.protected EDIMessagingContext
BaseEDIOutboundGenerator. getEDIMessagingContext(Partner partner, PlatformUserContext pltUserContext)
Build EDIMessagingContext that will be used to get the outbound mapper.java.util.List<Partner>
EDIConfigService. getPartners(InterchangeInfo interchangeInfo, PlatformUserContext pltUsrContext)
This method finds the EdiConfig records associated with the set of EDI Ids and returns the corresponding partner records.java.util.List<EdiConfig>
EDIConfigService. getPrimaryEdiConfigForInbound(InterchangeInfo interchangeInfo, PlatformUserContext pltUsrContext)
This method finds the primary inbound EdiConfig associated with the EDI Ids.java.util.List<EdiConfig>
EDIConfigService. getPrimaryEdiConfigForOutbound(Partner partner, PlatformUserContext pltUsrContext)
This method finds the primary outbound EdiConfig associated with the partner.void
BaseNetChangeEDIOutboundGenerator. populateCustomParams(SqlParams sqlParams, PlatformUserContext pltUserContext)
Override this method if you need to use additional SqlParams as part of retrieving the models to generate outbound.void
EDIMessagingContext. setUserContext(PlatformUserContext pltUsrContext)
Method to set the PLT user context which will the user context used for the EDI processing -
Uses of PlatformUserContext in com.onenetwork.platform.integ.fixlen
Methods in com.onenetwork.platform.integ.fixlen with parameters of type PlatformUserContext Modifier and Type Method Description MessageDetail
BaseFixLenOutboundGenerator. createMessageDetailEntry(java.lang.String recordIdentifier, java.lang.String error, java.lang.String primaryRefTransNo, java.lang.String modelType, java.lang.String rawData, Message message, java.util.List<MessageDetail> messageDetails, PlatformUserContext context)
This method creates a messageDetail JAXB for the parameters passed.MessageDetail
BaseInboundFixLenProcessor. createMessageDetailEntry(java.lang.String recordIdentifier, java.lang.String error, java.lang.String primaryRefTransNo, java.lang.String modelType, java.lang.String rawData, Message message, java.util.List<MessageDetail> messageDetails, PlatformUserContext context)
This method creates a messageDetail JAXB for the parameters passed.FixLenDef
FixLenService. getFixLenDef(java.lang.String moduleOrEptPrefix, java.lang.String metadataFileName, PlatformUserContext pltUsrContext)
This method is used to create and load FixLenDef object from the file within the module or EPT specified.void
BaseInboundFixLenProcessor. handleResults(TaskResult taskResult, Message message, PlatformUserContext context)
void
BaseNetChangeFixLenOutboundGenerator. populateCustomParams(SqlParams sqlParams, PlatformUserContext pltUserContext)
Override this method if you need to use additional SqlParams as part of retrieving the models to generate outbound.abstract void
BaseFixLenOutboundGenerator. populatePrimaryRefTransDetailsOnMessageDetail(MessageDetail messageDetail, FixLenRow fileRow, PlatformUserContext context)
This method must be overridden by subclass generator for setting the primary transaction reference number and modelType on MessageDetail.TaskResult
BaseInboundFixLenProcessor. process(Message message, GridTaskContext gridTaskContext, PlatformUserContext context)
abstract ModelList
BaseInboundFixLenProcessor. processFixLenRows(java.util.List<FixLenRow> fixLenRows, Message message, PlatformUserContext context)
Your implementation should convert the given Listto models, write them (e.g. abstract java.lang.String
BaseInboundFixLenProcessor. setPrimaryRefTransNo(FixLenRow fileRow, PlatformUserContext context)
This method must be overridden by subclass processor to provide the implementation for setting the primary transaction reference number.protected ModelList
BaseInboundFixLenProcessor. writeModelList(ModelList modelList, PlatformUserContext userContext)
Provided as a convenience, as the best practice is for your implementation of#processFixLenRows(fixLenRows)
to use this method internally. -
Uses of PlatformUserContext in com.onenetwork.platform.integ.json
Constructors in com.onenetwork.platform.integ.json with parameters of type PlatformUserContext Constructor Description JsonTransformerContext(java.util.List<? extends Field> fields, java.util.Locale locale, PlatformUserContext platformUserContext)
-
Uses of PlatformUserContext in com.onenetwork.platform.integ.module
Methods in com.onenetwork.platform.integ.module with parameters of type PlatformUserContext Modifier and Type Method Description boolean
ModuleIntegrationService. isInboundInterfaceAvailable(java.lang.String interfaceName, java.lang.String interfaceVersion, PlatformUserContext context)
This method returns true if the interface with the given version is available in any modules available during runtime.java.util.List<Model>
ModuleIntegrationService. processInboundInterface(java.lang.String interfaceName, java.lang.String interfaceVersion, java.util.List<Model> models, PlatformUserContext context)
Given an inbound interface and a list of models to process, converts the models to CSV and executes the interface.java.util.List<Model>
ModuleIntegrationService. processInboundInterface(java.lang.String interfaceName, java.lang.String interfaceVersion, java.util.List<Model> models, IntegrationContext integrationContext, PlatformUserContext context)
Given an inbound interface, a list of models to process and integration specific parameters, converts the models to CSV and executes the interface.java.util.List<CsvRow>
ModuleIntegrationService. processInboundInterfaceCsv(java.lang.String interfaceName, java.lang.String interfaceVersion, java.util.List<CsvRow> data, PlatformUserContext context)
Given an inbound interface and a list of CsvRow, executes the interface. -
Uses of PlatformUserContext in com.onenetwork.platform.integ.msg
Methods in com.onenetwork.platform.integ.msg that return PlatformUserContext Modifier and Type Method Description PlatformUserContext
DynamicChunkingContext. getPlatformUserContext()
PlatformUserContext
InboundProcessingEvent. getPlatformUserContext()
Returns thePlatformUserContext
PlatformUserContext
MessageTransformContext. getPlatformUserContext()
PlatformUserContext
OutboundProcessingContext. getPlatformUserContext()
PlatformUserContext
OutboundProcessingEvent. getPlatformUserContext()
Returns thePlatformUserContext
abstract PlatformUserContext
ContextResolver. resolve(Message message, MsgProcessingContext msgProcessingContext)
Method to resolve the user context based on inbound message and MsgProcessingContextMethods in com.onenetwork.platform.integ.msg with parameters of type PlatformUserContext Modifier and Type Method Description MessageDetail
MessageDetailService. createMessageDetail(java.lang.String strRecordIdentifier, java.lang.String strErrorMessage, java.lang.String strPrimaryRefTransNumber, java.lang.String strModelType, java.lang.String strRawData, Message msg, java.util.List<MessageDetail> messageDetails, PlatformUserContext pltUsrContext)
Checks the external reference configuration to see if MessageDetail is enabled for the given message.static void
AbstractInboundProcessor. createNeoNotification(java.lang.String fileName, boolean hasErrors, PlatformUserContext userCtx)
void
MessageQueueService. enqueue(Message message, PlatformUserContext context)
Enqueues a message into the owning queue of Message.MessageDetailLevel
MessageDetailService. getMessageDetailLevel(Message message, PlatformUserContext pltUsrContext)
This method is used for identifying whether message detail should capture "AllRecords", "ErrorRecordsOnly" or "None" for a queue+interface combination using ExternalReference where ref type is PLT.MessageDetail:Enable.void
AbstractInboundProcessor. handleResults(TaskResult result, Message msg, PlatformUserContext ctx)
void
InboundProcessor. handleResults(TaskResult taskResult, Message message, PlatformUserContext context)
After processing, handles success and error cases, typically by enqueueing a response message.void
MessageQueueService. markProcessed(java.util.Collection<Message> messages, PlatformUserContext context)
Forcibly marks the given Messages as having been processed without doing any actual processing.void
MessageHandler. onFailedByGridAdmin(Message message, java.lang.String reason, GridTaskContext ctx, PlatformUserContext context)
If the Message fails due to an issue such as a timeout (i.e.TaskResult
MessageHandler. onMessage(Message message, GridTaskContext ctx, PlatformUserContext context)
This method is called when the Message is ready for processingvoid
MessageQueueService. pause(java.util.Collection<QueueRef> queueRefs, PlatformUserContext context)
Pauses the given queues - you can still enqueue messages into a paused queue, but no messages will be dequeued until it is unpaused.TaskResult
AbstractInboundProcessor. process(Message msg, GridTaskContext gridCtx, PlatformUserContext ctx)
TaskResult
InboundProcessor. process(Message message, GridTaskContext gridTaskContext, PlatformUserContext context)
Callback from the message queue framework to process an inbound message.TaskResult
MessageDestination. process(Message message, GridTaskContext ctx, PlatformUserContext context)
Process the outbound messageabstract void
AbstractInboundProcessor. processMessage(Message msg, GridTaskContext gridCtx, java.io.File fileForErrors, PlatformUserContext ctx)
Implement this method to process your Message.void
MessageDetailService. saveMessageDetails(java.util.List<MessageDetail> messageDetails, PlatformUserContext pltUsrContext)
Saves the given MessageDetail objects in a new transaction.void
DynamicChunkingContext. setPlatformUserContext(PlatformUserContext platformUserContext)
void
MessageQueueService. unpause(java.util.Collection<QueueRef> queueRefs, PlatformUserContext context)
Unpauses the given queues - you can still enqueue messages into a paused queue, but no messages will be dequeued until it is unpaused.Message
OutboundMessageService. writeModelBasedOutbound(ModelOutboundInterfaceWriteRequest writeRequest, PlatformUserContext context)
Generates an outbound Message for the given OutboundInterface into the destination specified by OutboundQueueName for the list of models passed.java.util.List<Message>
OutboundMessageService. writeModelBasedOutbound(java.util.List<ModelOutboundInterfaceWriteRequest> writeRequests, PlatformUserContext context)
Generates an outbound Message for the given OutboundInterface into the destination specified by OutboundQueueName for the list of models passed.Message
OutboundMessageService. writeNetChangeOutbound(OutboundInterfaceWriteRequest writeRequest, PlatformUserContext context)
Generates a NetChange Message for the given OutboundInterface into the destination specified by OutboundQueueName.java.util.List<Message>
OutboundMessageService. writeNetChangeOutbound(java.util.List<OutboundInterfaceWriteRequest> writeRequests, PlatformUserContext context)
Generates a NetChange Message for the given OutboundInterface into the destination specified by OutboundQueueName.Message
OutboundMessageService. writeSysIdBasedOutbound(SysIdOutboundInterfaceWriteRequest writeRequest, PlatformUserContext context)
Generates an outbound Message for the given OutboundInterface into the destination specified by OutboundQueueName for the list of sysIds passed.java.util.List<Message>
OutboundMessageService. writeSysIdBasedOutbound(java.util.List<SysIdOutboundInterfaceWriteRequest> writeRequests, PlatformUserContext context)
Generates an outbound Message for the given OutboundInterface into the destination specified by OutboundQueueName for the list of sysIds passed.Constructors in com.onenetwork.platform.integ.msg with parameters of type PlatformUserContext Constructor Description ModelOutboundProcessingContext(java.lang.String outboundInterfaceName, java.lang.String outboundInterfaceVersion, java.io.OutputStream outputStream, PlatformUserContext platformUserContext)
NetChangeOutboundProcessingContext(java.lang.String outboundInterfaceName, java.lang.String OutboundInterfaceVersion, java.io.OutputStream outputStream, PlatformUserContext platformUserContext)
OutboundCsvTransformContext(java.util.List<? extends Field> fields, java.util.Locale locale, PlatformUserContext platformUserContext)
Deprecated.OutboundProcessingContext(java.lang.String outboundInterfaceName, java.lang.String OutboundInterfaceVersion, java.io.OutputStream outputStream, PlatformUserContext platformUserContext)
SysIdOutboundProcessingContext(java.lang.String outboundInterfaceName, java.lang.String OutboundInterfaceVersion, java.io.OutputStream outputStream, PlatformUserContext platformUserContext)
Constructs a context to generate an outbound request. -
Uses of PlatformUserContext in com.onenetwork.platform.integ.notify
Methods in com.onenetwork.platform.integ.notify with parameters of type PlatformUserContext Modifier and Type Method Description void
NotificationService. send(java.util.Collection<Notification> notifications, PlatformUserContext platformUserContext)
Sends the given Notifications as per the address/payload/etc specified inside the Notification objects. -
Uses of PlatformUserContext in com.onenetwork.platform.integ.oagis
Methods in com.onenetwork.platform.integ.oagis with parameters of type PlatformUserContext Modifier and Type Method Description void
OAGISService. enqueueInNewTransaction(Message outboundMessage, PlatformUserContext platformUserContext)
Create outbound message from the OB processing contextprotected EDIMessagingContext
BaseOAGISOutboundGenerator. getEDIMessagingContext(PlatformUserContext pltUserContext)
Build a new EDIMessagingContext from the given user context, used to get the outbound mapper.void
BaseOAGISOutboundGenerator. populateCustomParams(SqlParams sqlParams, PlatformUserContext pltUserContext)
Override this method if you need to use additional SqlParams as part of retrieving the models to generate outbound. -
Uses of PlatformUserContext in com.onenetwork.platform.integ.oauth
Methods in com.onenetwork.platform.integ.oauth with parameters of type PlatformUserContext Modifier and Type Method Description OAuthOBToken
OAuthOBService. grantToken(java.lang.String token, OAuthOBTokenReq req, PlatformUserContext ctx)
Persists an OAuthOBToken, given the original request and the token value provided from the Resource Server.OAuthOBTokenReq
OAuthOBService. newAuthorizationRequest(OAuthOBClientApp clientApp, PlatformUserContext ctx)
Instantiates a new OAuthOBTokenReq in the Pending state, with a generated value for OAuthClientState.OAuthOBTokenReq
OAuthOBService. readTokenReq(java.lang.String clientState, PlatformUserContext ctx)
Read OAuthOBTokenReq which was persisted during newAuthorizationRequest -
Uses of PlatformUserContext in com.onenetwork.platform.integ.rest
Methods in com.onenetwork.platform.integ.rest that return PlatformUserContext Modifier and Type Method Description PlatformUserContext
BaseResource. getPlatformUserContext()
Returns aPlatformUserContext
for the user which initiated the request.Methods in com.onenetwork.platform.integ.rest with parameters of type PlatformUserContext Modifier and Type Method Description static <A> java.util.List<A>
ResourceListenerFactory. get(java.lang.Class<A> clsA, PlatformUserContext context)
It returns list of registered listener for given super class and user context. -
Uses of PlatformUserContext in com.onenetwork.platform.integ.rest.model
Fields in com.onenetwork.platform.integ.rest.model declared as PlatformUserContext Modifier and Type Field Description protected PlatformUserContext
BaseModelResourceListener. platformUserContext
-
Uses of PlatformUserContext in com.onenetwork.platform.integ.rest.problem
Methods in com.onenetwork.platform.integ.rest.problem with parameters of type PlatformUserContext Modifier and Type Method Description void
BaseProblemResourceListener. afterAssigneeListConstructed(java.util.List<java.lang.Long> problemIds, org.json.JSONArray users, PlatformUserContext pltCtx)
Called after the users list has been constructed as response for /assign/list API.void
BaseProblemResourceListener. afterAssigneeListConstructed(org.json.JSONArray users, PlatformUserContext pltCtx)
Deprecated.void
BaseProblemResourceListener. afterNeoPrescriptionsExecuted(java.util.Map<NeoPrescription,AsyncAction> asyncActionsByPrescription, org.json.JSONObject resultObj, PlatformUserContext pltCtx)
Called after the AsyncActions have been created for NeoPrescriptions and sent off to the Grid for execution.void
BaseProblemResourceListener. afterPartnerOrgResponseConstruction(org.json.JSONArray outputLines, PlatformUserContext pltCtx)
Called after the partner organizations list has been constructed as response for lines/getPartnerOrgs API.void
BaseProblemResourceListener. afterPartnerRecordsRead(java.util.List<SqlRow> sqlRows, PlatformUserContext pltCtx)
Called after the partner organizations has been read to build the response for lines/getPartnerOrgs API.void
BaseProblemResourceListener. afterProblemListConstructed(org.json.JSONArray problemsArr, org.json.JSONObject resultObj, PlatformUserContext pltCtx)
Called after the problems list has been constructed as response for /problem/list API. -
Uses of PlatformUserContext in com.onenetwork.platform.integ.rest.report
Fields in com.onenetwork.platform.integ.rest.report declared as PlatformUserContext Modifier and Type Field Description protected PlatformUserContext
BaseReportResourceListener. platformContext
Methods in com.onenetwork.platform.integ.rest.report with parameters of type PlatformUserContext Modifier and Type Method Description void
BaseReportResourceListener. onAutocompleteExecuted(Table table, org.json.JSONObject filters, PlatformUserContext ctx)
Called after report is executed in the context of an autocomplete (e.g. -
Uses of PlatformUserContext in com.onenetwork.platform.integ.rest.template
Fields in com.onenetwork.platform.integ.rest.template declared as PlatformUserContext Modifier and Type Field Description protected PlatformUserContext
BaseTemplateResourceListener. platformUserContext
Methods in com.onenetwork.platform.integ.rest.template with parameters of type PlatformUserContext Modifier and Type Method Description static void
BaseTemplateResourceListener. convertTemplateSQLToJSON(org.json.JSONObject retObj, SqlRow sqlRow, PlatformUserContext platformUserContext)
Helper method that converts a Template instance in the form of aSqlRow
to aJSONObject
that can be passed to the client. -
Uses of PlatformUserContext in com.onenetwork.platform.integ.sap
Methods in com.onenetwork.platform.integ.sap with parameters of type PlatformUserContext Modifier and Type Method Description protected EDIMessagingContext
BaseIDocOutboundGenerator. getEDIMessagingContext(PlatformUserContext pltUserContext)
Build a new EDIMessagingContext from the given user context, used to get the outbound mapper.IDocDef
IDocService. getIDocDef(java.lang.String moduleOrEptPrefix, java.lang.String metadataFileName, PlatformUserContext pltUsrContext)
This method is used to create and load an IDocDef object from the file within the module or EPT specified.void
BaseNetChangeIDocOutboundGenerator. populateCustomParams(SqlParams sqlParams, PlatformUserContext pltUserContext)
Override this method if you need to use additional SqlParams as part of retrieving the models to generate outbound. -
Uses of PlatformUserContext in com.onenetwork.platform.integ.soap
Methods in com.onenetwork.platform.integ.soap that return PlatformUserContext Modifier and Type Method Description PlatformUserContext
BaseSOAPService. getPlatformUserContext()
Returns aPlatformUserContext
for the user which initiated the request. -
Uses of PlatformUserContext in com.onenetwork.platform.neonotification
Methods in com.onenetwork.platform.neonotification with parameters of type PlatformUserContext Modifier and Type Method Description void
NeoNotificationService. publishNotifications(java.util.List<NeoNotification> notifications, PlatformUserContext ctx)
Persist and Publish the provided Notification(s) to PushService -
Uses of PlatformUserContext in com.onenetwork.platform.report.summary
Methods in com.onenetwork.platform.report.summary that return PlatformUserContext Modifier and Type Method Description PlatformUserContext
ReportSummaryRequest. getPlatformUserContext()
Context of user executing the reportConstructors in com.onenetwork.platform.report.summary with parameters of type PlatformUserContext Constructor Description ReportSummaryRequest(ReportSummaryRow reportSummaryRow, java.lang.String reportName, SqlDef sqlDef, SqlParams sqlParams, TableMetaData tableMeta, boolean exportRequest, PlatformUserContext platformUserContext)
Constructs the request, setting all parameters as provided. -
Uses of PlatformUserContext in com.onenetwork.platform.restapi
Methods in com.onenetwork.platform.restapi with parameters of type PlatformUserContext Modifier and Type Method Description void
ModelAPIPlugin. afterReadByKey(ReadByKeyParams params, org.json.JSONObject readByKeyResult, PlatformUserContext context)
This method is called after the readByKey is processed.void
ModelAPIPlugin. afterSearch(SearchParams params, org.json.JSONObject searchResult, PlatformUserContext context)
This method is called after the search is processed.void
ModelAPIPlugin. afterWrite(WriteParams params, org.json.JSONObject writeResult, PlatformUserContext context)
This method is called after the models are persisted to the DB to perform any additional operation by module, i.e.void
ModelAPIPlugin. beforeWrite(org.json.JSONArray valid, org.json.JSONArray errors, PlatformUserContext context)
This method is called before the write is happened on model.WhereClauseContribution
ModelAPIPlugin. getSearchWhereClauseContribution(SearchParams params, PlatformUserContext context)
This method is called before executing search if the search doesn't belong to the owning module level model rest resource.default void
ModelAPI. preWrite(WriteParams params, PlatformUserContext context)
Called before any validation occurs for write operationsorg.json.JSONObject
ModelAPI. readByKey(ReadByKeyParams params, PlatformUserContext context)
Read single and multi-level models using their natural keys.org.json.JSONObject
ModelAPI. search(SearchParams params, WhereClauseContribution whereClauseContribution, PlatformUserContext context)
Read single and multi-level models using the search criteria defined in ModelRestResource.org.json.JSONObject
ModelAPI. write(WriteParams params, PlatformUserContext context)
Write the single and multi-level models.org.json.JSONObject
ModelAPIPlugin. write(WriteParams params, org.json.JSONArray errors, ModelAPI modelAPI, PlatformUserContext context)
This method is only called if the provided resource action name doesn't belong to owning model rest resource. -
Uses of PlatformUserContext in com.onenetwork.platform.tools.i18n
Methods in com.onenetwork.platform.tools.i18n with parameters of type PlatformUserContext Modifier and Type Method Description java.lang.ClassLoader
ClassLoaderService. getClassLoader(PlatformUserContext userContext)
Gets class loader for SPT -
Uses of PlatformUserContext in com.onenetwork.platform.tools.log
Methods in com.onenetwork.platform.tools.log with parameters of type PlatformUserContext Modifier and Type Method Description static void
BizLogger. debug(BizLoggerDoc doc, java.lang.String entName, PlatformUserContext ctx)
LikeBizLogger.info(BizLoggerDoc, String, PlatformUserContext)
, but has a level of "debug", meaning "relevant only for detailed debugging".static void
BizLogger. error(BizLoggerDoc doc, java.lang.String entName, PlatformUserContext ctx)
LikeBizLogger.info(BizLoggerDoc, String, PlatformUserContext)
, but has a level of "error", meaning "a serious business processing problem or data inconsistency was detected".static void
BizLogger. info(BizLoggerDoc doc, java.lang.String entName, PlatformUserContext ctx)
Asynchronously logs the given BizLoggerDoc to the Instance/ValueChain index, as well as the Enterprise index if entName is not null.static void
BizLogger. log(BizLogger.Level level, BizLoggerDoc doc, java.lang.String entName, PlatformUserContext ctx)
Convenience method withBizLogger.Level
as a parameterstatic void
BizLogger. warn(BizLoggerDoc doc, java.lang.String entName, PlatformUserContext ctx)
LikeBizLogger.info(BizLoggerDoc, String, PlatformUserContext)
, but has a level of "warn", meaning "may indicate a business processing problem or data inconsistency". -
Uses of PlatformUserContext in com.onenetwork.platform.workflow
Methods in com.onenetwork.platform.workflow that return PlatformUserContext Modifier and Type Method Description PlatformUserContext
PersonalizedIssueCompContext. getPlatformUserContext()
Returns the context of the user who is subscribedPlatformUserContext
WorkflowContext. getPlatformUserContext()
Returns the user context within which the workflow is executing.Methods in com.onenetwork.platform.workflow with parameters of type PlatformUserContext Modifier and Type Method Description <T extends Model>
voidIssueService. computeIssues(java.lang.Class<T> topLevelClass, java.util.List<java.lang.Long> modelIds, PlatformUserContext context, java.lang.String... issueCompNames)
Convenience method to execute the issue computations for the provided list of candidates<T extends Model>
voidIssueService. computeIssues(java.util.Collection<T> models, PlatformUserContext context, java.lang.String... issueCompNames)
Convenience method to execute the issue computations for the provided list of candidatesdefault void
PersonalizedIssueComp. populateDisplayFields(IssueSubscription subscription, Model m, java.util.Map<java.lang.String,java.lang.String> displayFields, PlatformUserContext userContext)
void
PersonalizedIssueCompContext. setPlatformUserContext(PlatformUserContext platformUserContext)
Sets the context of the user who is subscribed