|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.svc.repository.service.BaseService
atg.svc.repository.service.KnowledgeBaseService
atg.svc.repository.service.SolutionService
@Service(requiredProperties={"attachmentUtils","segmentService","siteConfiguration","solutionMetadataService","solutionRedirectService","solutionScoringService","solutionScoringUtils","solutionValidationUtils","topicService","transactionalFragmentService","userOptionService","versionedKnowledgeHomesFactory","viewedAnswerService"}) public class SolutionService
Business methods for the Solution object.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
EMPTY_STRING
|
static java.lang.String[] |
EMPTY_STRING_ARRAY
|
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
SolutionService()
|
Method Summary | |
---|---|
void |
addTopic(java.lang.String pTopicId,
atg.svc.repository.beans.Solution pSolution)
Adds a topic to a solution. |
void |
clearSolutionExternalAudience(atg.svc.repository.beans.Solution pSolution)
Clears the all of the segments from the Solution's external audience property. |
java.lang.String |
computeTitle(atg.svc.repository.beans.Solution pSolution)
Computes the title for the given Solution. |
atg.svc.repository.beans.Solution |
copySolution(atg.svc.repository.beans.Solution pSrcSolution)
Copies the data from the given Solution into a brand new Solution. |
atg.svc.repository.beans.Solution |
createSolution(atg.svc.repository.beans.SolutionClass pSolutionClass)
Creates a new solution repository bean object from the given solution class. |
atg.svc.repository.beans.Solution |
createSolution(atg.svc.repository.beans.SolutionClass pSolutionClass,
SolutionHomes pHomes)
Creates a new Solution object from the given SolutionClass object from the given SolutionHomes. |
atg.svc.repository.beans.Solution |
createSolution(java.lang.String pSolutionClassId)
Creates a new solution repository bean object from the given solution class id. |
atg.svc.repository.beans.Solution |
createSolution(java.lang.String pSolutionClassId,
SolutionHomes pHomes)
Creates a new Solution object from the given SolutionClass object from the given SolutionHomes. |
atg.svc.repository.beans.Solution |
createSolutionBean(atg.svc.repository.beans.SolutionClass pSolutionClass)
Creates a Solution in-memory bean that is not connected to the repository. |
atg.svc.repository.beans.Solution |
createSolutionBean(java.lang.String pSolutionClassId)
Creates a Solution in-memory bean that is not connected to the repository. |
SolutionFieldValue |
createSolutionFieldValue(atg.svc.repository.beans.FieldDefinition pFieldDefinition)
Creates a new SolutionFieldValue repository impl. |
SolutionFieldValue |
createSolutionFieldValue(atg.svc.repository.beans.FieldDefinitionType pType)
Creates a new SolutionFieldValue repository impl with the given field type.. |
SolutionFieldValue |
createSolutionFieldValue(atg.svc.repository.beans.FieldDefinitionType pType,
SolutionHomes pHomes)
Creates a new SolutionFieldValue impl from the given SolutionHomes (bean or repository). |
SolutionFieldValue |
createSolutionFieldValue(SolutionField pField)
Creates a SolutionFieldValue for the given SolutionField. |
protected java.util.List |
createSolutionReferences(atg.svc.repository.beans.Solution pSolution)
Create the initial Solution references. |
SolutionStatus |
createSolutionStatus()
Creates a new solution status bean. |
void |
deleteSolution(java.lang.String pSolutionId)
Deletes a solution and all of its fields given the solution id. |
void |
deleteSolutionStatus(java.lang.String pSolutionStatusId)
Deletes a solution status given it's solution status id. |
atg.svc.repository.beans.Solution |
editSolution(java.lang.String pSolutionId)
Gets an editable Solution bean given its repository id. |
SolutionStatus |
editSolutionStatus(java.lang.String pSolutionStatusId)
Gets an editable version of a solution status given the solution status' id. |
atg.svc.repository.service.util.AttachmentUtils |
getAttachmentUtils()
|
atg.svc.agent.events.EventTools |
getEventTools()
|
java.util.List |
getExternallyVisibleContentFields(atg.svc.repository.beans.Solution pSolution)
Gets the solution content fields that are visible to everyone external. |
java.util.List |
getExternallyVisiblePropertyFields(atg.svc.repository.beans.Solution pSolution)
Gets the solution property fields that are visible to everyone external. |
java.util.List |
getExternallyVisibleStatementFields(atg.svc.repository.beans.Solution pSolution)
Gets the solution statement fields that are visible to everyone external. |
FavoritesService |
getFavoritesService()
|
SolutionHomes |
getHomes(java.lang.Object pObject)
Gets the SolutionHomes for the given repository object. |
atg.userprofiling.email.HtmlToTextConverter |
getHtmlToTextConverter()
|
java.lang.String |
getInitialSolutionStatus()
|
java.lang.String[] |
getInternalAndExternalSegmentsByValueMatch(java.lang.String pSolutionId,
java.lang.String pFieldName,
java.lang.Object pFieldValue)
Gets the internal and external segments for a given property name and value. |
java.lang.String[] |
getInternalOnlyFields()
Gets the list of field definition types that are internal only. |
java.lang.String |
getLanguage()
Gets the language (locale) code to use when creating solution and solution events. |
int |
getMaxComputedTitleLength()
Gets the maximum length allowed when computing the solution title. |
int |
getMaxDisplayedTitleLength()
Gets the maximum length to display the solution title. |
atg.svc.repository.beans.Solution |
getPublishedSolutionById(java.lang.String pSolutionId)
Finds the published solution by it's repository id. |
QOAAService |
getQOAAService()
|
RecommendedAnswerService |
getRecommendedAnswerService()
|
RecommendedReadingService |
getRecommendedReadingService()
|
java.lang.String[] |
getSegmentsByValueMatch(java.lang.String pSolutionId,
java.lang.String pFieldName,
java.lang.Object pFieldValue)
Gets the segments for a given property name and value. |
SegmentService |
getSegmentService()
|
SiteConfiguration |
getSiteConfiguration()
|
atg.svc.repository.beans.Solution |
getSolutionByDisplayId(java.lang.String pDisplayId)
Finds a solution by it's display id. |
atg.svc.repository.beans.Solution |
getSolutionById(java.lang.String pId)
Finds a solution by it's repository id or legacy id. |
atg.svc.repository.beans.Solution |
getSolutionByPrimaryKey(java.lang.String pId)
Finds a solution by it's repository id only. |
atg.svc.repository.beans.Solution |
getSolutionBySolutionField(SolutionField pSolutionField)
Gets the Solution that contains the given SolutionField. |
SolutionField |
getSolutionFieldByValue(SolutionFieldValue pSolutionFieldValue)
Gets the SolutionField that contains the given SolutionFieldValue. |
SolutionFieldValue |
getSolutionFieldValueBean(SolutionField pField,
SolutionFieldValue pSolutionFieldValue)
Gets an editable SolutionFieldValue object given the SolutionField and SolutionFieldValue object. |
SolutionFieldValue |
getSolutionFieldValueById(java.lang.String pId)
Finds a SolutionFieldValue given its repository id. |
SolutionMetadataService |
getSolutionMetadataService()
|
SolutionRedirectService |
getSolutionRedirectService()
|
java.util.List |
getSolutionReferences(java.lang.String pSolutionId)
Gets the list of items that refer to a given solution. |
java.util.Collection |
getSolutionsByOwningGroupOrgId(java.lang.String organizationId)
Gets Solutions with the given Owning Group. |
SolutionScoringService |
getSolutionScoringService()
|
atg.svc.repository.service.util.SolutionSecurityUtils |
getSolutionSecurityUtils()
|
SolutionStatus |
getSolutionStatusById(java.lang.String pSolutionStatusId)
Finds a solution status by it's repository id. |
java.util.Set |
getSolutionTopics(atg.svc.repository.beans.Solution pSolution)
Gets a set of Topic based on the Solution topicIds property. |
atg.svc.repository.service.util.SolutionValidationUtils |
getSolutionValidationUtils()
|
java.lang.Integer |
getSolutionVersion(atg.svc.repository.beans.Solution pSolution)
Gets the version number of the solution. |
atg.searchadmin.repository.service.TopicService |
getTopicService()
|
TransactionalFragmentService |
getTransactionalFragmentService()
|
java.lang.String |
getTruncatedTitleSuffix()
Gets the string that will be appended to any titles that have been truncated. |
UserOptionsService |
getUserOptionsService()
|
atg.svc.repository.homes.KnowledgeHomesFactory |
getVersionedKnowledgeHomesFactory()
Gets the versioned KnowledgeHomesFactory . |
ViewedAnswerService |
getViewedAnswerService()
|
boolean |
isCheckoutAttachmentsOnSave()
Returns true if attachments should be checked-out on save. |
boolean |
isFieldEditableForCurrentUser(SolutionField pField)
Returns true if the given property is editable by the current user. |
boolean |
isFieldValueEditableForCurrentUser(SolutionFieldValue pFieldValue)
Returns true if the given property is editable by the current user. |
boolean |
isFieldValueInternallyVisible(SolutionFieldValue pFieldValue,
java.lang.String pSegment)
Returns true if the given segment is found on the internalAudience field of the field value. |
boolean |
isFieldValueVisibleForCurrentUser(SolutionFieldValue pFieldValue)
Returns true if the given property is visible to the current user. |
boolean |
isIgnoreSecurityWhenComputingTitle()
|
boolean |
isRemoveSolutionReferencesOnDelete()
Returns true if the QOAA, SolutionRelevance, Favorites and Recommended Readings should be deleted when the assoc. |
boolean |
isSolutionEditableForCurrentUser(atg.svc.repository.beans.Solution pSolution)
Returns true if the given solution is editable for the current user. |
boolean |
isSolutionVisibleForCurrentUser(atg.svc.repository.beans.Solution pSolution)
Returns true if the given solution is visible for the current user. |
boolean |
isValidateOnSaveSolution()
Returns true if validation of the solution should be performed on save. |
void |
mergeTicketHistory(java.lang.String pSourceSolutionId,
java.lang.String pTargetSolutionId)
Merge ticket history for duplicate solutions, removing the history from the "source" solution into the "target" solution. |
java.lang.String |
normalize(java.lang.String pStr)
Removes newline, carriage return, tab characters, repetitive whitespace characters and leading and/or trailing whitespace characters. |
java.lang.String |
normalizeAndTruncate(java.lang.String pStr)
Removes newline, carriage return, tab characters, repetitive whitespace characters and leading and/or trailing whitespace characters then truncates the resulting string if the string exceeds the configured maxComputedTitleLength property. |
java.lang.String |
removeFormatting(java.lang.String pFormattedStr)
Removes HTML formatting, newline, carriage return, tab characters, repetitive whitespace characters and leading and/or trailing whitespace characters. |
java.lang.String |
removeFormattingAndTruncate(java.lang.String pFormattedStr)
Removes HTML formatting, newline, carriage return, tab characters, repetitive whitespace characters and leading and/or trailing whitespace characters then truncates the resulting string if the string exceeds the configured maxComputedTitleLength property. |
void |
saveSolution(atg.svc.repository.beans.Solution pSolution)
Saves the solution. |
void |
saveSolutionStatus(SolutionStatus pSolutionStatus)
Saves a solution status to the repository. |
void |
setAttachmentUtils(atg.svc.repository.service.util.AttachmentUtils pAttachmentUtils)
|
void |
setCheckoutAttachmentsOnSave(boolean pCheckoutAttachmentsOnSave)
Sets true if attachments should be checked-out on save. |
void |
setEventTools(atg.svc.agent.events.EventTools pEventTools)
|
void |
setFavoritesService(FavoritesService pFavoritesService)
|
void |
setHtmlToTextConverter(atg.userprofiling.email.HtmlToTextConverter pHtmlToTextConverter)
|
void |
setIgnoreSecurityWhenComputingTitle(boolean pIgnoreSecurityWhenComputingTitle)
|
void |
setInitialSolutionStatus(java.lang.String pStartingSolutionStatus)
|
void |
setInternalOnlyFields(java.lang.String[] pInternalOnlyFields)
Sets the list of field definition types that are internal only. |
void |
setLanguage(java.lang.String pLanguage)
Sets the language (locale) code to use when creating solution and solution events. |
void |
setMaxComputedTitleLength(int pMaxComputedTitleLength)
Sets the maximum length allowed when computing the solution title. |
void |
setMaxDisplayedTitleLength(int pMaxDisplayedTitleLength)
Sets the maximum length to display the solution title. |
void |
setQOAAService(QOAAService pQOAAService)
|
void |
setRecommendedAnswerService(RecommendedAnswerService pRecommendedAnswerService)
|
void |
setRecommendedReadingService(RecommendedReadingService pRecommendedReadingService)
|
void |
setRemoveSolutionReferencesOnDelete(boolean pRemoveSolutionReferencesOnDelete)
Returns true if the QOAA, SolutionRelevance, Favorites and Recommended Readings should be deleted when the assoc. |
void |
setSegmentService(SegmentService pSegmentService)
|
void |
setSiteConfiguration(SiteConfiguration pSiteConfiguration)
|
void |
setSolutionFieldValue(atg.svc.repository.beans.Solution pSolution,
java.lang.String pFieldName,
java.lang.String[] pSolutionFieldValueIds)
Given a set of SolutionFieldValue ids, copy the values from those SolutionFieldValue objects and set them as the new value on the given field. |
void |
setSolutionMetadataService(SolutionMetadataService pSolutionMetadataService)
|
void |
setSolutionRedirectService(SolutionRedirectService pSolutionRedirectService)
|
void |
setSolutionScoringService(SolutionScoringService pSolutionScoringService)
|
void |
setSolutionSecurityUtils(atg.svc.repository.service.util.SolutionSecurityUtils pSolutionSecurityUtils)
|
void |
setSolutionValidationUtils(atg.svc.repository.service.util.SolutionValidationUtils pSolutionValidationUtils)
|
void |
setTopicService(atg.searchadmin.repository.service.TopicService pTopicService)
|
void |
setTransactionalFragmentService(TransactionalFragmentService pTransactionalFragmentService)
|
void |
setTruncatedTitleSuffix(java.lang.String pTruncatedTitleSuffix)
Sets the string that will be appended to any titles that have been truncated. |
void |
setUserOptionsService(UserOptionsService pUserOptionsService)
|
void |
setValidateOnSaveSolution(boolean pValidateOnSaveSolution)
Set to true if validation of the solution should be performed on save. |
void |
setVersionedKnowledgeHomesFactory(atg.svc.repository.homes.KnowledgeHomesFactory pVersionedKnowledgeHomesFactory)
Sets the versioned KnowledgeHomesFactory . |
void |
setViewedAnswerService(ViewedAnswerService pViewedAnswerService)
|
void |
switchSolutionClass(java.lang.String pSolutionClassId,
atg.svc.repository.beans.Solution pSolution)
Changes the solution class on a solution. |
java.lang.String |
truncateTitleForCompute(java.lang.String pTitle)
Truncates the given title string to the configured number of maximum bytes. |
java.lang.String |
truncateTitleForDisplay(java.lang.String pTitle)
Truncates the given title string to the configured number of maximum characters. |
void |
updateTopicIds(java.util.Set pTopicIds,
atg.svc.repository.beans.Solution pSolution)
Adds/Removes topic(s) to/from a solution. |
atg.svc.repository.beans.Solution |
wrapSolutionRepositoryItem(atg.repository.RepositoryItem pItem)
Wraps a solution repository item in a Solution java bean repository implementation. |
java.util.Collection<atg.svc.repository.beans.Solution> |
wrapSolutionRepositoryItems(java.util.Collection<atg.repository.RepositoryItem> pColl)
Wraps a collection of solution repository item in a collection of Solution java bean repository implementation. |
Methods inherited from class atg.svc.repository.service.KnowledgeBaseService |
---|
getKnowledgeHomesFactory, getOptionBeanHomes, getOptionRepositoryHomes, getServiceSegmentBeanHomes, getServiceSegmentRepositoryHomes, getSolutionBeanHomes, getSolutionRepositoryHomes, getUserOptionBeanHomes, getUserOptionRepositoryHomes, setKnowledgeHomesFactory |
Methods inherited from class atg.svc.repository.service.BaseService |
---|
getRepositoryService, getToday, setRepositoryService |
Methods inherited from class atg.nucleus.GenericService |
---|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CLASS_VERSION
public static final java.lang.String[] EMPTY_STRING_ARRAY
public static final java.lang.String EMPTY_STRING
Constructor Detail |
---|
public SolutionService()
Method Detail |
---|
public SolutionRedirectService getSolutionRedirectService()
public void setSolutionRedirectService(SolutionRedirectService pSolutionRedirectService)
public atg.userprofiling.email.HtmlToTextConverter getHtmlToTextConverter()
public void setHtmlToTextConverter(atg.userprofiling.email.HtmlToTextConverter pHtmlToTextConverter)
public SolutionMetadataService getSolutionMetadataService()
public void setSolutionMetadataService(SolutionMetadataService pSolutionMetadataService)
public SegmentService getSegmentService()
public void setSegmentService(SegmentService pSegmentService)
public atg.searchadmin.repository.service.TopicService getTopicService()
public void setTopicService(atg.searchadmin.repository.service.TopicService pTopicService)
public atg.svc.agent.events.EventTools getEventTools()
public void setEventTools(atg.svc.agent.events.EventTools pEventTools)
public atg.svc.repository.service.util.SolutionSecurityUtils getSolutionSecurityUtils()
public void setSolutionSecurityUtils(atg.svc.repository.service.util.SolutionSecurityUtils pSolutionSecurityUtils)
public atg.svc.repository.service.util.SolutionValidationUtils getSolutionValidationUtils()
public void setSolutionValidationUtils(atg.svc.repository.service.util.SolutionValidationUtils pSolutionValidationUtils)
public QOAAService getQOAAService()
public void setQOAAService(QOAAService pQOAAService)
public FavoritesService getFavoritesService()
public void setFavoritesService(FavoritesService pFavoritesService)
public RecommendedReadingService getRecommendedReadingService()
public void setRecommendedReadingService(RecommendedReadingService pRecommendedReadingService)
public SolutionScoringService getSolutionScoringService()
public void setSolutionScoringService(SolutionScoringService pSolutionScoringService)
public TransactionalFragmentService getTransactionalFragmentService()
public void setTransactionalFragmentService(TransactionalFragmentService pTransactionalFragmentService)
public UserOptionsService getUserOptionsService()
public void setUserOptionsService(UserOptionsService pUserOptionsService)
public SiteConfiguration getSiteConfiguration()
public void setSiteConfiguration(SiteConfiguration pSiteConfiguration)
public java.lang.String getInitialSolutionStatus()
public void setInitialSolutionStatus(java.lang.String pStartingSolutionStatus)
public boolean isCheckoutAttachmentsOnSave()
public void setCheckoutAttachmentsOnSave(boolean pCheckoutAttachmentsOnSave)
pCheckoutAttachmentsOnSave
- True if attachments should be checked-out on save.public java.lang.String[] getInternalOnlyFields()
public void setInternalOnlyFields(java.lang.String[] pInternalOnlyFields)
pInternalOnlyFields
- The String array of field definition types by name.public java.lang.String getLanguage()
public void setLanguage(java.lang.String pLanguage)
pLanguage
- The language (locale) code (like "en_US")public boolean isValidateOnSaveSolution()
public void setValidateOnSaveSolution(boolean pValidateOnSaveSolution)
pValidateOnSaveSolution
- True if validation of the solution should be performed on save.public boolean isRemoveSolutionReferencesOnDelete()
public void setRemoveSolutionReferencesOnDelete(boolean pRemoveSolutionReferencesOnDelete)
pRemoveSolutionReferencesOnDelete
- True if delete references.public boolean isIgnoreSecurityWhenComputingTitle()
public void setIgnoreSecurityWhenComputingTitle(boolean pIgnoreSecurityWhenComputingTitle)
public RecommendedAnswerService getRecommendedAnswerService()
public void setRecommendedAnswerService(RecommendedAnswerService pRecommendedAnswerService)
public ViewedAnswerService getViewedAnswerService()
public void setViewedAnswerService(ViewedAnswerService pViewedAnswerService)
public atg.svc.repository.service.util.AttachmentUtils getAttachmentUtils()
public void setAttachmentUtils(atg.svc.repository.service.util.AttachmentUtils pAttachmentUtils)
public int getMaxDisplayedTitleLength()
public void setMaxDisplayedTitleLength(int pMaxDisplayedTitleLength)
pMaxDisplayedTitleLength
- The maximum length to display the solution title.public int getMaxComputedTitleLength()
public void setMaxComputedTitleLength(int pMaxComputedTitleLength)
pMaxComputedTitleLength
- The maximum length to compute the solution title.public java.lang.String getTruncatedTitleSuffix()
public void setTruncatedTitleSuffix(java.lang.String pTruncatedTitleSuffix)
pTruncatedTitleSuffix
- The string that will be appended to any titles that have been truncated.public atg.svc.repository.homes.KnowledgeHomesFactory getVersionedKnowledgeHomesFactory()
KnowledgeHomesFactory
.
Need to retrieve the solution version number in getSolutionVersion(Solution)
public void setVersionedKnowledgeHomesFactory(atg.svc.repository.homes.KnowledgeHomesFactory pVersionedKnowledgeHomesFactory)
KnowledgeHomesFactory
.
pVersionedKnowledgeHomesFactory
- The string that will be appended to any titles that have been truncated.public atg.svc.repository.beans.Solution getSolutionById(java.lang.String pId) throws ObjectNotFoundException
pId
- The repository or legacy id of a Solution.
ObjectNotFoundException
- If a solution is not found by the given id.public atg.svc.repository.beans.Solution getSolutionByPrimaryKey(java.lang.String pId) throws ObjectNotFoundException
pId
- The repository id of a Solution.
ObjectNotFoundException
- If a solution is not found by the given id.public atg.svc.repository.beans.Solution getSolutionByDisplayId(java.lang.String pDisplayId) throws ObjectNotFoundException
pDisplayId
- The legacy id or repository id.
ObjectNotFoundException
- If the id is not found.public atg.svc.repository.beans.Solution getPublishedSolutionById(java.lang.String pSolutionId) throws ObjectNotFoundException
pSolutionId
- The repository id.
ObjectNotFoundException
- If the id is not found or the solution is not externally visible.public atg.svc.repository.beans.Solution getSolutionBySolutionField(SolutionField pSolutionField) throws ObjectNotFoundException
pSolutionField
- The solution field.
ObjectNotFoundException
- If the Solution cannot be found.public SolutionField getSolutionFieldByValue(SolutionFieldValue pSolutionFieldValue) throws ObjectNotFoundException
pSolutionFieldValue
- The solution field value.
ObjectNotFoundException
- If the SolutionField cannot be found.public java.lang.Integer getSolutionVersion(atg.svc.repository.beans.Solution pSolution)
pSolution
-
public atg.svc.repository.beans.Solution createSolution(java.lang.String pSolutionClassId) throws javax.ejb.CreateException, ObjectNotFoundException
pSolutionClassId
- The id of the solution class.
ObjectNotFoundException
- If the solution class is not found.
javax.ejb.CreateException
public atg.svc.repository.beans.Solution createSolution(atg.svc.repository.beans.SolutionClass pSolutionClass) throws javax.ejb.CreateException
pSolutionClass
- The solution class object.
javax.ejb.CreateException
- If the create of the Solution or any SolutionField objects derived from the SolutionClass fails.public atg.svc.repository.beans.Solution createSolutionBean(java.lang.String pSolutionClassId) throws ObjectNotFoundException
pSolutionClassId
- The id of the SolutionClass to create the Solution from.
ObjectNotFoundException
- If the SolutionClass is not found.public atg.svc.repository.beans.Solution createSolutionBean(atg.svc.repository.beans.SolutionClass pSolutionClass)
pSolutionClass
- The SolutionClass object to create the Solution from.
atg.core.exception.ContainerRuntimeException
- If an exception is thrown when the in-memory bean is created.public atg.svc.repository.beans.Solution createSolution(java.lang.String pSolutionClassId, SolutionHomes pHomes) throws javax.ejb.CreateException, ObjectNotFoundException
pSolutionClassId
- The id of the SolutionClass to create the Solution from.
javax.ejb.CreateException
- If the homes are repository and the repository create operation fails.
ObjectNotFoundException
- If the SolutionClass is not found.public atg.svc.repository.beans.Solution createSolution(atg.svc.repository.beans.SolutionClass pSolutionClass, SolutionHomes pHomes) throws javax.ejb.CreateException
pSolutionClass
- The SolutionClass to create the Solution from.
javax.ejb.CreateException
- If the homes are repository and the repository create operation failspublic atg.svc.repository.beans.Solution editSolution(java.lang.String pSolutionId) throws javax.ejb.CreateException, ObjectNotFoundException, PersistenceException
pSolutionId
- The id of the Solution to edit.
ObjectNotFoundException
- The id is not found.
javax.ejb.CreateException
PersistenceException
public void deleteSolution(java.lang.String pSolutionId) throws ObjectNotFoundException, PersistenceException
pSolutionId
- The id of the solution to delete.
ObjectNotFoundException
- If the solution repository item is not found.
PersistenceException
- If a remove operation fails.public atg.svc.repository.beans.Solution copySolution(atg.svc.repository.beans.Solution pSrcSolution) throws javax.ejb.CreateException
pSrcSolution
- The Solution to copy into a new Solution.
javax.ejb.CreateException
- If the create operation fails.protected java.util.List createSolutionReferences(atg.svc.repository.beans.Solution pSolution) throws javax.ejb.CreateException
pSolution
- The solution to whose references these are for.
javax.ejb.CreateException
public java.util.List getSolutionReferences(java.lang.String pSolutionId)
pSolutionId
- The id of the solution to get the references for.
public void saveSolution(atg.svc.repository.beans.Solution pSolution) throws PersistenceException
pSolution
- The Solution to save.
atg.svc.validation.ValidationException
- If one of the fields does not pass validation requirements. Currently the only requirement is "required" if a
field has the isRequired flag set to true in it's FieldDefinition.
PersistenceException
- If the save operation fails.
java.lang.IllegalArgumentException
- If the pSolution argument is an in-memory bean not a repository beanpublic void switchSolutionClass(java.lang.String pSolutionClassId, atg.svc.repository.beans.Solution pSolution) throws javax.ejb.CreateException, ObjectNotFoundException, PersistenceException
pSolution
- The editable solution bean.pSolutionClassId
- The id of the new solution class to set.
ObjectNotFoundException
- If the deleteCollection method on the RepositoryService throws it or if the given SolutionClass cannot be found.
PersistenceException
- If the delete of the SolutionField objects on the Solution fails.
atg.core.exception.ContainerRuntimeException
- If the findBySolution finder on SolutionFieldHome fails.
javax.ejb.CreateException
public java.lang.String computeTitle(atg.svc.repository.beans.Solution pSolution)
pSolution
- The non-null solution to get the title for.
java.lang.IllegalArgumentException
- If the pSolution parameter is null.public java.lang.String truncateTitleForDisplay(java.lang.String pTitle)
pTitle
- The string to truncate.
public java.lang.String truncateTitleForCompute(java.lang.String pTitle)
pTitle
- The string to truncate.
public void clearSolutionExternalAudience(atg.svc.repository.beans.Solution pSolution)
pSolution
- The Solution to clear the segments from.public void addTopic(java.lang.String pTopicId, atg.svc.repository.beans.Solution pSolution)
pTopicId
- The topic to add.pSolution
- The Solution to add the topic to.public void updateTopicIds(java.util.Set pTopicIds, atg.svc.repository.beans.Solution pSolution)
pTopicIds
- The new set of topic ids (string)pSolution
- The Solution to add the topic to.public void setSolutionFieldValue(atg.svc.repository.beans.Solution pSolution, java.lang.String pFieldName, java.lang.String[] pSolutionFieldValueIds) throws javax.ejb.CreateException, ObjectNotFoundException, atg.beans.PropertyNotFoundException
pSolution
- The solution that contains the field to set the values onpFieldName
- The name of the field in the solution's field map to set the values onpSolutionFieldValueIds
- The array of solution field values (by id) to set as the new value on the given
SolutionField.pSolution
-
javax.ejb.CreateException
- If the create of a new SolutionFieldValue fails.
ObjectNotFoundException
- If the SolutionFieldValue cannot be found by a given id.
atg.beans.PropertyNotFoundException
- If the SolutionField with the given name does not exist on the Solution.public boolean isSolutionVisibleForCurrentUser(atg.svc.repository.beans.Solution pSolution)
pSolution
- The Solution to check access on.
public boolean isSolutionEditableForCurrentUser(atg.svc.repository.beans.Solution pSolution)
pSolution
- The Solution to check access on.
public SolutionFieldValue createSolutionFieldValue(atg.svc.repository.beans.FieldDefinition pFieldDefinition) throws javax.ejb.CreateException
pFieldDefinition
- The field definition to create the solution field value from.
javax.ejb.CreateException
- If the SolutionFieldValue is a repository object and the create operation fails.public SolutionFieldValue createSolutionFieldValue(atg.svc.repository.beans.FieldDefinitionType pType) throws javax.ejb.CreateException
pType
- The field definition type to create the solution field value from.
javax.ejb.CreateException
- If the SolutionFieldValue is a repository object and the create operation fails.public SolutionFieldValue createSolutionFieldValue(SolutionField pField) throws javax.ejb.CreateException
pField
- The field to create the SolutionFieldValue for.
javax.ejb.CreateException
- If the SolutionFieldValue is a repository object and the create operation fails.public SolutionFieldValue createSolutionFieldValue(atg.svc.repository.beans.FieldDefinitionType pType, SolutionHomes pHomes) throws javax.ejb.CreateException
pType
- The field definition type to create the solution field value from.pHomes
- The SolutionHomes to create the solution field value from.
javax.ejb.CreateException
- If the create is in the repository and the create operation fails.public SolutionFieldValue getSolutionFieldValueBean(SolutionField pField, SolutionFieldValue pSolutionFieldValue)
pField
- The field parent of the field value.pSolutionFieldValue
- The field value to edit.
public SolutionFieldValue getSolutionFieldValueById(java.lang.String pId) throws ObjectNotFoundException
pId
- The repository id of the SolutionFieldValue to find.
ObjectNotFoundException
- If a SolutionFieldValue is not found with the given id.public boolean isFieldEditableForCurrentUser(SolutionField pField)
public boolean isFieldValueVisibleForCurrentUser(SolutionFieldValue pFieldValue)
pFieldValue
- The solution property.
public boolean isFieldValueEditableForCurrentUser(SolutionFieldValue pFieldValue)
pFieldValue
- The solution property.
public boolean isFieldValueInternallyVisible(SolutionFieldValue pFieldValue, java.lang.String pSegment)
pFieldValue
- The field value to examine.pSegment
- The segment to search for on the field value.
public java.lang.String[] getInternalAndExternalSegmentsByValueMatch(java.lang.String pSolutionId, java.lang.String pFieldName, java.lang.Object pFieldValue) throws ObjectNotFoundException
pSolutionId
- The id of the Solution.pFieldName
- The name of the property.pFieldValue
- The value to match.
ObjectNotFoundException
- If the FieldDefinition cannot be found by name OR the Solution cannot by found by id.public java.lang.String[] getSegmentsByValueMatch(java.lang.String pSolutionId, java.lang.String pFieldName, java.lang.Object pFieldValue) throws ObjectNotFoundException
pSolutionId
- The id of the Solution.pFieldName
- The name of the property.pFieldValue
- The value to match.
ObjectNotFoundException
- If the FieldDefinition cannot be found by name OR the Solution cannot by found by id.public java.util.List getExternallyVisiblePropertyFields(atg.svc.repository.beans.Solution pSolution)
pSolution
- The SolutionClass to get the statement fields from.
public java.util.List getExternallyVisibleContentFields(atg.svc.repository.beans.Solution pSolution)
pSolution
- The SolutionClass to get the statement fields from.
public java.util.List getExternallyVisibleStatementFields(atg.svc.repository.beans.Solution pSolution)
pSolution
- The SolutionClass to get the statement fields from.
public SolutionStatus getSolutionStatusById(java.lang.String pSolutionStatusId) throws ObjectNotFoundException
pSolutionStatusId
- The repository id.
ObjectNotFoundException
- If the id is not found.public SolutionStatus createSolutionStatus() throws javax.ejb.CreateException
javax.ejb.CreateException
- If the create fails.public SolutionStatus editSolutionStatus(java.lang.String pSolutionStatusId) throws ObjectNotFoundException
pSolutionStatusId
- A Solution Status
ObjectNotFoundException
public void saveSolutionStatus(SolutionStatus pSolutionStatus) throws PersistenceException
pSolutionStatus
- The solution status to save.
PersistenceException
public void deleteSolutionStatus(java.lang.String pSolutionStatusId) throws ObjectNotFoundException, PersistenceException
pSolutionStatusId
- The id of the solution status to delete.
ObjectNotFoundException
- If the solution status repository item is not found.
PersistenceException
- If the delete fails.public java.util.Set getSolutionTopics(atg.svc.repository.beans.Solution pSolution)
Topic
based on the Solution topicIds property.
If a topic lookup fails, the topic is omitted from the returned topics.
pSolution
- The Solution to get the topics for.
public java.lang.String removeFormattingAndTruncate(java.lang.String pFormattedStr)
pFormattedStr
- The non-null string to remove formatting and possibly truncate.
java.lang.IllegalArgumentException
- If the pFormattedStr param is nullpublic java.lang.String removeFormatting(java.lang.String pFormattedStr)
pFormattedStr
- The non-null string to remove formatting and possibly truncate.
java.lang.IllegalArgumentException
- If the pFormattedStr param is nullpublic java.lang.String normalize(java.lang.String pStr)
pStr
- The string to remove characters and possibly truncate.
public java.lang.String normalizeAndTruncate(java.lang.String pStr)
pStr
- The string to remove characters and possibly truncate.
public SolutionHomes getHomes(java.lang.Object pObject)
pObject
- The object to get the homes for.
public void mergeTicketHistory(java.lang.String pSourceSolutionId, java.lang.String pTargetSolutionId) throws ObjectNotFoundException, javax.ejb.CreateException, PersistenceException
pSourceSolutionId
- repository id of the solution the history is moving frompTargetSolutionId
- repository id of the solution the history is moving to.
ObjectNotFoundException
javax.ejb.CreateException
PersistenceException
public java.util.Collection getSolutionsByOwningGroupOrgId(java.lang.String organizationId)
organizationId
- The organization id of the Owning Group
public atg.svc.repository.beans.Solution wrapSolutionRepositoryItem(atg.repository.RepositoryItem pItem)
pItem
- The item to wrap.
public java.util.Collection<atg.svc.repository.beans.Solution> wrapSolutionRepositoryItems(java.util.Collection<atg.repository.RepositoryItem> pColl)
pColl
- The collection of repository items to wrap.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |