| java.lang.Object org.openharmonise.rm.resources.AbstractObject org.openharmonise.rm.resources.AbstractEditableObject org.openharmonise.rm.resources.AbstractProfiledObject
All known Subclasses: org.openharmonise.rm.resources.AbstractChildObject, org.openharmonise.rm.tasks.Task,
DEFAULT_PROFILE_NAME | final public static String DEFAULT_PROFILE_NAME(Code) | | The default profile name
|
m_profiles | protected Map m_profiles(Code) | | Map of all profiles this profiled object has. The profiles are
keyed by their name field
|
m_profiles2Remove | protected List m_profiles2Remove(Code) | | List of profiles to be removed during the next save() operation
|
m_sDefaultKey | protected String m_sDefaultKey(Code) | | The Map key of the default profile
|
AbstractProfiledObject | public AbstractProfiledObject()(Code) | | Constructs a new or anonymous resource without an interface
to the database
|
AbstractProfiledObject | public AbstractProfiledObject(AbstractDataStoreInterface dbintrf)(Code) | | Constructor for a new or anonymous resource.
Parameters: dbintrf - the data store interface |
AbstractProfiledObject | public AbstractProfiledObject(AbstractDataStoreInterface dbintrf, int nId)(Code) | | Standard constructor for an existing resource,
registering an AbstractDataStoreInterface to use
with all database communications.
Parameters: dbintrf - the interface to the database Parameters: nId - the id of the resource |
AbstractProfiledObject | public AbstractProfiledObject(AbstractDataStoreInterface dbintrf, int nId, int nKey, boolean bIsHist)(Code) | | Standard constructor for an existing resource which may be historical.
Parameters: dbintrf - the interface to the database Parameters: nId - the id of the resource Parameters: nKey - the unique key of the resource Parameters: bIsHist - true if the resource is historical |
clear | public void clear()(Code) | | |
getProfile | public Profile getProfile(String sName) throws DataAccessException(Code) | | Returns the Profile of this object
with the specified name.
Parameters: sName - the name of the profile the profile with the specified name throws: DataAccessException - if an error occurs populating this object |
ignoreProfileRestrictions | public void ignoreProfileRestrictions(boolean bIgnore)(Code) | | Sets whether to allow object to have status approved even if profile
restrictions have been broken.
Parameters: bIgnore - true if profile restrictoins areto ignored during a change of status |
isDefaultProfile | public boolean isDefaultProfile(Profile prof)(Code) | | Returns true if the specified profile is this object's
default profile.
Parameters: prof - the profile to test default status on true if the specified profile is the default |
isProfileLoaded | protected boolean isProfileLoaded(String sName)(Code) | | Returns true if object contains a profile of the
specified name.
Parameters: sName - the name of a profile true if object contains a profile of the specified name |
removeProfile | public void removeProfile(String sProfile) throws DataAccessException(Code) | | Removes the specified Profile from this object.
Parameters: sProfile - the Profile to remove throws: DataAccessException - if there was an error populating this object |
setHistorical | public void setHistorical(boolean bIsHistorical)(Code) | | |
setProfiles | protected void setProfiles(List profiles) throws InvalidProfileException(Code) | | Set the profiles of this object.
Parameters: profiles - the list profiles throws: InvalidProfileException - if an invalid profile is found in the list,for example if a profile does not have a valid name |
setProfiles | protected void setProfiles(Map profiles)(Code) | | Sets the profiles of this object.
Parameters: profiles - a Map of profiles |
setProfilesHistorical | protected void setProfilesHistorical(boolean bIsHistorical)(Code) | | Sets whether all profiles are historical.
Parameters: bIsHistorical - true of all profiles are to be historical |
Methods inherited from org.openharmonise.rm.resources.AbstractEditableObject | public void acquireEditWriteLock() throws EditException(Code)(Java Doc) protected void addColumnsToPopulateQuery(SelectStatement select, boolean bIsHist) throws DataStoreException(Code)(Java Doc) protected void addDataToSave(InsertStatement insert) throws DataStoreException(Code)(Java Doc) public void addEditEventListener(EditEventListener listener)(Code)(Java Doc) public Editable archive() throws EditException(Code)(Java Doc) public Editable changeStatus(Status status) throws EditException(Code)(Java Doc) public void clear()(Code)(Java Doc) public Object clone()(Code)(Java Doc) public Editable createNewVersion() throws EditException(Code)(Java Doc) protected void delete(boolean bDeleteHist) throws DataStoreException, DataAccessException, EditException, PopulateException(Code)(Java Doc) public List getAllVersions() throws DataAccessException(Code)(Java Doc) public static ColumnRef getColumnRef(String sClassname, String sColumn, boolean bHist) throws DataStoreException(Code)(Java Doc) public String getDisplayName() throws DataAccessException(Code)(Java Doc) public List getHistoricalVersions() throws DataAccessException(Code)(Java Doc) public java.util.Date getHistoryDate() throws DataAccessException(Code)(Java Doc) public ColumnRef getInstanceColumnRef(String sColumn, boolean bIsHist) throws DataStoreException(Code)(Java Doc) public Editable getLiveVersion() throws DataAccessException(Code)(Java Doc) public User getLockOwner() throws DataAccessException(Code)(Java Doc) public int getLockUserId() throws DataAccessException(Code)(Java Doc) public static ColumnRef getObjectColumnRef(String sTable, String sColumn) throws DataStoreException(Code)(Java Doc) public List getPendingVersions() throws DataAccessException(Code)(Java Doc) public Status getStatus() throws DataAccessException(Code)(Java Doc) public String getVersionComment() throws DataAccessException(Code)(Java Doc) public java.util.Date getVersionDate() throws DataAccessException(Code)(Java Doc) public int getVersionNumber() throws DataAccessException(Code)(Java Doc) protected boolean isKeySupported()(Code)(Java Doc) public boolean isLiveVersion() throws DataAccessException(Code)(Java Doc) protected boolean isLockThread()(Code)(Java Doc) public boolean isLocked() throws DataAccessException(Code)(Java Doc) public boolean isPendingVersion() throws DataAccessException(Code)(Java Doc) public synchronized void lock(User usr) throws EditException(Code)(Java Doc) public void populate(Element xmlElement, State state) throws PopulateException(Code)(Java Doc) protected void populateFromResultSetRow(ResultSet rs, SelectStatement select) throws PopulateException(Code)(Java Doc) public Element publish(Element topEl, HarmoniseOutput xmlDoc, State state) throws PublishException(Code)(Java Doc) public Editable reactivate() throws EditException(Code)(Java Doc) public void releaseEditWriteLock()(Code)(Java Doc) public void removeEditEventListener(EditEventListener listener)(Code)(Java Doc) public Editable save() throws EditException(Code)(Java Doc) abstract protected void saveCoreData() throws EditException(Code)(Java Doc) abstract protected void saveNonCoreData() throws EditException(Code)(Java Doc) public void setDisplayName(String sDisplayName)(Code)(Java Doc) public void setVersionComment(String sVersionComment)(Code)(Java Doc) public void unlock(User usr) throws EditException(Code)(Java Doc) protected void update() throws DataStoreException, EditException(Code)(Java Doc) protected void updateDBStatus() throws PopulateException(Code)(Java Doc) public void workflowObjectArchived(EditEvent event)(Code)(Java Doc) public void workflowObjectLocked(EditEvent event)(Code)(Java Doc) public void workflowObjectReactivated(EditEvent event)(Code)(Java Doc) public void workflowObjectSaved(EditEvent event)(Code)(Java Doc) public void workflowObjectStatusChanged(EditEvent event)(Code)(Java Doc) public void workflowObjectUnlocked(EditEvent event)(Code)(Java Doc)
|
Methods inherited from org.openharmonise.rm.resources.AbstractObject | public void addCacheListener(CacheListener listener)(Code)(Java Doc) protected void addColumnsToPopulateQuery(SelectStatement select, boolean bIsHist) throws DataStoreException(Code)(Java Doc) public void clear()(Code)(Java Doc) public Object clone()(Code)(Java Doc) public int compareTo(Object obj)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public boolean exists()(Code)(Java Doc) protected void fullPopulate() throws PopulateException(Code)(Java Doc) public List getCacheListeners()(Code)(Java Doc) public static ColumnRef getColumnRef(AbstractObject obj, String sColumn) throws DataStoreException(Code)(Java Doc) public static ColumnRef getColumnRef(String sClassname, String sColumn) throws DataStoreException(Code)(Java Doc) public static ColumnRef getColumnRef(String sClassname, String sColumn, boolean bHist) throws DataStoreException(Code)(Java Doc) protected static Collection getCoreColumnRefs(String sClassname) throws DataStoreException(Code)(Java Doc) abstract public String getDBTableName()(Code)(Java Doc) public AbstractDataStoreInterface getDataStoreInterface()(Code)(Java Doc) protected String getHistoricalDBTableName()(Code)(Java Doc) public int getId()(Code)(Java Doc) public ColumnRef getInstanceColumnRef(String sColumn, boolean bIsHist) throws DataStoreException(Code)(Java Doc) public int getKey() throws DataAccessException(Code)(Java Doc) public String getName() throws DataAccessException(Code)(Java Doc) protected static ColumnRef getObjectColumnRef(String sDBTable, String sColumn) throws DataStoreException(Code)(Java Doc) public String getSummary() throws DataAccessException(Code)(Java Doc) public static String getTableName(String sClassname, boolean bHist) throws DataStoreException(Code)(Java Doc) protected String getTableName(boolean bIsHist)(Code)(Java Doc) public String getType() throws DataAccessException(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean isChanged() throws DataAccessException(Code)(Java Doc) public boolean isHistorical()(Code)(Java Doc) abstract protected boolean isKeySupported()(Code)(Java Doc) protected boolean isPopulated()(Code)(Java Doc) protected void markAsNew() throws PopulateException(Code)(Java Doc) public void notifyCacheListeners()(Code)(Java Doc) public void populate(Element xmlElement, State state) throws PopulateException(Code)(Java Doc) protected synchronized void populateFromDatabase() throws PopulateException(Code)(Java Doc) protected void populateFromResultSetRow(ResultSet rs, SelectStatement select) throws PopulateException(Code)(Java Doc) public Element publish(Template template, HarmoniseOutput xmlDoc, State state) throws PublishException(Code)(Java Doc) public Element publish(Element topEl, HarmoniseOutput xmlDoc, State state) throws PublishException(Code)(Java Doc) public void removeCacheListener(CacheListener listener)(Code)(Java Doc) public void setDataStoreInterface(AbstractDataStoreInterface dsi) throws PopulateException(Code)(Java Doc) public void setHistorical(boolean bIsHistorical)(Code)(Java Doc) public void setId(int nId)(Code)(Java Doc) public void setIsChanged(boolean bIsChanged)(Code)(Java Doc) public void setKey(int nKey)(Code)(Java Doc) public void setName(String sName) throws InvalidNameException(Code)(Java Doc) public void setSummary(String sSummary)(Code)(Java Doc) public void setType(String type)(Code)(Java Doc)
|
|
|