This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright 2015 JBoss, by Red Hat, Inc | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright 2015 JBoss, by Red Hat, Inc | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.uberfire.ext.wirez.bpmn.api; | |
| import org.jboss.errai.common.client.api.annotations.Portable; | |
| import org.uberfire.ext.wirez.bpmn.api.property.BPMNBasePropertyPack; | |
| import org.uberfire.ext.wirez.bpmn.api.property.BPMNBgColorPropertyPack; | |
| import org.uberfire.ext.wirez.bpmn.api.property.BgColorProperty; | |
| import org.uberfire.ext.wirez.bpmn.api.role.*; | |
| import org.uberfire.ext.wirez.core.api.factory.DefaultNodeFactory; | |
| import org.uberfire.ext.wirez.core.api.graph.DefaultEdge; | |
| import org.uberfire.ext.wirez.core.api.graph.DefaultNode; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * The gallery perspective. | |
| */ | |
| @ApplicationScoped | |
| @WorkbenchPerspective(identifier = "DisplayerGalleryPerspective") | |
| public class DisplayerGalleryPerspective { | |
| @Perspective | |
| public PerspectiveDefinition buildPerspective() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| testDoDeploy(org.dashbuilder.dataset.DataSetDefDeployerTest) Time elapsed: 0.005 sec <<< FAILURE! | |
| java.lang.AssertionError: expected null, but was:<UUID=salesPerYear | |
| Provider=BEAN | |
| Public=true | |
| Push enabled=true | |
| Push max size=1024 Kb | |
| Generator class=org.dashbuilder.dataprovider.SalesPerYearDataSetGenerator | |
| Generator multiplier=1 | |
| > | |
| at org.junit.Assert.fail(Assert.java:88) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Copyright (c) 2014,2015,2016 Ahome' Innovation Technologies. All rights reserved. | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Copyright (c) 2014,2015,2016 Ahome' Innovation Technologies. All rights reserved. | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void setupMenu() { | |
| final MenuFactory.TopLevelMenusBuilder<MenuFactory.MenuBuilder> builder = newTopLevelMenu("Home").respondsWith(new Command() { | |
| @Override | |
| public void execute() { | |
| placeManager.goTo(new DefaultPlaceRequest("HomePerspective")); | |
| } | |
| }).endMenu(); | |
| if (userSystemManager.isActive()) { | |
| builder.newTopLevelMenu("Users management").respondsWith(new Command() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Check that roles registered in the framework are created as realm groups as well, if not they cannot be used, as it couldn't be assigned. | |
| protected Set<Role> getRegisteredRoles() { | |
| final Set<Role> result = new LinkedHashSet<Role>(); | |
| final Set<Role> registeredRoles = SecurityManagementUtils.getRegisteredRoles(); | |
| if ( null != registeredRoles && !registeredRoles.isEmpty() ) { | |
| GroupManager groupManager = userSystemManager.groups(); | |
| for (final Role registeredRole : registeredRoles) { | |
| try { | |
| // If the groupManager does not found the role name, it will throw an exception, | |
| // so the role will be not added into the resulting list. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The POJO: | |
| ********** | |
| @Definition ( id ="startEvent" ) | |
| public class StartEvent .... { | |
| @Property NameProperty nameProperty; | |
| .... etc |