@Override public Signature getCurrentSignature() { Account account = getCurrentAccount(); if (account != null) { return Signature.of(account.getName()); } else { return Signature.none(); } }
public static Project of(NameDescription nameDescription) { return new Project(ID.NONE, nameDescription.getName(), nameDescription.getDescription(), false, Signature.none()); }
public static Branch of(Project project, NameDescriptionState nameDescription) { return new Branch( ID.NONE, nameDescription.getName(), nameDescription.getDescription(), nameDescription.isDisabled(), BranchType.CLASSIC, project, Signature.none() ); }
public static Project of(NameDescriptionState nameDescription) { return new Project(ID.NONE, nameDescription.getName(), nameDescription.getDescription(), nameDescription.isDisabled(), Signature.none()); }
public static PromotionLevel of(Branch branch, NameDescription nameDescription) { Entity.isEntityDefined(branch, "Branch must be defined"); Entity.isEntityDefined(branch.getProject(), "Project must be defined"); return new PromotionLevel(ID.NONE, nameDescription.getName(), nameDescription.getDescription(), branch, false, Signature.none() ); }
public static ValidationStamp of(Branch branch, NameDescription nameDescription) { Entity.isEntityDefined(branch, "Branch must be defined"); Entity.isEntityDefined(branch.getProject(), "Project must be defined"); return new ValidationStamp( ID.NONE, nameDescription.getName(), nameDescription.getDescription(), branch, null, false, Signature.none(), null ); }