|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.svc.repository.beans.methods.BaseMethods
atg.svc.repository.beans.methods.SolutionMethods
public class SolutionMethods
Defines extension methods for the Solution object.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Constructor Summary | |
---|---|
SolutionMethods()
|
Method Summary | |
---|---|
void |
addTopic(java.lang.String pTopicId,
Solution pSolution)
Adds a topic to a solution given the id of a topic. |
java.util.Map<java.lang.String,SolutionField> |
getAllFields(Solution pSolution)
Gets a Map of SolutionField keyed on field name. |
java.lang.String |
getDisplayId(Solution pSolution)
Gets the display id of the solution. |
java.lang.String |
getDisplayTitle(Solution pSolution)
Gets the title for the solution for display. |
java.util.List |
getEditableFields(Solution pSolution)
Gets the list of SolutionField objects that belong to the solution ordered by the fields in the SolutionClass that are editable by the current user. |
java.util.List |
getEditablePropertyFields(Solution pSolution)
Gets the list of property SolutionField objects that belong to the solution ordered by the fields in the SolutionClass that are editable by the current user. |
java.util.List |
getEditableStatementFields(Solution pSolution)
Gets the list of content SolutionField objects that belong to the solution ordered by the fields in the SolutionClass that are editable by the current user. |
java.util.List |
getExternallyVisiblePropertyFields(Solution pSolution)
Gets the solution property fields that are visible to everyone external. |
java.util.List |
getExternallyVisibleStatementFields(Solution pSolution)
Gets the solution statement fields that are visible to everyone external. |
java.lang.Object |
getFieldValue(java.lang.String pPropertyName,
Solution pSolution)
Gets the value of a Solution property. |
boolean |
getIsEditable(Solution pSolution)
Returns true if this solution is editable for the current user. |
boolean |
getIsExternallyVisibleToEveryone(Solution pSolution)
Returns true if this solution is visible for everyone external. |
boolean |
getIsExternallyVisibleToSegment(java.lang.String pSegmentName,
Solution pSolution)
Returns true if this solution is visible for the given external segment. |
boolean |
getIsVisible(Solution pSolution)
Returns true if this solution is visible for the current user. |
java.lang.String |
getTitle(Solution pSolution)
Gets the computed title for the given Solution. |
java.util.Set |
getTopics(Solution pSolution)
Gets a set of Topic based on the Solution topicIds property. |
java.lang.Integer |
getVersion(Solution pSolution)
Gets the version number of the last checked-in version for the solution. |
java.util.List |
getVisibleFields(Solution pSolution)
Gets the list of SolutionField objects that belong to the solution ordered by the fields in the SolutionClass that are visible to the current user. |
java.util.List |
getVisiblePropertyFields(Solution pSolution)
Gets the list of property SolutionField objects that belong to the solution ordered by the fields in the SolutionClass that are visible to the current user. |
java.util.List |
getVisibleStatementFields(Solution pSolution)
Gets the list of content SolutionField objects that belong to the solution ordered by the fields in the SolutionClass that are visible to the current user. |
void |
setFieldValue(java.lang.String pPropertyName,
java.lang.Object pValue,
Solution pSolution)
Sets a value on the given property for the solution. |
void |
setInternalAudience(java.lang.String[] pOrgValueIds,
Solution pSolution)
Sets the value of the solution internal audience property given an array or OrganizationValue repository ids. |
void |
setOwningGroup(java.lang.String pOrgValueId,
Solution pSolution)
Sets the Owning Group on the solution given the id of the Organization. |
void |
setSolutionClass(java.lang.String pSolutionClassId,
Solution pSolution)
Sets the solution class on the solution given the id of the solution class. |
void |
setTitle(java.lang.String pTitle,
Solution pSolution)
Sets the title for the given Solution. |
void |
setTopics(java.util.Set pTopics,
Solution pSolution)
Sets the topis for the given Solution. |
void |
updateTopicIds(java.util.Set pTopicIds,
Solution pSolution)
Adds/Removes topics to/from a solution given an array of topic ids. |
void |
validate(Solution pSolution)
Validates the fields on a Solution. |
Methods inherited from class atg.svc.repository.beans.methods.BaseMethods |
---|
getServiceFactory |
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
Constructor Detail |
---|
public SolutionMethods()
Method Detail |
---|
public boolean getIsVisible(Solution pSolution)
pSolution
- The solution to check.
public boolean getIsExternallyVisibleToEveryone(Solution pSolution)
pSolution
- The solution to check.
public boolean getIsExternallyVisibleToSegment(java.lang.String pSegmentName, Solution pSolution)
pSegmentName
- The name of the segment.pSolution
- The solution to check.
public boolean getIsEditable(Solution pSolution)
pSolution
- The solution to check.
public java.lang.Integer getVersion(Solution pSolution)
pSolution
-
public void setFieldValue(java.lang.String pPropertyName, java.lang.Object pValue, Solution pSolution) throws atg.beans.PropertyNotFoundException
pPropertyName
- The name of the property to set.pValue
- The value of the property to set.pSolution
- The solution to set the value on.
atg.beans.PropertyNotFoundException
DynamicBeans
public java.lang.Object getFieldValue(java.lang.String pPropertyName, Solution pSolution) throws atg.beans.PropertyNotFoundException
pPropertyName
- The name of the property.pSolution
- The Solution to get the property from.
atg.beans.PropertyNotFoundException
- If the property is not found for the given name.public java.lang.String getTitle(Solution pSolution)
pSolution
- The Solution to get the title for.
public void setTitle(java.lang.String pTitle, Solution pSolution)
pTitle
- The title to set.pSolution
- The Solution to set the title on.public java.lang.String getDisplayTitle(Solution pSolution)
pSolution
- The Solution to get the title for.
public java.util.Set getTopics(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 void setTopics(java.util.Set pTopics, Solution pSolution)
pTopics
- Set of Topic
.
The title to set.pSolution
- The Solution to set the topics on.public void setSolutionClass(java.lang.String pSolutionClassId, Solution pSolution) throws ObjectNotFoundException
pSolutionClassId
- The id of the solution class.pSolution
- The solution bean.
ObjectNotFoundException
- If the solution class is not found in the repository by the given id.public void setOwningGroup(java.lang.String pOrgValueId, Solution pSolution) throws ObjectNotFoundException, SvcException
pOrgValueId
- The id of the organization to set as the owning group.pSolution
- The solution bean.
ObjectNotFoundException
- If the OrganizationValue is not found.
SvcException
public void setInternalAudience(java.lang.String[] pOrgValueIds, Solution pSolution) throws ObjectNotFoundException, SvcException
pSolution
- The solution to set the internal audience property on.pOrgValueIds
- The String array of OrganizationValue repository ids.
ObjectNotFoundException
- If an OrganizationValue cannot be found by id.
SvcException
public void addTopic(java.lang.String pTopicId, Solution pSolution) throws ObjectNotFoundException
pTopicId
- The repository id of the topic to add.pSolution
- The Solution to add the topic to.
ObjectNotFoundException
- If the topic could not be found.public void updateTopicIds(java.util.Set pTopicIds, Solution pSolution) throws ObjectNotFoundException
pTopicIds
- An array of the repository id of the topics.pSolution
- The Solution to add the topic to.
ObjectNotFoundException
- If the topic could not be found.public java.util.Map<java.lang.String,SolutionField> getAllFields(Solution pSolution)
pSolution
- The solution to get the fields from.
public java.util.List getVisibleFields(Solution pSolution)
pSolution
- The solution to get the fields from.
public java.util.List getVisibleStatementFields(Solution pSolution)
pSolution
- The Solution to get the content fields from.
public java.util.List getVisiblePropertyFields(Solution pSolution)
pSolution
- The Solution to get the property fields from.
public java.util.List getEditableFields(Solution pSolution)
pSolution
- The solution to get the fields from.
public java.util.List getEditableStatementFields(Solution pSolution)
pSolution
- The Solution to get the content fields from.
public java.util.List getEditablePropertyFields(Solution pSolution)
pSolution
- The Solution to get the property fields from.
public java.util.List getExternallyVisibleStatementFields(Solution pSolution)
pSolution
- The Solution to get the statement fields from.
public java.util.List getExternallyVisiblePropertyFields(Solution pSolution)
pSolution
- The SolutionClass to get the property fields from.
public void validate(Solution pSolution) throws atg.svc.validation.ValidationException
pSolution
- The Solution to validate the fields on.
atg.svc.validation.ValidationException
- If any of the fields fail the validation tests.public java.lang.String getDisplayId(Solution pSolution)
pSolution
- The solution to get the id from.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |