Java Doc for FxContent.java in  » J2EE » fleXive » com » flexive » shared » content » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » fleXive » com.flexive.shared.content 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.flexive.shared.content.FxContent

FxContent
public class FxContent implements Serializable,Cloneable(Code)
A content instance
author:
   Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)


Field Summary
final public static  intPOSITION_BOTTOM
    
final public static  intPOSITION_TOP
    

Constructor Summary
public  FxContent(FxPK pk, long typeId, boolean relation, long mandatorId, long aclId, long stepId, int maxVersion, int liveVersion, boolean active, long mainLanguage, FxPK relatedSource, FxPK relatedDestination, int relatedSourcePosition, int relatedDestinationPosition, LifeCycleInfo lifeCycleInfo, FxGroupData data, long binaryPreviewId, long binaryPreviewACL)
     Constructor
Parameters:
  pk - primary key
Parameters:
  typeId - used type id
Parameters:
  relation - is this a content for a relation?
Parameters:
  mandatorId - mandator id
Parameters:
  aclId - ACL id
Parameters:
  stepId - step id
Parameters:
  maxVersion - max.

Method Summary
public  voidcheckValidity()
     Check if all required properties are present and valid, etc.
public  booleancontainsValue(String XPath)
    
public  FxContentcopy()
    
public  longgetAclId()
    
public  List<String>getAllPropertyXPaths()
    
public  List<String>getAllXPaths(String groupPostfix)
    
public  longgetBinaryPreviewACL()
    
public  longgetBinaryPreviewId()
    
public  List<FxData>getData(String XPath)
    
public  FxGroupDatagetGroupData(String XPath)
    
public  longgetId()
    
public  LifeCycleInfogetLifeCycleInfo()
    
public  intgetLiveVersion()
    
public  longgetMainLanguage()
    
public  longgetMandatorId()
    
public  intgetMaxVersion()
    
public  FxPKgetPk()
    
public  FxPropertyDatagetPropertyData(String XPath)
    
public  List<FxPropertyData>getPropertyData(long propertyId, boolean includeEmpty)
    
public  FxPKgetRelatedDestination()
    
public  intgetRelatedDestinationPosition()
    
public  FxPKgetRelatedSource()
    
public  intgetRelatedSourcePosition()
    
public  FxGroupDatagetRootGroup()
    
public  longgetStepId()
    
public  longgetTypeId()
    
public  FxValuegetValue(String XPath)
     Get the value of a (property) XPath.
public  intgetVersion()
    
public  FxContentinitSystemProperties()
    
public  booleanisActive()
    
public  booleanisLiveVersion()
    
public  booleanisMaxVersion()
    
public  booleanisPreviewAvailable()
    
public  booleanisRelation()
    
public  booleanisXPathValid(String XPath, boolean checkProperty)
     Check if the given XPath is valid for this content.
public  voidloadReferences(ContentEngine ce)
    
public  booleanmatchesPk(FxPK otherPk)
     Checks if the given PK matches this content.
public  voidmove(String XPath, int delta)
     Move data (group or property) within its hierarchy for delta positions up or down depending on the sign of delta without wrapping around if top or bottom position is reached.
public  FxContentrandomize(int maxMultiplicity)
    
public  FxContentrandomize()
    
public  voidremove(String XPath)
    
public  voidresetBinaryPreview()
     Reset the preview image to show the default BinaryDescriptor.SYS_UNKNOWN image.
public  voidresolveBinaryPreview()
     Internal method that tries to find a matching preview image.
public  voidsetAclId(long aclId)
    
public  voidsetActive(boolean active)
    
public  voidsetBinaryPreview(String XPath)
     Set the binary preview to an XPath.
public  voidsetBinaryPreview(long binaryId)
     Set the binary preview.
public  voidsetMainLanguage(long mainLanguage)
    
public  FxContentsetRelatedDestination(FxPK dst)
    
public  voidsetRelatedDestinationPosition(int relatedDestinationPosition)
    
public  FxContentsetRelatedSource(FxPK src)
    
public  voidsetStepId(long stepId)
    
public  voidsetValue(String XPath, FxValue value)
    

Field Detail
POSITION_BOTTOM
final public static int POSITION_BOTTOM(Code)
Bottommost position for relation positioning



POSITION_TOP
final public static int POSITION_TOP(Code)
Topmost position for relation positioning




Constructor Detail
FxContent
public FxContent(FxPK pk, long typeId, boolean relation, long mandatorId, long aclId, long stepId, int maxVersion, int liveVersion, boolean active, long mainLanguage, FxPK relatedSource, FxPK relatedDestination, int relatedSourcePosition, int relatedDestinationPosition, LifeCycleInfo lifeCycleInfo, FxGroupData data, long binaryPreviewId, long binaryPreviewACL)(Code)
Constructor
Parameters:
  pk - primary key
Parameters:
  typeId - used type id
Parameters:
  relation - is this a content for a relation?
Parameters:
  mandatorId - mandator id
Parameters:
  aclId - ACL id
Parameters:
  stepId - step id
Parameters:
  maxVersion - max. version for this instance
Parameters:
  liveVersion - live version for this instance (0=no live version exists)
Parameters:
  active - is this instance active
Parameters:
  mainLanguage - main language
Parameters:
  relatedSource - related source instance (only if this is a relation)
Parameters:
  relatedDestination - related destination instance (only if this is a relation)
Parameters:
  relatedSourcePosition - position for source instance (only if this is a relation)
Parameters:
  relatedDestinationPosition - position for destination instance (only if this is a relation)
Parameters:
  lifeCycleInfo - lifecycle
Parameters:
  data - data
Parameters:
  binaryPreviewId - id of the preview binary
Parameters:
  binaryPreviewACL - id of the ACL of the preview binary




Method Detail
checkValidity
public void checkValidity() throws FxInvalidParameterException(Code)
Check if all required properties are present and valid, etc.
throws:
  FxInvalidParameterException - if required properties are not present or the content is not valid



containsValue
public boolean containsValue(String XPath)(Code)
Check if a value exists for the given XPath that is not empty
Parameters:
  XPath - the XPath to check if a value exists for the given XPath that is not empty



copy
public FxContent copy()(Code)
Create an independent copy of this FxContent a copy of this FxContent



getAclId
public long getAclId()(Code)
Getter for the ACL id ACL id



getAllPropertyXPaths
public List<String> getAllPropertyXPaths()(Code)
Get a list of all property XPaths contained in this content in correct order list of all property XPaths contained in this content in correct order



getAllXPaths
public List<String> getAllXPaths(String groupPostfix)(Code)
Get a list of all XPaths contained in this content in correct order
Parameters:
  groupPostfix - String to append to found groups (useful to append "/" to kind of mark those XPaths as group XPaths) list of all XPaths contained in this content in correct order



getBinaryPreviewACL
public long getBinaryPreviewACL()(Code)
ACL that is needed to view the preview image ACL that is needed to view the preview image



getBinaryPreviewId
public long getBinaryPreviewId()(Code)
Id of the binary used for previews id of the binary used for previews



getData
public List<FxData> getData(String XPath) throws FxInvalidParameterException, FxNotFoundException(Code)
Get all FxData (Group or Property) entries for the given XPath
Parameters:
  XPath - requested XPath FxData elements for the given XPath
throws:
  FxInvalidParameterException - for invalid XPath provided
throws:
  FxNotFoundException - if no match was found



getGroupData
public FxGroupData getGroupData(String XPath) throws FxNotFoundException, FxInvalidParameterException(Code)
Get the FxGroupData entry for the given XPath
Parameters:
  XPath - requested XPath FxGroupData entry for the given XPath
throws:
  FxInvalidParameterException - for invalid XPath provided or XPath is no property
throws:
  FxNotFoundException - if no match was found



getId
public long getId()(Code)
Getter for the Id id



getLifeCycleInfo
public LifeCycleInfo getLifeCycleInfo()(Code)
Get the lifecycle information lifecycle information



getLiveVersion
public int getLiveVersion()(Code)
Get the live version of this content or 0 if no live version exists live version of this content or 0 if no live version exists



getMainLanguage
public long getMainLanguage()(Code)
Get the main language main language



getMandatorId
public long getMandatorId()(Code)
Getter for the mandator id mandator id



getMaxVersion
public int getMaxVersion()(Code)
Get the max version of this content max version of this content



getPk
public FxPK getPk()(Code)
Getter for the primary key primary key



getPropertyData
public FxPropertyData getPropertyData(String XPath) throws FxNotFoundException, FxInvalidParameterException(Code)
Get the FxPropertyData entry for the given XPath
Parameters:
  XPath - requested XPath FxPropertyData entry for the given XPath
throws:
  FxInvalidParameterException - for invalid XPath provided or XPath is no property
throws:
  FxNotFoundException - if no match was found



getPropertyData
public List<FxPropertyData> getPropertyData(long propertyId, boolean includeEmpty)(Code)
Get a list of all FxPropertyData entries that are assigned to propertyId
Parameters:
  propertyId - the property id requested
Parameters:
  includeEmpty - include empty data instances? list of all FxPropertyData entries that are assigned to propertyId



getRelatedDestination
public FxPK getRelatedDestination()(Code)
If this is a relation get the assigned "to" (or destination) instance the assigned "to" (or destination) instance



getRelatedDestinationPosition
public int getRelatedDestinationPosition()(Code)
Get the position for the destination content instance position for the destination content instance



getRelatedSource
public FxPK getRelatedSource()(Code)
If this is a relation get the assigned "from" (or source) instance the assigned "from" (or source) instance



getRelatedSourcePosition
public int getRelatedSourcePosition()(Code)
Get the position for the source content instance position for the source content instance



getRootGroup
public FxGroupData getRootGroup()(Code)
Get the (virtual) root group of this content root group



getStepId
public long getStepId()(Code)
Getter for the step id step id



getTypeId
public long getTypeId()(Code)
Getter for the type id type id



getValue
public FxValue getValue(String XPath) throws FxNotFoundException, FxInvalidParameterException(Code)
Get the value of a (property) XPath. This is actually a convenience method that internally calls getPropertyData(XPath).getValuXDEPTHe()
Parameters:
  XPath - requested XPath FxValue
throws:
  FxNotFoundException - on errors
throws:
  FxInvalidParameterException - on errors
See Also:   FxContent.getPropertyData(String)



getVersion
public int getVersion()(Code)
Getter for the version version



initSystemProperties
public FxContent initSystemProperties() throws FxNotFoundException, FxInvalidParameterException(Code)



isActive
public boolean isActive()(Code)
Is this content active? content is active



isLiveVersion
public boolean isLiveVersion()(Code)
Is this content instance the live version if content instance the live version



isMaxVersion
public boolean isMaxVersion()(Code)
Is this content instance the max version if content instance the max version



isPreviewAvailable
public boolean isPreviewAvailable()(Code)
Is a preview available that is not a default image? preview available



isRelation
public boolean isRelation()(Code)
Is this content a relation? content is relation



isXPathValid
public boolean isXPathValid(String XPath, boolean checkProperty)(Code)
Check if the given XPath is valid for this content. This is a shortcut to the corresponding type's method!
Parameters:
  XPath - the XPath to check
Parameters:
  checkProperty - should the XPath point to a property? if the XPath is valid or not
See Also:   FxType.isXPathValid(Stringboolean)



loadReferences
public void loadReferences(ContentEngine ce) throws FxApplicationException(Code)
Load all FxContent instances from properties of type FxReference
Parameters:
  ce - ContentEngine
throws:
  FxApplicationException - on errors



matchesPk
public boolean matchesPk(FxPK otherPk)(Code)
Checks if the given PK matches this content. This allows to match a generic PK (i.e. without a distinct version, but FxPK.LIVE or FxPK.MAX ), which the FxPK equals method cannot do.
Parameters:
  otherPk - the PK to be matched true if otherPk matches this content



move
public void move(String XPath, int delta) throws FxInvalidParameterException, FxNotFoundException(Code)
Move data (group or property) within its hierarchy for delta positions up or down depending on the sign of delta without wrapping around if top or bottom position is reached. If delta is Integer.MAX_VALUE the data will always be placed at the bottom, Integer.MIN_VALUE will always place it at the top.
Parameters:
  XPath - FQ XPath
Parameters:
  delta - relative number of positions to move
throws:
  FxInvalidParameterException - for invalid XPath
throws:
  FxNotFoundException - XPath does not exist for this content



randomize
public FxContent randomize(int maxMultiplicity) throws FxCreateException, FxNotFoundException, FxInvalidParameterException(Code)
Drop all data and create random entries for testing purposes
Parameters:
  maxMultiplicity - the maximum multiplicity for groups this
throws:
  FxCreateException - on errors
throws:
  FxNotFoundException - on errors
throws:
  FxInvalidParameterException - on errors



randomize
public FxContent randomize() throws FxCreateException, FxNotFoundException, FxInvalidParameterException(Code)



remove
public void remove(String XPath) throws FxInvalidParameterException, FxNotFoundException, FxNoAccessException(Code)
Remove the property or group denoted by XPath
Parameters:
  XPath - the XPath to remove
throws:
  FxInvalidParameterException - if the requested XPath is required and can not be removed
throws:
  FxNotFoundException - if XPath is incorrect
throws:
  FxNoAccessException - if data that is to be removed is readonly or no access



resetBinaryPreview
public void resetBinaryPreview()(Code)
Reset the preview image to show the default BinaryDescriptor.SYS_UNKNOWN image.
See Also:   BinaryDescriptor.SYS_UNKNOWN



resolveBinaryPreview
public void resolveBinaryPreview()(Code)
Internal method that tries to find a matching preview image. Searches for images and then regular binaries (preview is then set matching the mime type display). If neither are found the BinaryDescriptor.SYS_UNKNOWN image is used
See Also:   com.flexive.shared.value.BinaryDescriptor.SYS_UNKNOWN



setAclId
public void setAclId(long aclId)(Code)
Set the ACL id
Parameters:
  aclId - the ACL id



setActive
public void setActive(boolean active)(Code)
(De-)activate this content
Parameters:
  active - active flag



setBinaryPreview
public void setBinaryPreview(String XPath)(Code)
Set the binary preview to an XPath. Illegal or non-existing values will be ignored!
Parameters:
  XPath - the XPath of the requested binary to set as preview



setBinaryPreview
public void setBinaryPreview(long binaryId)(Code)
Set the binary preview. Illegal or non-existing values will be ignored!
Parameters:
  binaryId - if of the requested binary to set as preview



setMainLanguage
public void setMainLanguage(long mainLanguage)(Code)
Set the main language
Parameters:
  mainLanguage - main language



setRelatedDestination
public FxContent setRelatedDestination(FxPK dst)(Code)
Set the primary key of the destination relation
Parameters:
  dst - destination relation this



setRelatedDestinationPosition
public void setRelatedDestinationPosition(int relatedDestinationPosition)(Code)



setRelatedSource
public FxContent setRelatedSource(FxPK src)(Code)
Set the primary key of the source relation
Parameters:
  src - source relation this



setStepId
public void setStepId(long stepId)(Code)
Set the workflow step id
Parameters:
  stepId - workflow step id



setValue
public void setValue(String XPath, FxValue value) throws FxNotFoundException, FxInvalidParameterException, FxNoAccessException, FxCreateException(Code)
Set a properties value, needed groups will be created
Parameters:
  XPath - FQ XPath
Parameters:
  value - value to apply
throws:
  FxNotFoundException - if the requested XPath does not exist
throws:
  FxInvalidParameterException - if the request XPath is invalid
throws:
  FxNoAccessException - if the property for this XPath is marked readonly or no access
throws:
  FxCreateException - if missing XPath entries failed to be created



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.