public PermissionTarget asPermissionTarget() { return new PermissionTarget( PermissionTargetType.ACCOUNT, id(), getName(), getFullName() ); } }
public AccountGroup withProjectRoles(Collection<ProjectRoleAssociation> projectRoleAssociations) { checkLock(); authorisations = authorisations.withProjectRoles(projectRoleAssociations); return this; }
public PermissionTarget asPermissionTarget() { return new PermissionTarget( PermissionTargetType.GROUP, id(), getName(), getDescription() ); } }
/** * Gets the form for the creation of a mapping */ @RequestMapping(value = "ldap-mapping/create", method = RequestMethod.GET) public Form getMappingCreationForm() { securityService.checkGlobalFunction(AccountGroupManagement.class); return AccountGroupMapping.form( accountService.getAccountGroups() ); }
/** * Gets the form to update a mapping */ @RequestMapping(value = "ldap-mapping/{id}/update", method = RequestMethod.GET) public Form getMappingUpdateForm(@PathVariable ID id) { securityService.checkGlobalFunction(AccountGroupManagement.class); return accountGroupMappingService.getMapping(LDAPExtensionFeature.LDAP_GROUP_MAPPING, id).asForm( accountService.getAccountGroups() ); }
public static AuthenticatedAccount of(Account account) { return new AuthenticatedAccount(account, new AccountUserDetails(account)); }
public T with(int projectId, Class<? extends ProjectFunction> fn) { account.withProjectRole( new ProjectRoleAssociation( projectId, new ProjectRole( "test", "Test", "", Collections.singleton(fn) ) ) ); //noinspection unchecked return (T) this; }
public Account withProjectRoles(Collection<ProjectRoleAssociation> projectRoleAssociations) { checkLock(); authorisations = authorisations.withProjectRoles(projectRoleAssociations); return this; }
public Account withGlobalRole(Optional<GlobalRole> globalRole) { checkLock(); authorisations = authorisations.withGlobalRole(globalRole); return this; }
public Account withProjectRole(ProjectRoleAssociation projectRoleAssociation) { checkLock(); authorisations = authorisations.withProjectRole(projectRoleAssociation); return this; }
public static AccountGroup of(String name, String description) { return new AccountGroup( ID.NONE, name, description, Authorisations.none(), false); }
public AccountGroup withProjectRole(ProjectRoleAssociation projectRoleAssociation) { checkLock(); authorisations = authorisations.withProjectRole(projectRoleAssociation); return this; }
public AccountGroup withGlobalRole(Optional<GlobalRole> globalRole) { checkLock(); authorisations = authorisations.withGlobalRole(globalRole); return this; }
public AccountGroup withId(ID id) { checkLock(); return new AccountGroup( id, name, description, authorisations, locked ); }
/** * Management of groups and accounts. */ @CoreFunction public interface AccountGroupManagement extends GlobalFunction { }
public AccountGroup lock() { return new AccountGroup( id, name, description, authorisations, true ); }
/** * Management of groups and accounts. */ @CoreFunction public interface AccountManagement extends AccountGroupManagement, GlobalFunction { }
/** * Right to edit the configuration of a {@link net.nemerosa.ontrack.model.structure.Build}. */ @CoreFunction public interface BuildConfig extends ProjectView { }
/** * Management of filters for a branch. */ @CoreFunction public interface BranchFilterMgt extends ProjectView { }