|
||||||||||
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,
atg.svc.repository.beans.Solution pSolution)
Adds a topic to a solution given the id of a topic. |
java.lang.String |
getDisplayId(atg.svc.repository.beans.Solution pSolution)
Gets the display id of the solution. |
java.lang.String |
getDisplayTitle(atg.svc.repository.beans.Solution pSolution)
Gets the title for the solution for display. |
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. |
java.lang.Object |
getFieldValue(java.lang.String pPropertyName,
atg.svc.repository.beans.Solution pSolution)
Gets the value of a Solution property. |
boolean |
getIsEditable(atg.svc.repository.beans.Solution pSolution)
Returns true if this solution is editable for the current user. |
boolean |
getIsExternallyVisibleToEveryone(atg.svc.repository.beans.Solution pSolution)
Returns true if this solution is visible for everyone external. |
boolean |
getIsExternallyVisibleToSegment(java.lang.String pSegmentName,
atg.svc.repository.beans.Solution pSolution)
Returns true if this solution is visible for the given external segment. |
boolean |
getIsVisible(atg.svc.repository.beans.Solution pSolution)
Returns true if this solution is visible for the current user. |
java.lang.String |
getTitle(atg.svc.repository.beans.Solution pSolution)
Gets the computed title for the given Solution. |
java.util.Set |
getTopics(atg.svc.repository.beans.Solution pSolution)
Gets a set of Topic based on the Solution topicIds property. |
java.lang.Integer |
getVersion(atg.svc.repository.beans.Solution pSolution)
Gets the version number of the last checked-in version for the solution. |
java.util.List |
getVisibleFields(atg.svc.repository.beans.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(atg.svc.repository.beans.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(atg.svc.repository.beans.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,
atg.svc.repository.beans.Solution pSolution)
Sets a value on the given property for the solution. |
void |
setInternalAudience(java.lang.String[] pOrgValueIds,
atg.svc.repository.beans.Solution pSolution)
Sets the value of the solution internal audience property given an array or OrganizationValue repository ids. |
void |
setOwningGroup(java.lang.String pOrgValueId,
atg.svc.repository.beans.Solution pSolution)
Sets the Owning Group on the solution given the id of the Organization. |
void |
setSolutionClass(java.lang.String pSolutionClassId,
atg.svc.repository.beans.Solution pSolution)
Sets the solution class on the solution given the id of the solution class. |
void |
setTitle(java.lang.String pTitle,
atg.svc.repository.beans.Solution pSolution)
Sets the title for the given Solution. |
void |
setTopics(java.util.Set pTopics,
atg.svc.repository.beans.Solution pSolution)
Sets the topis for the given Solution. |
void |
updateTopicIds(java.util.Set pTopicIds,
atg.svc.repository.beans.Solution pSolution)
Adds/Removes topics to/from a solution given an array of topic ids. |
void |
validate(atg.svc.repository.beans.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(atg.svc.repository.beans.Solution pSolution)
pSolution
- The solution to check.
public boolean getIsExternallyVisibleToEveryone(atg.svc.repository.beans.Solution pSolution)
pSolution
- The solution to check.
public boolean getIsExternallyVisibleToSegment(java.lang.String pSegmentName, atg.svc.repository.beans.Solution pSolution)
pSegmentName
- The name of the segment.pSolution
- The solution to check.
public boolean getIsEditable(atg.svc.repository.beans.Solution pSolution)
pSolution
- The solution to check.
public java.lang.Integer getVersion(atg.svc.repository.beans.Solution pSolution)
pSolution
-
public void setFieldValue(java.lang.String pPropertyName, java.lang.Object pValue, atg.svc.repository.beans.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, atg.svc.repository.beans.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(atg.svc.repository.beans.Solution pSolution)
pSolution
- The Solution to get the title for.
public void setTitle(java.lang.String pTitle, atg.svc.repository.beans.Solution pSolution)
pTitle
- The title to set.pSolution
- The Solution to set the title on.public java.lang.String getDisplayTitle(atg.svc.repository.beans.Solution pSolution)
pSolution
- The Solution to get the title for.
public java.util.Set getTopics(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 void setTopics(java.util.Set pTopics, atg.svc.repository.beans.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, atg.svc.repository.beans.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, atg.svc.repository.beans.Solution pSolution) throws ObjectNotFoundException
pOrgValueId
- The id of the organization to set as the owning group.pSolution
- The solution bean.
ObjectNotFoundException
- If the OrganizationValue is not found.public void setInternalAudience(java.lang.String[] pOrgValueIds, atg.svc.repository.beans.Solution pSolution) throws ObjectNotFoundException
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.public void addTopic(java.lang.String pTopicId, atg.svc.repository.beans.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, atg.svc.repository.beans.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.List getVisibleFields(atg.svc.repository.beans.Solution pSolution)
pSolution
- The solution to get the fields from.
public java.util.List getVisibleStatementFields(atg.svc.repository.beans.Solution pSolution)
pSolution
- The Solution to get the content fields from.
public java.util.List getVisiblePropertyFields(atg.svc.repository.beans.Solution pSolution)
pSolution
- The Solution to get the property fields from.
public java.util.List getExternallyVisibleStatementFields(atg.svc.repository.beans.Solution pSolution)
pSolution
- The Solution to get the statement fields from.
public java.util.List getExternallyVisiblePropertyFields(atg.svc.repository.beans.Solution pSolution)
pSolution
- The SolutionClass to get the property fields from.
public void validate(atg.svc.repository.beans.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(atg.svc.repository.beans.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 |