@Override public OrgAuthorizationScope getParent() { Date now = new Date(); Organization parent = organization.getParent(now); if (parent == null) { return null; } return of(parent); }
@Override public Set<OrgAuthorizationScope> getChildren() { Date now = new Date(); Set<OrgAuthorizationScope> results = new HashSet<OrgAuthorizationScope>(); for (Organization child : organization.getChildren(now)) { results.add(of(child)); } return results; }
public OrgAuthorizationScope(Organization organization) { super(organization.getName()); this.organization = organization; }