本文整理匯總了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;
}