Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The product owner wants the user to select from a list of known departments. The application programmer and the OSID implementation developer begin their collaboration. After learning about the Resource OSID, the application programmer adds this code...:

Code Block
titleIteration 1
public class DepartmentStuff {
    private final org.osid.resource.ResourceManager resourceManager;
    private static final String DEPARTMENT_RESOURCE_OSID_IMPL = "edu.school.orgs.OrgResourceManager";
 
    public DepartmentStuff(org.osid.OsidRuntimeManager runtime) {
        this.resourceManager = (org.osid.resource.ResourceManager) runtime.getOsidManager(org.osid.OSID.RESOURCE, DEPARTMENT_RESOURCE_OSID_IMPL, net.okapia.osid.kilimanjaro.OsidVersions.V3_0_0.getVersion()));
        return;
    }
 
    public org.osid.resource.ResourceList getDepartmentsForCurriculum() {
     	return (this.resourceManager.getResourceLookupSession().getResources());
    }
}

...

Let the Iterations Begin!

Seems This solution seems simple enough and the application programmer is please pleased to show the product of his efforts. However, the product owner is not happy, Clearly there are many departments not relevant to the business of creating courses. He The product owner asks to have this list pruned to display so only the applicable departments appear and this time to sort itare displayed and sorted.

First, the application programmer sits down with the OSID implementation programmer to discuss the issue. They decide that Resources should be tagged somehow and stumble upon the genus Type that the OSID implementation programmer can supply and the application programmer can key off of. Looking up and down the hallway, they come up with the following types:

...

Gliffy
size300
nameUpdated Org Example

Looks This is looking better and the OSID implementation programmer is starting to enjoy the agile groove.

...

After swearing at the OSID for not including a State inside the Resource, they look around and begrudgedly try applying apply the Process OSID. Then they find discover that an object might be in multiple states with respect to different Processes. Now they They need to define a Process as well.

...