public class ProjectContext extends Object implements UniqueIdObjectSequenceProvider
| Constructor and Description |
|---|
ProjectContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addIgnoredError(Exception ex)
Add an error which has been ignored while reading context data.
|
ActivityCodeContainer |
getActivityCodes()
Retrieves the activity code configurations available in this context.
|
ProjectCalendarContainer |
getCalendars()
This method retrieves the calendars available in this context.
|
CostAccountContainer |
getCostAccounts()
Retrieves the cost accounts available in this context.
|
CurrencyContainer |
getCurrencies()
Retrieves the currencies available in this context.
|
CustomFieldContainer |
getCustomFields()
Retrieves the custom fields available in this context.
|
EventManager |
getEventManager()
Retrieve the event manager for this project.
|
ExpenseCategoryContainer |
getExpenseCategories()
Retrieves the expense categories available in this context.
|
List<Exception> |
getIgnoredErrors()
Retrieve a list of errors ignored when reading context data.
|
LocationContainer |
getLocations()
Retrieve the locations available in this context.
|
NotesTopicContainer |
getNotesTopics()
Retrieves the notes topics available in this context.
|
ProjectCodeContainer |
getProjectCodes()
Retrieves the project code configurations available in this context.
|
ProjectConfig |
getProjectConfig()
Retrieve the MPXJ configuration to be used by projects in this context.
|
List<ProjectFile> |
getProjects()
Retrieves a list of the projects represented in this context.
|
ResourceAssignmentCodeContainer |
getResourceAssignmentCodes()
Retrieves the resource assignment code configurations available in this context.
|
ResourceCodeContainer |
getResourceCodes()
Retrieves the resource code configurations available in this context.
|
ResourceContainer |
getResources()
Retrieves a list of resources available in this context.
|
RoleCodeContainer |
getRoleCodes()
Retrieves the role code configurations available in this context.
|
ShiftPeriodContainer |
getShiftPeriods()
Retrieves the shift periods available in this context.
|
ShiftContainer |
getShifts()
Retrieves the shifts available in this context.
|
TimeUnitDefaults |
getTimeUnitDefaults()
Retrieve the time unit defaults to be used when working with projects in this context.
|
ObjectSequence |
getUniqueIdObjectSequence(Class<?> c)
Retrieve the ObjectSequence instance used to generate Unique ID values for a given class.
|
UnitOfMeasureContainer |
getUnitsOfMeasure()
Retrieve the units of measure available in this context.
|
UserDefinedFieldContainer |
getUserDefinedFields()
Retrieves the user defined fields available in this context.
|
WorkContourContainer |
getWorkContours()
Retrieves the work contours available in this context.
|
void |
resetUniqueIdObjectSequence(Class<?> c)
Remove the ObjectSequence for a given class, allowing sequence generation to be restarted.
|
public LocationContainer getLocations()
public UnitOfMeasureContainer getUnitsOfMeasure()
public ExpenseCategoryContainer getExpenseCategories()
public CostAccountContainer getCostAccounts()
public WorkContourContainer getWorkContours()
public NotesTopicContainer getNotesTopics()
public CustomFieldContainer getCustomFields()
public UserDefinedFieldContainer getUserDefinedFields()
public ActivityCodeContainer getActivityCodes()
public ProjectCodeContainer getProjectCodes()
public ResourceCodeContainer getResourceCodes()
public RoleCodeContainer getRoleCodes()
public ResourceAssignmentCodeContainer getResourceAssignmentCodes()
public ShiftContainer getShifts()
public ShiftPeriodContainer getShiftPeriods()
public CurrencyContainer getCurrencies()
public ProjectCalendarContainer getCalendars()
public ResourceContainer getResources()
public List<ProjectFile> getProjects()
public TimeUnitDefaults getTimeUnitDefaults()
public ProjectConfig getProjectConfig()
public void addIgnoredError(Exception ex)
ex - ignored errorpublic List<Exception> getIgnoredErrors()
public EventManager getEventManager()
public ObjectSequence getUniqueIdObjectSequence(Class<?> c)
getUniqueIdObjectSequence in interface UniqueIdObjectSequenceProviderc - target classpublic void resetUniqueIdObjectSequence(Class<?> c)
c - target classCopyright © 2000–2025 MPXJ. All rights reserved.