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


Java IsisModuleSecurityRegularUserRoleAndPermissions類代碼示例

本文整理匯總了Java中org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions的典型用法代碼示例。如果您正苦於以下問題:Java IsisModuleSecurityRegularUserRoleAndPermissions類的具體用法?Java IsisModuleSecurityRegularUserRoleAndPermissions怎麽用?Java IsisModuleSecurityRegularUserRoleAndPermissions使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


IsisModuleSecurityRegularUserRoleAndPermissions類屬於org.isisaddons.module.security.seed.scripts包,在下文中一共展示了IsisModuleSecurityRegularUserRoleAndPermissions類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: execute

import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
@Override
protected void execute(ExecutionContext ec) {

    ec.setParameter("username", USER_NAME);

    // teardown
    ec.executeChild(this, new DeleteUserAndUserRolesAndToDoItems());

    // create user
    ec.executeChild(this, new CreateUserFixtureScript());

    // setup roles
    ec.executeChild(this, new UserRolesFixtureScript() {{
        setRoleNames(Arrays.asList(
                // security regular user ('me' service)
                IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME,
                // regular app role
                ToDoAppRegularRoleAndPermissions.ROLE_NAME));
    }});

    // create items
    ec.executeChild(this, new RecreateToDoItemsForCurrentUser() {{ setNumberToCreate(6); setNumberToComplete(4); }});

}
 
開發者ID:isisaddons,項目名稱:isis-app-todoapp,代碼行數:25,代碼來源:RecreateJoeUserAndRolesAndToDoItems.java

示例2: execute

import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
@Override
protected void execute(final ExecutionContext ec) {

    ec.setParameter("username", USER_NAME);

    // teardown
    ec.executeChild(this, new DeleteUserAndUserRolesAndToDoItems());

    // create user
    ec.executeChild(this, new CreateUserFixtureScript());

    // setup roles
    ec.executeChild(this, new UserRolesFixtureScript() {{
        setRoleNames(Arrays.asList(
                // security regular user ('me' service)
                IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME,
                // regular app role
                ToDoAppRegularRoleAndPermissions.ROLE_NAME,
                // dev role (can run fixtures)
                ToDoAppFixtureServiceRoleAndPermissions.ROLE_NAME));
    }});

    // create items
    ec.executeChild(this, new RecreateToDoItemsForCurrentUser() {{setNumberToCreate(12); setNumberToComplete(3);}});
}
 
開發者ID:isisaddons,項目名稱:isis-app-todoapp,代碼行數:26,代碼來源:RecreateDickUserAndRolesAndToDoItems.java

示例3: execute

import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
@Override
protected void execute(ExecutionContext executionContext) {

    // global tenancy
    executionContext.executeChild(this, new GlobalTenancy());

    // security module
    executionContext.executeChild(this, new IsisModuleSecurityAdminRoleAndPermissions());

    executionContext.executeChild(this, new IsisModuleSecurityFixtureRoleAndPermissions());
    executionContext.executeChild(this, new IsisModuleSecurityRegularUserRoleAndPermissions());

    executionContext.executeChild(this, new IsisModuleSecurityAdminUser());

    // isis applib
    executionContext.executeChild(this, new IsisApplibFixtureResultsRoleAndPermissions());
}
 
開發者ID:isisaddons-legacy,項目名稱:isis-module-security,代碼行數:18,代碼來源:SeedUsersAndRolesFixtureScript.java

示例4: execute

import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
@Override
protected void execute(ExecutionContext ec) {

    ec.setParameter("username", USER_NAME);

    // teardown
    ec.executeChild(this, new DeleteUserAndUserRolesAndToDoItems());

    // create user
    ec.executeChild(this, new CreateUserFixtureScript());

    // setup roles
    ec.executeChild(this, new UserRolesFixtureScript() {{
        setRoleNames(Arrays.asList(
                // security regular user ('me' service)
                IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME,
                // regular app role
                ToDoAppRegularRoleAndPermissions.ROLE_NAME,
                // veto certain members
                ToDoAppToDoItemVetoSelectedMembersPermissions.ROLE_NAME)
        );
    }});

    // create items
    ec.executeChild(this, new RecreateToDoItemsForCurrentUser() {{ setNumberToCreate(7); setNumberToComplete(2); }});

}
 
開發者ID:isisaddons,項目名稱:isis-app-todoapp,代碼行數:28,代碼來源:RecreateBillUserAndRolesAndToDoItems.java

示例5: execute

import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
@Override
protected void execute(final ExecutionContext ec) {

    ec.setParameter("username", USER_NAME);

    // teardown
    ec.executeChild(this, new DeleteUserAndUserRolesAndToDoItems());

    // create user
    ec.executeChild(this, new CreateUserFixtureScript());

    // setup roles
    ec.executeChild(this, new UserRolesFixtureScript() {{
        setRoleNames(Arrays.asList(
                // security regular user ('me' service)
                IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME,
                ToDoAppRegularRoleAndPermissions.ROLE_NAME,
                ToDoAppFixtureServiceRoleAndPermissions.ROLE_NAME,
                AuditModuleRoleAndPermissions.ROLE_NAME,
                CommandModuleRoleAndPermissions.ROLE_NAME,
                SessionLoggerModuleRoleAndPermissions.ROLE_NAME,
                SettingsModuleRoleAndPermissions.ROLE_NAME));
    }});

    // create items
    ec.executeChild(this, new RecreateToDoItemsForCurrentUser(){{setNumberToCreate(8); setNumberToComplete(3);}});
}
 
開發者ID:isisaddons,項目名稱:isis-app-todoapp,代碼行數:28,代碼來源:RecreateBobUserAndRolesAndToDoItems.java

示例6: GuestUser_Has_IsisSecurityModuleRegularRole

import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
public GuestUser_Has_IsisSecurityModuleRegularRole() {
    super(GuestUser.USER_NAME, IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME);
}
 
開發者ID:isisaddons-legacy,項目名稱:isis-module-security,代碼行數:4,代碼來源:GuestUser_Has_IsisSecurityModuleRegularRole.java

示例7: BillNonTenantedUser_Has_IsisSecurityModuleRegularRole

import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
public BillNonTenantedUser_Has_IsisSecurityModuleRegularRole() {
    super(BillNonTenantedUser.USER_NAME, IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME);
}
 
開發者ID:isisaddons-legacy,項目名稱:isis-module-security,代碼行數:4,代碼來源:BillNonTenantedUser_Has_IsisSecurityModuleRegularRole.java

示例8: JoeUser_Has_IsisSecurityModuleRegularRole

import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
public JoeUser_Has_IsisSecurityModuleRegularRole() {
    super(JoeUser.USER_NAME, IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME);
}
 
開發者ID:isisaddons-legacy,項目名稱:isis-module-security,代碼行數:4,代碼來源:JoeUser_Has_IsisSecurityModuleRegularRole.java

示例9: DickUser_Has_IsisSecurityModuleRegularRole

import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
public DickUser_Has_IsisSecurityModuleRegularRole() {
    super(DickUser.USER_NAME, IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME);
}
 
開發者ID:isisaddons-legacy,項目名稱:isis-module-security,代碼行數:4,代碼來源:DickUser_Has_IsisSecurityModuleRegularRole.java

示例10: BertTenantedUser_Has_IsisSecurityModuleRegularRole

import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
public BertTenantedUser_Has_IsisSecurityModuleRegularRole() {
    super(BertTenantedUser.USER_NAME, IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME);
}
 
開發者ID:isisaddons-legacy,項目名稱:isis-module-security,代碼行數:4,代碼來源:BertTenantedUser_Has_IsisSecurityModuleRegularRole.java

示例11: default1NewDelegateUser

import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
public ApplicationRole default1NewDelegateUser() {
    return applicationRoleRepository.findByNameCached(IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME);
}
 
開發者ID:isisaddons-legacy,項目名稱:isis-module-security,代碼行數:4,代碼來源:ApplicationUserMenu.java

示例12: default3NewLocalUser

import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
public ApplicationRole default3NewLocalUser() {
    return applicationRoleRepository.findByNameCached(IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME);
}
 
開發者ID:isisaddons-legacy,項目名稱:isis-module-security,代碼行數:4,代碼來源:ApplicationUserMenu.java

示例13: EstatioUser_Has_IsisSecurityModuleRegularRole

import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
public EstatioUser_Has_IsisSecurityModuleRegularRole() {
    super(EstatioUser.USER_NAME, IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME);
}
 
開發者ID:estatio,項目名稱:estatio,代碼行數:4,代碼來源:EstatioUser_Has_IsisSecurityModuleRegularRole.java

示例14: EstatioUserInFrance_Has_IsisSecurityModuleRegularRole

import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
public EstatioUserInFrance_Has_IsisSecurityModuleRegularRole() {
    super(EstatioUserInFrance.USER_NAME, IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME);
}
 
開發者ID:estatio,項目名稱:estatio,代碼行數:4,代碼來源:EstatioUserInFrance_Has_IsisSecurityModuleRegularRole.java

示例15: EstatioUserInNetherlands_Has_IsisSecurityModuleRegularRole

import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
public EstatioUserInNetherlands_Has_IsisSecurityModuleRegularRole() {
    super(EstatioUserInNetherlands.USER_NAME, IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME);
}
 
開發者ID:estatio,項目名稱:estatio,代碼行數:4,代碼來源:EstatioUserInNetherlands_Has_IsisSecurityModuleRegularRole.java


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