Package org.jbpm.designer.repository

Examples of org.jbpm.designer.repository.Repository.deleteAsset()


              .openStream());
            } catch (Exception e1) {
              _logger.error("Could not read icon image: " + e1.getMessage());
            }
            // install wid and icon
                        repository.deleteAsset(profile.getRepositoryGlobalDir( uuid ) + "/" +  widName + ".wid");

                        AssetBuilder widAssetBuilder = AssetBuilderFactory.getAssetBuilder(Asset.AssetType.Text);
                        widAssetBuilder.name(widName)
                                       .location(profile.getRepositoryGlobalDir( uuid ))
                                       .type("wid")
View Full Code Here


                        AssetBuilder iconAssetBuilder = AssetBuilderFactory.getAssetBuilder(Asset.AssetType.Byte);
                        String iconExtension = iconName.substring(iconName.lastIndexOf(".") + 1);
                        String iconFileName = iconName.substring(0, iconName.lastIndexOf("."));


                        repository.deleteAsset(profile.getRepositoryGlobalDir( uuid ) + "/" + iconFileName + "." + iconExtension);

                        iconAssetBuilder.name(iconFileName)
                                .location(profile.getRepositoryGlobalDir( uuid ))
                                .type(iconExtension)
                                .content(iconContent);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.