Java Doc for FxType.java in  » J2EE » fleXive » com » flexive » shared » structure » 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.structure 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.flexive.shared.AbstractSelectableObjectWithLabel
      com.flexive.shared.structure.FxType

All known Subclasses:   com.flexive.shared.structure.FxTypeEdit,  com.flexive.core.structure.FxPreloadType,
FxType
public class FxType extends AbstractSelectableObjectWithLabel implements Serializable,SelectableObjectWithLabel(Code)
Type definition
author:
   Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)


Field Summary
protected  ACLACL
    
final public static  StringCONTACTDATA
    
final public static  StringFOLDER
     Name of the folder data type.
final public static  longROOT_ID
    
protected  List<FxGroupAssignment>assignedGroups
    
protected  List<FxPropertyAssignment>assignedProperties
    
protected  TypeCategorycategory
    
protected  booleancheckValidity
    
protected  List<FxType>derivedTypes
    
protected  FxStringdescription
    
protected  longhistoryAge
    
protected  longid
    
protected  LanguageModelanguage
    
protected  LifeCycleInfolifeCycleInfo
    
protected  intmaxRelDestination
    
protected  intmaxRelSource
    
protected  longmaxVersions
    
protected  TypeModemode
    
protected  Stringname
    
protected  FxTypeparent
    
protected  bytepermissions
    
protected  List<FxTypeRelation>relations
    
protected  Map<FxScriptEvent, long[]>scriptMapping
    
protected  List<FxAssignment>scriptedAssignments
    
protected  TypeStatestate
    
protected  TypeStorageModestorageMode
    
protected  booleantrackHistory
    
protected  List<FxProperty>uniqueProperties
    
protected  Workflowworkflow
    

Constructor Summary
public  FxType(long id, ACL acl, Workflow workflow, String name, FxString description, FxType parent, TypeStorageMode storageMode, TypeCategory category, TypeMode mode, boolean checkValidity, LanguageMode language, TypeState state, byte permissions, boolean trackHistory, long historyAge, long maxVersions, int maxRelSource, int maxRelDestination, LifeCycleInfo lifeCycleInfo, List<FxType> derivedTypes, List<FxTypeRelation> relations)
    

Method Summary
public  FxTypeEditasEditable()
    
public  StringbuildXPathPrefix(FxPK pk)
    
public  FxGroupDatacreateEmptyData(String xpPrefix)
     Create an empty FxData hierarchy for a new FxContent starting with a virtual root group.
public  FxGroupDatacreateRandomData(FxPK pk, FxEnvironment env, Random rnd, int maxMultiplicity)
    
public  ACLgetACL()
    
public  List<FxGroupAssignment>getAssignedGroups()
    
public  List<FxPropertyAssignment>getAssignedProperties()
    
public  FxAssignmentgetAssignment(String parentXPath)
    
public  List<FxPropertyAssignment>getAssignmentsForDataType(FxDataType dataType)
     Get a list of all FxPropertyAssignments connected to this type that are of the given FxDataType .
public  List<FxPropertyAssignment>getAssignmentsForProperty(long propertyId)
    
public  bytegetBitCodedPermissions()
    
public  TypeCategorygetCategory()
    
public  List<FxAssignment>getConnectedAssignments(String parentXPath)
    
public  List<FxType>getDerivedTypes()
    
public  FxStringgetDescription()
    
public  StringgetDisplayName()
     Returrn a localized, human-readable name for the type.
public  FxGroupAssignmentgetGroupAssignment(String parentXPath)
     Get the FxGroupAssignment for the given XPath.
public  longgetHistoryAge()
    
public  longgetId()
    
public  FxStringgetLabel()
    
public  LanguageModegetLanguage()
    
public  LifeCycleInfogetLifeCycleInfo()
    
public  intgetMaxRelDestination()
    
public  intgetMaxRelSource()
    
public  longgetMaxVersions()
    
public  TypeModegetMode()
    
public  StringgetName()
    
public  FxTypegetParent()
    
public  FxPropertyAssignmentgetPropertyAssignment(String parentXPath)
     Get the FxPropertyAssignment for the given XPath.
public  List<FxTypeRelation>getRelations()
    
public  long[]getScriptMapping(FxScriptEvent event)
    
public synchronized  List<FxAssignment>getScriptedAssignments(FxScriptEvent event)
    
public  TypeStategetState()
    
public  TypeStorageModegetStorageMode()
     Get how is data stored internally.
public  List<FxProperty>getUniqueProperties()
    
public  WorkflowgetWorkflow()
    
public  booleanhasScriptMapping(FxScriptEvent event)
    
public  booleanhasScriptedAssignments()
    
public  booleanhasUniqueProperties()
    
public  booleanisCheckValidity()
    
public  booleanisDerived()
    
public  booleanisRelation()
    
public  booleanisTrackHistory()
    
public  booleanisXPathValid(String XPath, boolean checkProperty)
    
public  voidreloadWorkflow(FxEnvironment environment)
    
public  voidresolveReferences(FxEnvironment fxStructure)
    
public  StringtoString()
    
public  booleanuseInstancePermissions()
    
public  booleanusePermissions()
    
public  booleanusePropertyPermissions()
    
public  booleanuseStepPermissions()
    
public  booleanuseTypePermissions()
    

Field Detail
ACL
protected ACL ACL(Code)



CONTACTDATA
final public static String CONTACTDATA(Code)
Name of the account contact data type



FOLDER
final public static String FOLDER(Code)
Name of the folder data type.



ROOT_ID
final public static long ROOT_ID(Code)
Virtual ROOT_ID type



assignedGroups
protected List<FxGroupAssignment> assignedGroups(Code)



assignedProperties
protected List<FxPropertyAssignment> assignedProperties(Code)



category
protected TypeCategory category(Code)



checkValidity
protected boolean checkValidity(Code)



derivedTypes
protected List<FxType> derivedTypes(Code)



description
protected FxString description(Code)



historyAge
protected long historyAge(Code)



id
protected long id(Code)



language
protected LanguageMode language(Code)



lifeCycleInfo
protected LifeCycleInfo lifeCycleInfo(Code)



maxRelDestination
protected int maxRelDestination(Code)



maxRelSource
protected int maxRelSource(Code)



maxVersions
protected long maxVersions(Code)



mode
protected TypeMode mode(Code)



name
protected String name(Code)



parent
protected FxType parent(Code)



permissions
protected byte permissions(Code)



relations
protected List<FxTypeRelation> relations(Code)



scriptMapping
protected Map<FxScriptEvent, long[]> scriptMapping(Code)



scriptedAssignments
protected List<FxAssignment> scriptedAssignments(Code)



state
protected TypeState state(Code)



storageMode
protected TypeStorageMode storageMode(Code)



trackHistory
protected boolean trackHistory(Code)



uniqueProperties
protected List<FxProperty> uniqueProperties(Code)



workflow
protected Workflow workflow(Code)




Constructor Detail
FxType
public FxType(long id, ACL acl, Workflow workflow, String name, FxString description, FxType parent, TypeStorageMode storageMode, TypeCategory category, TypeMode mode, boolean checkValidity, LanguageMode language, TypeState state, byte permissions, boolean trackHistory, long historyAge, long maxVersions, int maxRelSource, int maxRelDestination, LifeCycleInfo lifeCycleInfo, List<FxType> derivedTypes, List<FxTypeRelation> relations)(Code)




Method Detail
asEditable
public FxTypeEdit asEditable()(Code)
Get this FxType as editable FxTypeEdit



buildXPathPrefix
public String buildXPathPrefix(FxPK pk)(Code)
Build an XPath prefix for addressing an instance in XPath's
Parameters:
  pk - primary key of the instance XPath prefix like "FxType name[@pk=..]"



createEmptyData
public FxGroupData createEmptyData(String xpPrefix) throws FxCreateException(Code)
Create an empty FxData hierarchy for a new FxContent starting with a virtual root group.
Parameters:
  xpPrefix - XPath prefix like "FxType name[@pk=..]" empty FxData hierarchy
throws:
  FxCreateException - on errors



createRandomData
public FxGroupData createRandomData(FxPK pk, FxEnvironment env, Random rnd, int maxMultiplicity) throws FxCreateException(Code)
Create a base group with random data
Parameters:
  pk - primary key of instance that uses this random data
Parameters:
  env - environment
Parameters:
  rnd - Random to use
Parameters:
  maxMultiplicity - the maximum multiplicity for groups random data
throws:
  FxCreateException - on errors



getACL
public ACL getACL()(Code)
Get the ACL of this type ACL of this type



getAssignedGroups
public List<FxGroupAssignment> getAssignedGroups()(Code)
Get all group assignments that are attached to the type's root all group assignments that are attached to the type's root



getAssignedProperties
public List<FxPropertyAssignment> getAssignedProperties()(Code)
Get all property assignments that are attached to the type's root all property assignments that are attached to the type's root



getAssignment
public FxAssignment getAssignment(String parentXPath) throws FxInvalidParameterException, FxNotFoundException(Code)
Get the assignment for the given XPath
Parameters:
  parentXPath - desired XPath FxAssignment
throws:
  FxInvalidParameterException - if XPath is not valid
throws:
  FxNotFoundException - XPath not found



getAssignmentsForDataType
public List<FxPropertyAssignment> getAssignmentsForDataType(FxDataType dataType)(Code)
Get a list of all FxPropertyAssignments connected to this type that are of the given FxDataType .
Parameters:
  dataType - the data type list of all FxPropertyAssignments connected to this type that are of the given data type



getAssignmentsForProperty
public List<FxPropertyAssignment> getAssignmentsForProperty(long propertyId)(Code)
Get a list of all FxPropertyAssignments connected to this type that are assigned to the requested property
Parameters:
  propertyId - requested property id list of all FxPropertyAssignments connected to this type that are assigned to the requested property



getBitCodedPermissions
public byte getBitCodedPermissions()(Code)
Get the permissions set for this type bit coded bit coded permissions



getCategory
public TypeCategory getCategory()(Code)
Get the category of this FxType (System, User, ...) the category.



getConnectedAssignments
public List<FxAssignment> getConnectedAssignments(String parentXPath) throws FxInvalidParameterException, FxNotFoundException(Code)
Get all assignments directly connected to the given XPath
Parameters:
  parentXPath - desired XPath ArrayList of FxAssignment
throws:
  FxInvalidParameterException - if XPath is not valid
throws:
  FxNotFoundException - XPath not found



getDerivedTypes
public List<FxType> getDerivedTypes()(Code)
Get all FxTypes that are derived from this Type Iterator of all derived types



getDescription
public FxString getDescription()(Code)
Get the description of this FxType description



getDisplayName
public String getDisplayName()(Code)
Returrn a localized, human-readable name for the type. a localized, human-readable name for the type.



getGroupAssignment
public FxGroupAssignment getGroupAssignment(String parentXPath) throws FxInvalidParameterException, FxNotFoundException(Code)
Get the FxGroupAssignment for the given XPath. This is a convenience method calling internally getAssignment and casting the result to FxGroupAssignment if appropriate, else throws an FxInvalidParameterException if the assignment is a property.
Parameters:
  parentXPath - desired XPath FxAssignment
throws:
  FxInvalidParameterException - if XPath is not valid or a propery
throws:
  FxNotFoundException - XPath not found



getHistoryAge
public long getHistoryAge()(Code)
Get how many days history is tracked (0 = forever) how many days history is tracked (0 = forever)



getId
public long getId()(Code)
Internal id of this FxType the internal id of this FxType



getLabel
public FxString getLabel()(Code)



getLanguage
public LanguageMode getLanguage()(Code)
How are languages handled? (None, Single, Multiple, ...) how languages are handled



getLifeCycleInfo
public LifeCycleInfo getLifeCycleInfo()(Code)
Get information about changes information about changes



getMaxRelDestination
public int getMaxRelDestination()(Code)
How many destination instances may be related to this instance in total? (infinte = <0) how many destination instances may be related to this instance in total? (infinte = <0)



getMaxRelSource
public int getMaxRelSource()(Code)
How many source instances may be related to this instance in total? (infinte = <0) how many source instances may be related to this instance in total? (infinte = <0)



getMaxVersions
public long getMaxVersions()(Code)
Get how many versions of instances are kept (-1 = infinite, 0 = none) how many versions of instances are kept (-1 = infinite, 0 = none)



getMode
public TypeMode getMode()(Code)
Is this FxType defining a content or relation? mode (Content or Relation)



getName
public String getName()(Code)
Get the name of this FxType name



getParent
public FxType getParent()(Code)
If this FxType is derived from another FxType get the 'super' FxType FxType this one is derived from or null



getPropertyAssignment
public FxPropertyAssignment getPropertyAssignment(String parentXPath) throws FxInvalidParameterException, FxNotFoundException(Code)
Get the FxPropertyAssignment for the given XPath. This is a convenience method calling internally getAssignment and casting the result to FxPropertyAssignment if appropriate, else throws an FxInvalidParameterException if the assignment is a group.
Parameters:
  parentXPath - desired XPath FxAssignment
throws:
  FxInvalidParameterException - if XPath is not valid or a group
throws:
  FxNotFoundException - XPath not found



getRelations
public List<FxTypeRelation> getRelations()(Code)
Get all possible relation combinations possible relation combinations



getScriptMapping
public long[] getScriptMapping(FxScriptEvent event)(Code)
Get the script id's that are mapped to this type for the requested script type
Parameters:
  event - requested script event mappings or null if mapping does not exist for this type



getScriptedAssignments
public synchronized List<FxAssignment> getScriptedAssignments(FxScriptEvent event)(Code)
Get a list with all assignments that have scripts assigned for the given script type
Parameters:
  event - script event list with all assignments that have scripts assigned for the given script type



getState
public TypeState getState()(Code)
Get the state of this type TypeState



getStorageMode
public TypeStorageMode getStorageMode()(Code)
Get how is data stored internally. how data is stored internally



getUniqueProperties
public List<FxProperty> getUniqueProperties()(Code)
Get all properties used in this type that have a unique constraint set all properties used in this type that have a unique constraint set



getWorkflow
public Workflow getWorkflow()(Code)
Getter for the assigned Workflow Workflow



hasScriptMapping
public boolean hasScriptMapping(FxScriptEvent event)(Code)
Does this type have mappings for the requested script event type?
Parameters:
  event - requested script event type if mappings exist



hasScriptedAssignments
public boolean hasScriptedAssignments()(Code)
Do scripted assignments exists for this type? if scripted assignments exist for this type



hasUniqueProperties
public boolean hasUniqueProperties()(Code)
Do unique properties for this type exist? if unique properties for this type exist



isCheckValidity
public boolean isCheckValidity()(Code)
Perform validity checks on instances? is validity checks are performed on instances



isDerived
public boolean isDerived()(Code)
Is this FxType derived from another? if this FxType is derived from another
See Also:   FxType.getParent



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



isTrackHistory
public boolean isTrackHistory()(Code)
Track history of changes? if history of changes is tracked



isXPathValid
public boolean isXPathValid(String XPath, boolean checkProperty)(Code)
Check if the given XPath is valid for this content
Parameters:
  XPath - the XPath to check
Parameters:
  checkProperty - should the XPath point to a property? if the XPath is valid or not



reloadWorkflow
public void reloadWorkflow(FxEnvironment environment)(Code)
Reload this types workflow, internal method, called from the StructureLoader upon Workflow changes
Parameters:
  environment - environment with updated workflows



resolveReferences
public void resolveReferences(FxEnvironment fxStructure) throws FxNotFoundException(Code)
Resolve references after initial loading
Parameters:
  fxStructure - structure for references
throws:
  FxNotFoundException - on errors



toString
public String toString()(Code)



useInstancePermissions
public boolean useInstancePermissions()(Code)
Use content instance permissions? if content instance permissions are used



usePermissions
public boolean usePermissions()(Code)
Use permissions at all? if permissions are used at all



usePropertyPermissions
public boolean usePropertyPermissions()(Code)
Use property permissions? if property permissions are used



useStepPermissions
public boolean useStepPermissions()(Code)
Use step permissions? if step permissions are used



useTypePermissions
public boolean useTypePermissions()(Code)
Use type permissions? if type permissions are used



Methods inherited from com.flexive.shared.AbstractSelectableObjectWithLabel
public boolean equals(Object obj)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.