當前位置: 首頁>>代碼示例>>Java>>正文


Java OrganisationUnit.setExternalAccess方法代碼示例

本文整理匯總了Java中org.hisp.dhis.android.sdk.persistence.models.OrganisationUnit.setExternalAccess方法的典型用法代碼示例。如果您正苦於以下問題:Java OrganisationUnit.setExternalAccess方法的具體用法?Java OrganisationUnit.setExternalAccess怎麽用?Java OrganisationUnit.setExternalAccess使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.hisp.dhis.android.sdk.persistence.models.OrganisationUnit的用法示例。


在下文中一共展示了OrganisationUnit.setExternalAccess方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createRealOrganisationUnit

import org.hisp.dhis.android.sdk.persistence.models.OrganisationUnit; //導入方法依賴的package包/類
public void createRealOrganisationUnit(){
    //Create program and organisationUnit to test the download and saved objects in SDK DB.
    goldenOrganisationUnit =new OrganisationUnit();
    goldenDataSets =new ArrayList<>();
    goldenOrganisationUnitGroups =new ArrayList<>();

    goldenOrganisationUnit.setId("QS7sK8XzdQc");
    goldenOrganisationUnit.setLabel("KE - HNQIS SF pilot test facility 1");
    goldenOrganisationUnit.setLevel(8);
    goldenOrganisationUnit.setParent("spT8zFVQsvx");
    goldenOrganisationUnit.setUuid("68c66a34-806f-49d1-9593-ba5d399ce95e");
    goldenOrganisationUnit.setLastUpdated("2016-02-19T14:55:53.084+0000");
    goldenOrganisationUnit.setCreated("2015-08-06T12:25:04.675+0000");
    goldenOrganisationUnit.setName("KE - HNQIS SF pilot test facility 1");
    goldenOrganisationUnit.setUser("NjbJCa6JkQu");
    goldenOrganisationUnit.setShortName("KE - HNQIS SF pilot test facility 1");
    goldenOrganisationUnit.setDisplayName("KE - HNQIS SF pilot test facility 1");
    goldenOrganisationUnit.setDisplayShortName("KE - HNQIS SF pilot test facility 1");
    goldenOrganisationUnit.setExternalAccess(false);
    goldenOrganisationUnit.setPath("/FvUGp8I75zV/FhYFWRnrbkd/rP1W74RpNWF/AVqhgx4Ov2F/yp9x1IMVvcL/uJeWnsfj5EN/spT8zFVQsvx/QS7sK8XzdQc");
    goldenOrganisationUnit.setFeatureType("NONE");
    goldenOrganisationUnit.setOpeningDate("2015-08-06");//2015-08-06T00:00:00.000+0000
    goldenOrganisationUnit.setDimensionItem("QS7sK8XzdQc");

    goldenOrganisationUnitGroups.add("xdnfH7jiCUp");
    goldenOrganisationUnitGroups.add("NAHlpJzIfbi");

    goldenDataSets.add("oMlpyyPeJI1");
    goldenDataSets.add("oaFG0Z4EFHo");
    goldenDataSets.add("lI4BBizJsx0");
}
 
開發者ID:EyeSeeTea,項目名稱:EDSApp,代碼行數:32,代碼來源:PullOKTest.java


注:本文中的org.hisp.dhis.android.sdk.persistence.models.OrganisationUnit.setExternalAccess方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。