|
||||||||||
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.FieldDefinitionMethods
public class FieldDefinitionMethods
Defines extension methods for the FieldDefinition object.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Constructor Summary | |
---|---|
FieldDefinitionMethods()
|
Method Summary | |
---|---|
SolutionFieldValue |
createSolutionFieldValue(atg.svc.repository.beans.FieldDefinition pFieldDefinition)
Creates a SolutionFieldValue object that is associated with this field. |
java.util.List |
getDefaultValues(atg.svc.repository.beans.FieldDefinition pFieldDefinition)
Gets the default values for the given field definition in the correct display order. |
boolean |
getIsEditable(atg.svc.repository.beans.FieldDefinition pFieldDefinition)
Returns true if the field is editable for the current user. |
boolean |
getIsExternallyVisibleToEveryone(atg.svc.repository.beans.FieldDefinition pField)
Returns true if this field is always externally visible. |
boolean |
getIsExternallyVisibleToSegment(java.lang.String pSegment,
atg.svc.repository.beans.FieldDefinition pFieldDefinition)
Returns true if the given segment is found on the externalAudience property of the FieldDefinition. |
boolean |
getIsInternalOnly(atg.svc.repository.beans.FieldDefinition pFieldDefinition)
Returns true if the field definition is for internal use only/ |
boolean |
getIsMultiValued(atg.svc.repository.beans.FieldDefinition pFieldDefinition)
Returns true if the field definition is multi-valued or false if single-valued. |
boolean |
getIsVisible(atg.svc.repository.beans.FieldDefinition pFieldDefinition)
Returns true if the field is visible for the current user. |
void |
setDefaultValues(java.util.List pValues,
atg.svc.repository.beans.FieldDefinition pFieldDefinition)
Sets the default value on a Field Definition. |
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 FieldDefinitionMethods()
Method Detail |
---|
public boolean getIsMultiValued(atg.svc.repository.beans.FieldDefinition pFieldDefinition)
public boolean getIsVisible(atg.svc.repository.beans.FieldDefinition pFieldDefinition)
public boolean getIsExternallyVisibleToEveryone(atg.svc.repository.beans.FieldDefinition pField)
pField
- The field to check.
public boolean getIsExternallyVisibleToSegment(java.lang.String pSegment, atg.svc.repository.beans.FieldDefinition pFieldDefinition)
pSegment
- The segment to search on the externalAudience.pFieldDefinition
- The FieldDefinition to check.
public boolean getIsEditable(atg.svc.repository.beans.FieldDefinition pFieldDefinition)
public boolean getIsInternalOnly(atg.svc.repository.beans.FieldDefinition pFieldDefinition)
pFieldDefinition
- The field definition to check.
public SolutionFieldValue createSolutionFieldValue(atg.svc.repository.beans.FieldDefinition pFieldDefinition) throws javax.ejb.CreateException
pFieldDefinition
- The field metadata to set on the SolutionFieldValue.
javax.ejb.CreateException
public void setDefaultValues(java.util.List pValues, atg.svc.repository.beans.FieldDefinition pFieldDefinition) throws javax.ejb.CreateException, javax.ejb.FinderException, PersistenceException, javax.ejb.RemoveException
pValues
- The new default value to set on the FieldDefinitionpFieldDefinition
- The FieldDefinition to set the new default values on.
javax.ejb.CreateException
- If the create of a DefaultFieldValue object fails.
javax.ejb.FinderException
- If the finder to get the old defaults fails.
PersistenceException
- If the write of a new value fails.
javax.ejb.RemoveException
- If the remove of any existing values fails.public java.util.List getDefaultValues(atg.svc.repository.beans.FieldDefinition pFieldDefinition) throws javax.ejb.FinderException
pFieldDefinition
- The field definition to find the default values for.
javax.ejb.FinderException
- If the finder execution fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |