java.lang.Object
BaseObject
br.usp.ime.xpusp.om.BaseUnit
br.usp.ime.xpusp.om.Unit
- All Implemented Interfaces:
- org.apache.turbine.om.Retrievable
- public class Unit
- extends BaseUnit
This class represents a unit like Institute of Maths...
It can be of 4 sources (ie getSourceId/setSourceId)
- USER 55 if it was inserted by a user
- JUPITER 55 if it was fetched from jupiter
- FENIX 55 if it was fetched from fenix
- JUPITER_FENIX 55 if it was present on both
fenix and jupiter
| Methods inherited from class br.usp.ime.xpusp.om.BaseUnit |
addCourse, addDepartment, copy, getCampus, getCourses, getCourses, getCoursesJoinDepartment, getCoursesJoinSource, getDepartments, getDepartments, getDepartmentsJoinSource, getName, getPrimaryKey, getQueryKey, getSource, getSourceId, getUnitId, initCourses, initDepartments, save, save, setCampus, setName, setPrimaryKey, setQueryKey, setSource, setSourceId, setSourceKey, setUnitId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USER
public static final int USER
- See Also:
- Constant Field Values
JUPITER
public static final int JUPITER
- See Also:
- Constant Field Values
FENIX
public static final int FENIX
- See Also:
- Constant Field Values
JUPITER_FENIX
public static final int JUPITER_FENIX
- See Also:
- Constant Field Values
JUPITER_URL
public static final java.lang.String JUPITER_URL
- See Also:
- Constant Field Values
FENIX_URL
public static final java.lang.String FENIX_URL
- See Also:
- Constant Field Values
Unit
public Unit()
Unit
public Unit(java.lang.String unitIdStr,
java.lang.String name,
int source)
throws java.lang.Exception
- Construct a new Unit
setSourceId
public void setSourceId(int i)
throws java.lang.Exception
- Overrides:
setSourceId in class BaseUnit
getJupiterUnitListUrl
public static java.lang.String getJupiterUnitListUrl()
getFenixUnitListUrl
public static java.lang.String getFenixUnitListUrl()
getJupiterInfoUrl
public java.lang.String getJupiterInfoUrl()
getFenixInfoUrl
public java.lang.String getFenixInfoUrl()
getJupiterCoursesUrl
public java.lang.String getJupiterCoursesUrl()
getJupiterDepartmentUrl
public java.lang.String getJupiterDepartmentUrl()