com.dotmarketing.portlets.structure.factories
Class RelationshipFactory
java.lang.Object
com.dotmarketing.portlets.structure.factories.RelationshipFactory
public class RelationshipFactory
- extends java.lang.Object
|
Method Summary |
static void |
deleteRelationship(long inode)
|
static void |
deleteRelationship(Relationship relationship)
|
static java.util.List<Contentlet> |
getAllRelationshipRecords(Relationship relationship,
Contentlet contentlet)
|
static java.util.List<Contentlet> |
getAllRelationshipRecords(Relationship relationship,
Contentlet contentlet,
boolean hasParent)
|
static java.util.List<Contentlet> |
getAllRelationshipRecords(Relationship relationship,
Contentlet contentlet,
boolean hasParent,
boolean live,
java.lang.String orderBy)
|
static java.util.List<Contentlet> |
getAllRelationshipRecords(Relationship relationship,
Contentlet contentlet,
boolean hasParent,
java.lang.String orderBy)
|
static java.util.List<Contentlet> |
getAllRelationshipRecordsByCondition(Relationship relationship,
Contentlet contentlet,
boolean hasParent,
boolean live,
java.lang.String condition)
|
static java.util.List<Relationship> |
getAllRelationships()
|
static java.util.List<Relationship> |
getAllRelationshipsByStructure(Structure st)
|
static java.util.List<Relationship> |
getAllRelationshipsByStructure(Structure st,
boolean hasParent)
|
static java.util.List<Tree> |
getAllRelationshipTrees(Relationship relationship,
Contentlet contentlet,
boolean hasParent)
|
static java.util.List<Contentlet> |
getRelatedContentByChild(long childInode,
java.lang.String relationType,
java.lang.String condition,
java.lang.String orderBy)
|
static java.util.List<Contentlet> |
getRelatedContentByParent(long parentInode,
java.lang.String relationType,
java.lang.String condition,
java.lang.String orderBy)
|
static Relationship |
getRelationshipByInode(long inode)
|
static Relationship |
getRelationshipByInode(java.lang.String inode)
|
static Relationship |
getRelationshipByRelationTypeValue(java.lang.String typeValue)
|
static java.util.List<Relationship> |
getRelationships(java.lang.String orderBy)
|
static boolean |
isASibblingRelationship(Relationship rel,
Structure st)
|
static boolean |
isChildOfTheRelationship(Relationship rel,
Structure st)
|
static boolean |
isParentOfTheRelationship(Relationship rel,
Structure st)
|
static void |
saveRelationship(Relationship relationship)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RelationshipFactory
public RelationshipFactory()
getRelationshipByInode
public static Relationship getRelationshipByInode(long inode)
getRelationshipByInode
public static Relationship getRelationshipByInode(java.lang.String inode)
getAllRelationships
public static java.util.List<Relationship> getAllRelationships()
getRelationships
public static java.util.List<Relationship> getRelationships(java.lang.String orderBy)
getRelationshipByRelationTypeValue
public static Relationship getRelationshipByRelationTypeValue(java.lang.String typeValue)
getAllRelationshipsByStructure
public static java.util.List<Relationship> getAllRelationshipsByStructure(Structure st)
getAllRelationshipsByStructure
public static java.util.List<Relationship> getAllRelationshipsByStructure(Structure st,
boolean hasParent)
getAllRelationshipRecords
public static java.util.List<Contentlet> getAllRelationshipRecords(Relationship relationship,
Contentlet contentlet)
getAllRelationshipRecords
public static java.util.List<Contentlet> getAllRelationshipRecords(Relationship relationship,
Contentlet contentlet,
boolean hasParent)
getAllRelationshipRecords
public static java.util.List<Contentlet> getAllRelationshipRecords(Relationship relationship,
Contentlet contentlet,
boolean hasParent,
java.lang.String orderBy)
getAllRelationshipRecordsByCondition
public static java.util.List<Contentlet> getAllRelationshipRecordsByCondition(Relationship relationship,
Contentlet contentlet,
boolean hasParent,
boolean live,
java.lang.String condition)
getAllRelationshipTrees
public static java.util.List<Tree> getAllRelationshipTrees(Relationship relationship,
Contentlet contentlet,
boolean hasParent)
getAllRelationshipRecords
public static java.util.List<Contentlet> getAllRelationshipRecords(Relationship relationship,
Contentlet contentlet,
boolean hasParent,
boolean live,
java.lang.String orderBy)
isParentOfTheRelationship
public static boolean isParentOfTheRelationship(Relationship rel,
Structure st)
isChildOfTheRelationship
public static boolean isChildOfTheRelationship(Relationship rel,
Structure st)
isASibblingRelationship
public static boolean isASibblingRelationship(Relationship rel,
Structure st)
saveRelationship
public static void saveRelationship(Relationship relationship)
deleteRelationship
public static void deleteRelationship(long inode)
deleteRelationship
public static void deleteRelationship(Relationship relationship)
getRelatedContentByParent
public static java.util.List<Contentlet> getRelatedContentByParent(long parentInode,
java.lang.String relationType,
java.lang.String condition,
java.lang.String orderBy)
getRelatedContentByChild
public static java.util.List<Contentlet> getRelatedContentByChild(long childInode,
java.lang.String relationType,
java.lang.String condition,
java.lang.String orderBy)
Copyright © 2006 Dotmarketing, Inc. All Rights Reserved.