本文整理匯總了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); }});
}
示例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);}});
}
示例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());
}
示例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); }});
}
示例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);}});
}
示例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);
}
示例12: default3NewLocalUser
import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
public ApplicationRole default3NewLocalUser() {
return applicationRoleRepository.findByNameCached(IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME);
}
示例13: EstatioUser_Has_IsisSecurityModuleRegularRole
import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
public EstatioUser_Has_IsisSecurityModuleRegularRole() {
super(EstatioUser.USER_NAME, IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME);
}
示例14: EstatioUserInFrance_Has_IsisSecurityModuleRegularRole
import org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions; //導入依賴的package包/類
public EstatioUserInFrance_Has_IsisSecurityModuleRegularRole() {
super(EstatioUserInFrance.USER_NAME, IsisModuleSecurityRegularUserRoleAndPermissions.ROLE_NAME);
}
示例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