本文整理汇总了Java中org.alfresco.service.cmr.module.ModuleInstallState类的典型用法代码示例。如果您正苦于以下问题:Java ModuleInstallState类的具体用法?Java ModuleInstallState怎么用?Java ModuleInstallState使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ModuleInstallState类属于org.alfresco.service.cmr.module包,在下文中一共展示了ModuleInstallState类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testListModules
import org.alfresco.service.cmr.module.ModuleInstallState; //导入依赖的package包/类
@Test
public void testListModules() throws Exception
{
TFile theWar = getFile(".war", "module/test.war");
List<ModuleDetails> details = this.listModules(theWar);
assertNotNull(details);
assertEquals(details.size(), 0);
theWar = getFile(".war", "module/share-4.2.a.war");
details = this.listModules(theWar);
assertNotNull(details);
assertEquals(details.size(), 1);
ModuleDetails aModule = details.get(0);
assertEquals("alfresco-mm-share", aModule.getId());
assertEquals("0.1.5.6", aModule.getModuleVersionNumber().toString());
assertEquals(ModuleInstallState.INSTALLED, aModule.getInstallState());
}
示例2: ModuleDetailsImpl
import org.alfresco.service.cmr.module.ModuleInstallState; //导入依赖的package包/类
/**
* Private constructor to set default values.
*/
private ModuleDetailsImpl()
{
aliases = new ArrayList<String>(0);
repoVersionMin = VersionNumber.VERSION_ZERO;
repoVersionMax = VersionNumber.VERSION_BIG;
dependencies = new ArrayList<ModuleDependency>(0);
this.installState = ModuleInstallState.UNKNOWN;
}
示例3: testTrimming
import org.alfresco.service.cmr.module.ModuleInstallState; //导入依赖的package包/类
public void testTrimming() throws Exception
{
Properties props = new Properties();
props.putAll(DEFAULT_PROPS);
props.setProperty(ModuleDetails.PROP_INSTALL_STATE, " ");
ModuleDetails details = new ModuleDetailsImpl(props);
assertEquals("Expected the install state to be UNKNOWN", ModuleInstallState.UNKNOWN, details.getInstallState());
}
示例4: getInstallState
import org.alfresco.service.cmr.module.ModuleInstallState; //导入依赖的package包/类
public ModuleInstallState getInstallState()
{
return installState;
}
示例5: setInstallState
import org.alfresco.service.cmr.module.ModuleInstallState; //导入依赖的package包/类
public void setInstallState(ModuleInstallState installState)
{
this.installState = installState;
}