当前位置: 首页>>代码示例>>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;未经允许,请勿转载。