private static List<MultiViewRow> createRows(Asset[] assets) { List<MultiViewRow> rows = new ArrayList<MultiViewRow>(); for (Asset ruleAsset : assets) { MultiViewRow row = new MultiViewRow(ruleAsset.getUuid(), ruleAsset.getName(), AssetFormats.BUSINESS_RULE); rows.add(row); } return rows; }
@WebRemote @LoggedIn public String checkinVersion(Asset asset) throws SerializationException { serviceSecurity.checkIsPackageDeveloperOrAnalyst(asset); log.info( "USER:"******" CHECKING IN asset: [" + asset.getName() + "] UUID: [" + asset.getUuid() + "] "); return repositoryAssetOperations.checkinVersion(asset); }
private void addAssets(Asset[] assets) { for (Asset ruleAsset : assets) { this.assets.put(ruleAsset.getUuid(), ruleAsset); } }