Examples of AdminRole


Examples of com.tll.model.AdminRole

   *         make a decision.
   */
  public static boolean canSetAsCurrent(ModelKey accountRef, ModelKey parentAccountRef) throws IllegalArgumentException {
    if(accountRef == null || !accountRef.isSet()) throw new IllegalArgumentException("Null or unset account ref");
    final AdminContext ac = getAdminContextCmd().getAdminContext();
    final AdminRole role = ac.getUserRole();
    final SmbizEntityType targetAccountType = (SmbizEntityType) accountRef.getEntityType();
    final ModelKey userAcntRef = ac.getUserAccount().getKey();
    assert userAcntRef != null;
    switch(targetAccountType) {
    case ASP:
View Full Code Here

Examples of org.broadleafcommerce.openadmin.server.security.domain.AdminRole

    AdminSecurityService adminSecurityService;

    @Test(groups =  {"testAdminRoleSave"}, dataProvider = "setupAdminRole", dataProviderClass = AdminRoleDataProvider.class)
    @Rollback(true)
    public void testAdminRoleSave(AdminRole role) throws Exception {
        AdminRole newRole = adminSecurityService.saveAdminRole(role);

        AdminRole roleFromDB = adminSecurityService.readAdminRoleById(newRole.getId());

        assert(roleFromDB != null);
    }
View Full Code Here

Examples of org.broadleafcommerce.openadmin.server.security.domain.AdminRole

import org.testng.annotations.DataProvider;

public class AdminRoleDataProvider {
    @DataProvider(name = "setupAdminRole")
    public static Object[][] createAdminRole() {
        AdminRole adminRole = new AdminRoleImpl();
        adminRole.setName("TestAdminUserRole");
        adminRole.setDescription("Test Admin Role");

        return new Object[][] { new Object[] { adminRole } };
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.