Commit Graph

35 Commits

Author SHA1 Message Date
Robert von Burg 2907df815a [Project] Added privilege StrolchSearch 2018-03-20 07:46:50 +01:00
Robert von Burg 1183000520 [Major] Implemented privilege checking for DAO
Now the PrivilegeConfig.xml must include:

	<Policies>
		<Policy name="ModelPrivilege"
class="li.strolch.runtime.privilege.ModelPrivilege" />
	</Policies>

And PrivilegeRoles.xml must include:

	<Role>
		<Privilege name="GetResource" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="GetOrder" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="GetActivity" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="AddResource" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="AddOrder" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="AddActivity" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="UpdateResource" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="UpdateOrder" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="UpdateActivity" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="RemoveResource" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="RemoveOrder" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="RemoveActivity" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
	</Role>
2017-07-24 20:07:10 +02:00
Robert von Burg 4c9e66876a [Major] Privilege passwords are now salted! 2017-05-22 14:37:48 +02:00
Robert von Burg f87c42f399 [Project] switched tests to use logback-classic 2017-05-22 09:50:48 +02:00
Robert von Burg 597441653a [Minor] Code cleanup 2016-10-03 14:00:39 +02:00
Robert von Burg c6506de3ab [Major] Fixed starting of all test applications 2016-09-29 16:54:48 +02:00
Robert von Burg 48caa84903 [Major] Refactored SystemAction in privileges
Simplified the API, removed the privileged user - now always use the
agent system user for running system actions. One method has no return
value and one has a return value. Now it is easy to perform a system
action using:

    runAsAgent(ctx -> {
      // do work			
    });

    String result = runAsAgentWithResult(ctx -> {
      // do work
      return "done";
    });

    // execute a SystemAction
    runAsAgent(action);

    // execute a SystemActionWithResult
    String result = runAsAgentWithResult(actionWithResult);
2016-09-29 15:54:30 +02:00
Robert von Burg dd227c65d0 [Major] Refactored SystemAction in privileges
Simplified the API, removed the privileged user - now always use the
agent system user for running system actions. One method has no return
value and one has a return value. Now it is easy to perform a system
action using:

    runAsAgent(ctx -> {
      // do work			
    });

    String result = runAsAgentWithResult(ctx -> {
      // do work
      return "done";
    });

    // execute a SystemAction
    runAsAgent(action);

    // execute a SystemActionWithResult
    String result = runAsAgentWithResult(actionWithResult);
2016-09-29 12:26:27 +02:00
Robert von Burg bcc0bf4a10 [Major] Now users can reset their own passwords
- built in User Challenge feature (currently only console)
- extended REST API to allow user to initiate a challenge and then use
the challenge to authenticate for a one time change password session
2016-09-07 14:41:16 +02:00
Robert von Burg 5559e4cb8a [Project] Disabled building of XML persistence 2016-08-08 09:57:12 +02:00
Robert von Burg 11ba7eb1de [Major] Moved ch.eitchnet to li.strolch 2016-06-26 11:38:41 +02:00
Robert von Burg c527a0e964 [New] Added showing of details of an element 2016-04-08 19:57:03 +02:00
Robert von Burg 454b36d659 [New] Now also showing activities in model view 2016-04-08 18:04:37 +02:00
Robert von Burg d2db81465a [New] Finished initial loading of parts. 2016-04-08 14:45:12 +02:00
Robert von Burg 48551ec6ab [New] Finished initial loading of parts. 2016-04-08 14:40:35 +02:00
Robert von Burg d9a2a4f609 [WIP] Refactoring how parts are loaded 2016-04-08 10:58:16 +02:00
Robert von Burg c404c56b8a [Major] Refactored startup so a Version must always be set
This implies having an appVersion.properties in each project which is an
actual Strolch app.
2016-04-06 21:25:59 +02:00
Robert von Burg cb62e295b0 [New] Showing orders now 2016-04-06 18:21:59 +02:00
Robert von Burg 6162cb148f [New] Defer initial loading of data tables 2016-04-06 17:43:05 +02:00
Robert von Burg 9294711639 [Major] Now using a nice query parser for resource querying in planning 2016-04-06 09:25:55 +02:00
Robert von Burg 8a5c4468c5 [Major] Now using a nice query parser for resource querying in planning 2016-04-05 08:30:40 +02:00
Robert von Burg 0246adb4ab [WIP] Added Resource table loading to planning web with filter 2016-04-03 17:58:47 +02:00
Robert von Burg a74508ba12 [WIP] Added Resource table loading to planning web 2016-04-01 18:24:35 +02:00
Robert von Burg 47d605dabb [WIP] Initial loading of parts 2016-03-29 09:29:29 +02:00
Robert von Burg d15cb68954 [WIP] Initial loading of parts 2016-03-28 00:20:39 +02:00
Robert von Burg f73c207076 [WIP] Preparing REST API calls 2016-03-27 19:55:48 +02:00
Robert von Burg f6b2504970 [WIP] Adding a web UI for PlanningWebApp 2016-03-27 18:39:33 +02:00
Robert von Burg 0cadf66f3f [Major] Refactored Privilege to use separate mode files
So now users and roles are in their own files. This makes it far easier
to add new privileges without needing to take care if the user changed
their data.
2016-02-28 19:54:17 +01:00
Robert von Burg 8344c75d39 [Major] Refactored setup of StrolchAgent using StrolchBootstrapper
Now instead of instantiating StrolchAgent and calling the method
setup(), instantiate StrolchBootstrapper and call one of the setup
methods which is appropriate to your use-case.

New feature is to use a StrolchBootstrap.xml to configure the
environment, root, config and data paths. Each can be defined by
environment and overridden, etc.
2016-02-27 13:32:18 +01:00
Robert von Burg 19f7a6f272 [Minor] fixed wrong root name for strolch model 2015-11-20 14:47:49 +01:00
Robert von Burg 5256b3ad92 [Project] cleaned up Eclipse settings 2015-10-05 10:57:53 +02:00
Robert von Burg 278b3e9b6d [New] Added states to BicycleProduction 2015-09-01 16:00:14 +02:00
Robert von Burg 918e568c00 [New] Added templates to BicycleProduction 2015-09-01 15:11:09 +02:00
Robert von Burg cbda36194a [New] Added a new model BicycleProduction.xml
The production contains an activity model for producing a bicycle with
machine, articles, assembly and stock.
2015-08-28 15:00:10 +02:00
Robert von Burg 2eaa0b5498 [New] Added new project li.strolch.planningwebapp
- this project will be a reference implementation for planning use cases
2015-08-11 17:59:12 +02:00