@Override public void rename(String name, String newName) { Profile profile = ProfileBuilder.Factory.createFrom(profileService.getProfile(name)) .identity(newName) .getProfile(); profileService.createProfile(profile); profileService.deleteProfile(name); }
@Override public Object execute() throws Exception { Profile profile = ProfileBuilder.Factory.create(profileId) .setParents(parents) .getProfile(); profileService.createProfile(profile); return null; }
@Override public Object execute() throws Exception { Profile profile = profileService.getRequiredProfile(profileId); Profile newProfile = ProfileBuilder.Factory.createFrom(profile) .addParents(parentIds) .getProfile(); profileService.updateProfile(newProfile); return null; }
private ProfileBuilder addOptions(ProfileBuilder builder) { builder.setAttributes(self.getAttributes()); builder.setFileConfigurations(getFileConfigurations()); builder.setOverlay(true); return builder; }
@Override public Object execute() throws Exception { profileService.deleteProfile(profileId); return null; }
@Override public void copy(String source, String target) { Profile profile = ProfileBuilder.Factory.createFrom(profileService.getProfile(source)) .identity(target) .getProfile(); profileService.createProfile(profile); }
@Override public void create(String name, List<String> parents) { Profile profile = ProfileBuilder.Factory.create(name) .setParents(parents) .getProfile(); profileService.createProfile(profile); }
@Override public Object execute() throws Exception { Profile profile = profileService.getRequiredProfile(profileId); Profile newProfile = ProfileBuilder.Factory.createFrom(profile) .addParents(parentIds) .getProfile(); profileService.updateProfile(newProfile); return null; }
private ProfileBuilder addOptions(ProfileBuilder builder) { builder.setAttributes(self.getAttributes()); builder.setFileConfigurations(getFileConfigurations()); builder.setOverlay(true); return builder; }
@Override public Object execute() throws Exception { profileService.deleteProfile(profileId); return null; }
@Override public Object execute() throws Exception { Profile profile = ProfileBuilder.Factory.createFrom(profileService.getProfile(source)) .identity(target) .getProfile(); profileService.createProfile(profile); return null; }
@Override public void create(String name, List<String> parents) { Profile profile = ProfileBuilder.Factory.create(name) .setParents(parents) .getProfile(); profileService.createProfile(profile); }
@Override public void delete(String name) { profileService.deleteProfile(name); }
@Override public Object execute() throws Exception { Profile profile = ProfileBuilder.Factory.createFrom(profileService.getProfile(profileName)) .identity(newName) .getProfile(); profileService.createProfile(profile); profileService.deleteProfile(profileName); return null; }
@Override public Object execute() throws Exception { Profile profile = ProfileBuilder.Factory.create(profileId) .setParents(parents) .getProfile(); profileService.createProfile(profile); return null; }
@Override public void delete(String name) { profileService.deleteProfile(name); }
@Override public void rename(String name, String newName) { Profile profile = ProfileBuilder.Factory.createFrom(profileService.getProfile(name)) .identity(newName) .getProfile(); profileService.createProfile(profile); profileService.deleteProfile(name); }
@Override public void copy(String source, String target) { Profile profile = ProfileBuilder.Factory.createFrom(profileService.getProfile(source)) .identity(target) .getProfile(); profileService.createProfile(profile); }
@Override public Object execute() throws Exception { Profile profile = ProfileBuilder.Factory.createFrom(profileService.getProfile(profileName)) .identity(newName) .getProfile(); profileService.createProfile(profile); profileService.deleteProfile(profileName); return null; }
@Override public Object execute() throws Exception { Profile profile = ProfileBuilder.Factory.createFrom(profileService.getProfile(source)) .identity(target) .getProfile(); profileService.createProfile(profile); return null; }