public abstract class CRMUI
extends com.crm.businessobject.CRMBase
Constructor and Description |
---|
CRMUI() |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<com.crm.dataobject.CRMDOAttachment> |
addAttachmentButton(com.crm.dataobject.CRMDO mainEntity,
java.lang.String attachmentID,
java.lang.String fileName,
java.lang.String url)
Adds attachments on an entity.
|
java.util.ArrayList<com.crm.dataobject.CRMDOAttachment> |
addExistingAttachmentButton(com.crm.dataobject.CRMDO mainEntity,
java.lang.String attachmentID)
Adds an existing attachment from the library to an entity.
|
java.util.ArrayList<com.crm.dataobject.CRMDOAttachment> |
addExistingAttachmentsButton(com.crm.dataobject.CRMDO mainEntity,
java.util.ArrayList<java.lang.String> attachmentIDs)
Adds a list existing attachments from the library to an entity.
|
java.lang.String |
addTrace(java.lang.Throwable e,
java.lang.String text)
Adds the stack trace string of an exception object to a text message.
|
com.crm.dataobject.CRMDO |
assignEntity(com.crm.dataobject.CRMDO dto)
Assigns an entity to user and/or unit.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
echoDto(java.util.ArrayList<com.crm.dataobject.CRMDO> dtoList)
Returns a list passed into it.
|
com.crm.dataobject.CRMDO |
echoDto(com.crm.dataobject.CRMDO dto)
Returns the object passed into it.
|
com.crm.dataobject.CRMDO |
echoDto(com.crm.dataobject.CRMDO dto,
java.lang.Boolean isModified)
Returns the object passed into it.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
echoDtos(java.util.ArrayList<com.crm.dataobject.CRMDO> dtos)
Returns the objects passed into it.
|
com.crm.framework.main.LookupBuilder |
getAccountsReceivableEntityOptions()
Loads the Accounts Receivable entity options.
|
com.crm.framework.main.LookupBuilder |
getActiveInactiveOptions()
Loads the active/inactive options.
|
com.crm.framework.main.LookupBuilder |
getActiveInactiveOptions(java.lang.String emptyValue)
Loads the active/inactive options.
|
com.crm.framework.main.LookupBuilder |
getAllowedDeniedOptions()
Loads the allowed/denied options.
|
com.crm.framework.main.LookupBuilder |
getAllowedDeniedOptions(java.lang.String emptyValue)
Loads the allowed/denied options.
|
com.crm.framework.main.LookupBuilder |
getApplicationOptions() |
com.crm.framework.main.LookupBuilder |
getArchiveDataEntityOptions()
Loads the Archive entity options.
|
com.crm.framework.main.LookupBuilder |
getArchiveDataEntityOptions(java.lang.String emptyValue)
Loads the Archive entity options.
|
com.crm.framework.main.LookupBuilder |
getArchiveEntityOptions()
Loads the Archive entity options.
|
com.crm.framework.main.LookupBuilder |
getArchiveEntityOptions(java.lang.String emptyValue)
Loads the Archive entity options.
|
com.crm.framework.main.LookupBuilder |
getAssignableEntityOptions()
Loads the assignable entity options.
|
java.lang.String |
getCurrentDateString()
Calculates the current date.
|
java.lang.String |
getCurrentDay()
Calculates the current day.
|
java.lang.String |
getCurrentMonth()
Calculates the current month.
|
java.lang.String |
getCurrentYear()
Calculates the current month.
|
com.crm.framework.main.LookupBuilder |
getDayOfWeekOptions()
Loads the day of week options.
|
com.crm.framework.main.LookupBuilder |
getDayOfWeekOptions(java.lang.String emptyValue)
Loads the day of week options.
|
com.crm.dataobject.CRMDO |
getDtoFromCollection(java.util.Set<com.crm.dataobject.CRMDO> dtoCollection,
java.lang.String id)
Returns a data object from a collection based on an id.
|
com.crm.framework.main.LookupBuilder |
getEntityCategoryOptions(java.lang.String entityID)
Loads the entity category options.
|
com.crm.framework.main.LookupBuilder |
getEntityFieldOptions(java.lang.String entityID)
Loads the entity field options.
|
com.crm.framework.main.LookupBuilder |
getEntityOptions()
Loads the entity options.
|
com.crm.framework.main.LookupBuilder |
getEntityStateOptions(java.lang.String entityID)
Loads the entity life cycle state options.
|
com.crm.framework.main.LookupBuilder |
getEntityStatusOptions(java.lang.String entityID)
Loads the entity status options.
|
com.crm.framework.main.LookupBuilder |
getEntityTypeOptions(java.lang.String entityID)
Loads the entity type options.
|
com.crm.framework.main.LookupBuilder |
getExplicitViewingAccessEntityOptions()
Loads the explicit viewing access entity options.
|
com.crm.framework.main.LookupBuilder |
getHourOptions()
Loads the hour options.
|
com.crm.framework.main.LookupBuilder |
getHourOptions(java.lang.String emptyValue)
Loads the hour options.
|
com.crm.framework.main.LookupBuilder |
getImplicitViewingAccessEntityOptions()
Loads the implicit viewing access entity options.
|
com.crm.framework.main.LookupBuilder |
getModuleOptions()
Loads the module options.
|
com.crm.framework.main.LookupBuilder |
getModulePrintoutOptions(java.lang.String entityID)
Loads the module printout options.
|
com.crm.framework.main.LookupBuilder |
getModuleProcessOptions(java.lang.String entityID)
Loads the module process options.
|
java.lang.String |
getMonthEndDate()
Calculates the current month's end date.
|
java.lang.String |
getMonthStartDate()
Calculates the current month's start date.
|
com.crm.framework.main.LookupBuilder |
getOperatorOptions()
Loads the operator options.
|
com.crm.framework.main.LookupBuilder |
getOperatorOptions(java.lang.String emptyValue)
Loads the operator options.
|
com.crm.framework.main.LookupBuilder |
getStateOptions()
Loads a builder of states.
|
com.crm.framework.main.LookupBuilder |
getStringFormattingOptions()
Loads the string formatting options.
|
com.crm.framework.main.LookupBuilder |
getStringFormattingOptions(java.lang.String emptyValue)
Loads the string formatting options.
|
com.crm.framework.main.LookupBuilder |
getTimeOfDayOptions()
Loads the time of day options.
|
com.crm.framework.main.LookupBuilder |
getTimeOfDayOptions(java.lang.String emptyValue)
Loads the time of day options.
|
com.crm.framework.main.LookupBuilder |
getTrueFalseOptions()
Loads the true/false options.
|
com.crm.framework.main.LookupBuilder |
getTrueFalseOptions(java.lang.String emptyValue)
Loads the true/false options.
|
com.crm.framework.main.LookupBuilder |
getUnitOfTimeOptions()
Loads the unit of time options.
|
com.crm.framework.main.LookupBuilder |
getUnitOfTimeOptions(java.lang.String emptyValue)
Loads the unit of time options.
|
java.lang.String |
getWeekEndDate()
Calculates the current week's end date.
|
java.lang.String |
getWeekStartDate()
Calculates the current week's start date.
|
com.crm.framework.main.LookupBuilder |
getYesNoOptions()
Loads the yes/no options.
|
com.crm.framework.main.LookupBuilder |
getYesNoOptions(java.lang.String emptyValue)
Loads the yes/no options.
|
java.lang.Object |
invoke(java.lang.String jndi,
java.lang.String functionName,
java.lang.Object[] paramValues,
com.crm.businessobject.CRMSession ejbSessionHandle)
Executes an EJB function.
|
com.crm.dataobject.CRMDO |
load(com.crm.dataobject.CRMDO dto)
Loads a data object.
|
java.util.ArrayList<java.lang.Object> |
loadAchivedData(java.lang.String achivedDataID)
Reads the file of the attachment.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadAttachmentsTab(com.crm.dataobject.CRMDO mainEntity)
Loads a list of attachments associated to an entity.
|
com.crm.framework.main.LookupBuilder |
loadDaysOfMonthOptions() |
com.crm.framework.main.LookupBuilder |
loadDaysOfMonthOptions(java.lang.String emptyValue)
Loads the days of month options.
|
com.crm.dataobject.CRMDO |
loadEntityAttributeTranslations(com.crm.dataobject.CRMDO dto,
java.lang.String attribute) |
com.crm.framework.main.LookupBuilder |
loadMonthNumberOptions()
Loads the month (number) options.
|
com.crm.framework.main.LookupBuilder |
loadMonthNumberOptions(java.lang.String emptyValue)
Loads the month (number) options.
|
com.crm.framework.main.LookupBuilder |
loadMonthOptions()
Loads the month options.
|
com.crm.framework.main.LookupBuilder |
loadMonthOptions(java.lang.String emptyValue)
Loads the month options.
|
java.util.ArrayList<java.lang.Object> |
readFileContent(java.lang.String attachmentID)
Reads the file of the attachment.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
removeAttachmentButton(java.util.ArrayList<com.crm.dataobject.CRMDO> attachments)
Removes a list of attachments from an entity.
|
com.crm.dataobject.CRMDO |
setDefaultLanguage(com.crm.dataobject.CRMDO dto) |
void |
setDtoAsNotEditable(java.util.ArrayList<com.crm.dataobject.CRMDO> dtoList)
Sets a list of data objects as non editable.
|
void |
setDtoAsNotModified(java.util.ArrayList<com.crm.dataobject.CRMDO> dtoList)
Sets a list of data objects as non editable.
|
com.crm.dataobject.CRMDO |
setLanguageTranslations(com.crm.dataobject.CRMDO dto) |
com.crm.dataobject.CRMDO |
setMandatoryField(com.crm.dataobject.CRMDO dto,
java.lang.String xPath,
java.lang.String value) |
void |
setMandatoryFields(com.crm.dataobject.ViewObject viewObject) |
com.crm.dataobject.CRMDO |
setOwnerGroup(com.crm.dataobject.CRMDO dto)
Sets the owner group of a data object.
|
public com.crm.dataobject.CRMDO echoDto(com.crm.dataobject.CRMDO dto) throws java.lang.Exception
dto
- - the data object to returnjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> echoDtos(java.util.ArrayList<com.crm.dataobject.CRMDO> dtos) throws java.lang.Exception
dtos
- - an array list of data objects to returnjava.lang.Exception
public com.crm.dataobject.CRMDO echoDto(com.crm.dataobject.CRMDO dto, java.lang.Boolean isModified) throws java.lang.Exception
dto
- - the data object to returnisModified
- - a boolean indicating if the data object has any values changed or notjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> echoDto(java.util.ArrayList<com.crm.dataobject.CRMDO> dtoList) throws java.lang.Exception
dtoList
- - a list to returnjava.lang.Exception
public java.lang.Object invoke(java.lang.String jndi, java.lang.String functionName, java.lang.Object[] paramValues, com.crm.businessobject.CRMSession ejbSessionHandle) throws java.lang.Exception
invoke
in class com.crm.businessobject.CRMBase
jndi
- - the java naming and directory interfacefunctionName
- - a function nameparamValues
- - an array of parametersejbSessionHandle
- - an EJB session handlejava.lang.Exception
public java.lang.String addTrace(java.lang.Throwable e, java.lang.String text)
e
- - a throwable objecttext
- - a text message to add to the tracepublic com.crm.framework.main.LookupBuilder getUnitOfTimeOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getUnitOfTimeOptions(java.lang.String emptyValue) throws java.lang.Exception
emptyValue
- - a string value that will be displayed in the empty value of the selecy boxjava.lang.Exception
public com.crm.dataobject.CRMDO load(com.crm.dataobject.CRMDO dto) throws java.lang.Exception
dto
- - the data object to loadjava.lang.Exception
public com.crm.framework.main.LookupBuilder loadDaysOfMonthOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder loadDaysOfMonthOptions(java.lang.String emptyValue) throws java.lang.Exception
emptyValue
- - an empty value optionjava.lang.Exception
public com.crm.framework.main.LookupBuilder loadMonthOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder loadMonthOptions(java.lang.String emptyValue) throws java.lang.Exception
emptyValue
- - an empty value for a month optionjava.lang.Exception
public com.crm.framework.main.LookupBuilder loadMonthNumberOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder loadMonthNumberOptions(java.lang.String emptyValue) throws java.lang.Exception
emptyValue
- - an empty value for a month (number) optionjava.lang.Exception
public com.crm.framework.main.LookupBuilder getModuleOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getEntityOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getAssignableEntityOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getArchiveEntityOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getArchiveEntityOptions(java.lang.String emptyValue) throws java.lang.Exception
emptyValue
- - an empty value optionjava.lang.Exception
public com.crm.framework.main.LookupBuilder getArchiveDataEntityOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getArchiveDataEntityOptions(java.lang.String emptyValue) throws java.lang.Exception
emptyValue
- - an empty value optionjava.lang.Exception
public com.crm.framework.main.LookupBuilder getExplicitViewingAccessEntityOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getImplicitViewingAccessEntityOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getAccountsReceivableEntityOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getEntityTypeOptions(java.lang.String entityID) throws java.lang.Exception
entityID
- - an entity id as it is defined in metadatajava.lang.Exception
public com.crm.framework.main.LookupBuilder getEntityStatusOptions(java.lang.String entityID) throws java.lang.Exception
entityID
- - an entity id as it is defined in metadatajava.lang.Exception
public com.crm.framework.main.LookupBuilder getEntityStateOptions(java.lang.String entityID) throws java.lang.Exception
entityID
- - an entity id as it is defined in metadatajava.lang.Exception
public com.crm.framework.main.LookupBuilder getEntityCategoryOptions(java.lang.String entityID) throws java.lang.Exception
entityID
- - an entity id as it is defined in metadatajava.lang.Exception
public com.crm.framework.main.LookupBuilder getEntityFieldOptions(java.lang.String entityID) throws java.lang.Exception
entityID
- - an entity id as it is defined in metadatajava.lang.Exception
public com.crm.framework.main.LookupBuilder getModulePrintoutOptions(java.lang.String entityID) throws java.lang.Exception
entityID
- - the id of the entity to get the module printout options fromjava.lang.Exception
public com.crm.framework.main.LookupBuilder getModuleProcessOptions(java.lang.String entityID) throws java.lang.Exception
entityID
- - the entity id as it is defined in metadatajava.lang.Exception
public com.crm.dataobject.CRMDO assignEntity(com.crm.dataobject.CRMDO dto) throws java.lang.Exception
dto
- - a data object to assign an entity tojava.lang.Exception
public com.crm.framework.main.LookupBuilder getYesNoOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getYesNoOptions(java.lang.String emptyValue) throws java.lang.Exception
emptyValue
- - an empty value for a yes/no optionjava.lang.Exception
public com.crm.framework.main.LookupBuilder getTrueFalseOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getTrueFalseOptions(java.lang.String emptyValue) throws java.lang.Exception
emptyValue
- - an empty value for a true/false optionjava.lang.Exception
public com.crm.framework.main.LookupBuilder getActiveInactiveOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getActiveInactiveOptions(java.lang.String emptyValue) throws java.lang.Exception
emptyValue
- - an empty value for an active/inactive optionjava.lang.Exception
public com.crm.framework.main.LookupBuilder getAllowedDeniedOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getAllowedDeniedOptions(java.lang.String emptyValue) throws java.lang.Exception
emptyValue
- - an empty valuejava.lang.Exception
public com.crm.framework.main.LookupBuilder getStateOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.dataobject.CRMDO setOwnerGroup(com.crm.dataobject.CRMDO dto) throws java.lang.Exception
dto
- - a data object to set an owner group tojava.lang.Exception
public void setDtoAsNotEditable(java.util.ArrayList<com.crm.dataobject.CRMDO> dtoList)
dtoList
- - a list of data objects to set as non editablepublic void setDtoAsNotModified(java.util.ArrayList<com.crm.dataobject.CRMDO> dtoList)
dtoList
- - a list of data objects to set as non modifiedpublic com.crm.framework.main.LookupBuilder getOperatorOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getOperatorOptions(java.lang.String emptyValue) throws java.lang.Exception
emptyValue
- - an empty value for an operatorjava.lang.Exception
public java.util.ArrayList<java.lang.Object> loadAchivedData(java.lang.String achivedDataID) throws java.lang.Exception
achivedDataID
- - the archived data idjava.lang.Exception
public java.util.ArrayList<java.lang.Object> readFileContent(java.lang.String attachmentID) throws java.lang.Exception
attachmentID
- - the attachment idjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadAttachmentsTab(com.crm.dataobject.CRMDO mainEntity) throws java.lang.Exception
mainEntity
- - the entity the attachments are relatedjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDOAttachment> addAttachmentButton(com.crm.dataobject.CRMDO mainEntity, java.lang.String attachmentID, java.lang.String fileName, java.lang.String url) throws java.lang.Exception
mainEntity
- - the entity data object related with the attachmentattachmentID
- - the attachment Identifier (only in case the attachment is a file)fileName
- - the file name of the attachment (only in case the attachment is a file)url
- - the URL of the attachment (only in case the attachment is a URL)java.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDOAttachment> addExistingAttachmentButton(com.crm.dataobject.CRMDO mainEntity, java.lang.String attachmentID) throws java.lang.Exception
mainEntity
- - the entity data object related with the attachmentattachmentID
- - the attachment Identifierjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDOAttachment> addExistingAttachmentsButton(com.crm.dataobject.CRMDO mainEntity, java.util.ArrayList<java.lang.String> attachmentIDs) throws java.lang.Exception
mainEntity
- - the entity data object related with the attachmentattachmentIDs
- - the attachment Identifiersjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> removeAttachmentButton(java.util.ArrayList<com.crm.dataobject.CRMDO> attachments) throws java.lang.Exception
attachments
- - a list of attachments to deletejava.lang.Exception
public com.crm.dataobject.CRMDO getDtoFromCollection(java.util.Set<com.crm.dataobject.CRMDO> dtoCollection, java.lang.String id) throws java.lang.Exception
dtoCollection
- - a set of data objectsid
- - the data object id to checkjava.lang.Exception
public com.crm.framework.main.LookupBuilder getTimeOfDayOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getTimeOfDayOptions(java.lang.String emptyValue) throws java.lang.Exception
emptyValue
- - an empty value for a time of day optionjava.lang.Exception
public com.crm.framework.main.LookupBuilder getDayOfWeekOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getDayOfWeekOptions(java.lang.String emptyValue) throws java.lang.Exception
emptyValue
- - an empty value for a day of weekjava.lang.Exception
public com.crm.framework.main.LookupBuilder getHourOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getHourOptions(java.lang.String emptyValue) throws java.lang.Exception
emptyValue
- - an empty value for an hour optionjava.lang.Exception
public java.lang.String getWeekStartDate() throws java.lang.Exception
java.lang.Exception
public java.lang.String getMonthStartDate() throws java.lang.Exception
java.lang.Exception
public java.lang.String getCurrentDateString() throws java.lang.Exception
java.lang.Exception
public java.lang.String getWeekEndDate() throws java.lang.Exception
java.lang.Exception
public java.lang.String getMonthEndDate() throws java.lang.Exception
java.lang.Exception
public java.lang.String getCurrentDay() throws java.lang.Exception
java.lang.Exception
public java.lang.String getCurrentMonth() throws java.lang.Exception
java.lang.Exception
public java.lang.String getCurrentYear() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getStringFormattingOptions() throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getStringFormattingOptions(java.lang.String emptyValue) throws java.lang.Exception
emptyValue
- - an empty value for a day of weekjava.lang.Exception
public com.crm.dataobject.CRMDO setMandatoryField(com.crm.dataobject.CRMDO dto, java.lang.String xPath, java.lang.String value) throws java.lang.Exception
java.lang.Exception
public com.crm.framework.main.LookupBuilder getApplicationOptions() throws java.lang.Exception
java.lang.Exception
public void setMandatoryFields(com.crm.dataobject.ViewObject viewObject) throws java.lang.Exception
java.lang.Exception
public com.crm.dataobject.CRMDO setDefaultLanguage(com.crm.dataobject.CRMDO dto) throws java.lang.Exception
java.lang.Exception
public com.crm.dataobject.CRMDO setLanguageTranslations(com.crm.dataobject.CRMDO dto) throws java.lang.Exception
java.lang.Exception
public com.crm.dataobject.CRMDO loadEntityAttributeTranslations(com.crm.dataobject.CRMDO dto, java.lang.String attribute) throws java.lang.Exception
java.lang.Exception