@ApplicationScoped public class BaseAssetMigrater extends Object
Modifier and Type | Field and Description |
---|---|
protected org.drools.guvnor.server.RepositoryAssetService |
jcrRepositoryAssetService |
protected static org.slf4j.Logger |
logger |
protected org.guvnor.common.services.shared.metadata.MetadataService |
metadataService |
protected MigrationPathManager |
migrationPathManager |
Constructor and Description |
---|
BaseAssetMigrater() |
Modifier and Type | Method and Description |
---|---|
String |
getExtendedRuleFromCategoryRules(org.drools.guvnor.client.rpc.Module jcrModule,
org.drools.repository.AssetItem jcrAssetItem,
String ruleDelimiter)
Retrieves form jcrModule the categoryRules and deduce the rule to extend depending of the assetItem categories
retrieve the rule name between ruleDelimiter
|
String |
getExtendExpression(org.drools.guvnor.client.rpc.Module jcrModule,
org.drools.repository.AssetItem jcrAssetItem,
String content)
Constructs the extends expression, using the asset categories and the module categoryRules, and adds to the
passed content.
|
Map<String,Object> |
migrateMetaData(org.drools.guvnor.client.rpc.Module jcrModule,
org.drools.repository.AssetItem jcrAssetItem) |
protected static final org.slf4j.Logger logger
@Inject protected org.drools.guvnor.server.RepositoryAssetService jcrRepositoryAssetService
@Inject protected MigrationPathManager migrationPathManager
@Inject protected org.guvnor.common.services.shared.metadata.MetadataService metadataService
public Map<String,Object> migrateMetaData(org.drools.guvnor.client.rpc.Module jcrModule, org.drools.repository.AssetItem jcrAssetItem)
public String getExtendedRuleFromCategoryRules(org.drools.guvnor.client.rpc.Module jcrModule, org.drools.repository.AssetItem jcrAssetItem, String ruleDelimiter)
jcrModule
- module which has the category rule definedjcrAssetItem
- asset with the categories, which can extend the ruleruleDelimiter
- The delimiter used to contruct the return valuepublic String getExtendExpression(org.drools.guvnor.client.rpc.Module jcrModule, org.drools.repository.AssetItem jcrAssetItem, String content)
jcrModule
- module with the categoryRulesjcrAssetItem
- asset with the categories to decide the extend expression to addcontent
- string to be completed with the necessary extendCopyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.