public final class CmsRelationFilter
extends java.lang.Object
implements java.lang.Cloneable
限定符和类型 | 字段和说明 |
---|---|
static CmsRelationFilter |
ALL
To filter all sources and targets.
|
static CmsRelationFilter |
SOURCES
To filter all sources.
|
static CmsRelationFilter |
TARGETS
To filter all targets.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
CmsRelationFilter |
filterDefinedInContent()
Returns an extended filter with defined in content type restriction.
|
CmsRelationFilter |
filterIncludeChildren()
Returns an extended filter that will extend the result to the given path and all its subresources.
|
CmsRelationFilter |
filterInternal()
Returns an extended filter with internal type restriction.
|
CmsRelationFilter |
filterNotDefinedInContent()
Returns an extended filter with not defined in content type restriction.
|
CmsRelationFilter |
filterPath(java.lang.String path)
Returns an extended filter with the given source relation path restriction.
|
CmsRelationFilter |
filterResource(CmsResource resource)
Returns an extended filter with the given resource (path and id) restriction.
|
CmsRelationFilter |
filterStrong()
Returns an extended filter with strong type restriction.
|
CmsRelationFilter |
filterStructureId(CmsUUID structureId)
Returns an extended filter with the given structure id restriction.
|
CmsRelationFilter |
filterType(CmsRelationType type)
Returns an extended filter with the given type restriction.
|
CmsRelationFilter |
filterUserDefined()
Returns an extended filter with user defined type restriction.
|
CmsRelationFilter |
filterWeak()
Returns an extended filter with weak type restriction.
|
java.lang.String |
getPath()
Returns the source relation path restriction.
|
CmsUUID |
getStructureId()
Returns the structure Id of the resource to filter.
|
java.util.Set<CmsRelationType> |
getTypes()
Returns the types to filter.
|
boolean |
includesDefinedInContent()
Checks if this filter includes relations defined in the content.
|
boolean |
isIncludeSubresources()
Returns the include subresources flag.
|
boolean |
isSource()
Returns the source flag.
|
boolean |
isTarget()
Returns the target flag.
|
boolean |
matchType(CmsRelationType type)
Returns
true if the given relation type matches this filter. |
static CmsRelationFilter |
relationsFromStructureId(CmsUUID structureId)
Utility method which prepares a filter for relations which point *from* a given structure id.
|
static CmsRelationFilter |
relationsToStructureId(CmsUUID structureId)
Utility method which prepares a filter for relations which point *to* a given structure id.
|
java.lang.String |
toString() |
public static final CmsRelationFilter ALL
public static final CmsRelationFilter SOURCES
public static final CmsRelationFilter TARGETS
public static CmsRelationFilter relationsFromStructureId(CmsUUID structureId)
structureId
- the structure idpublic static CmsRelationFilter relationsToStructureId(CmsUUID structureId)
structureId
- the structure idpublic java.lang.Object clone()
clone
在类中 java.lang.Object
Object.clone()
public CmsRelationFilter filterDefinedInContent()
public CmsRelationFilter filterIncludeChildren()
public CmsRelationFilter filterInternal()
public CmsRelationFilter filterNotDefinedInContent()
public CmsRelationFilter filterPath(java.lang.String path)
path
- the source relation path to filterpublic CmsRelationFilter filterResource(CmsResource resource)
resource
- the resource to filterpublic CmsRelationFilter filterStrong()
public CmsRelationFilter filterStructureId(CmsUUID structureId)
structureId
- the structure id to filterpublic CmsRelationFilter filterType(CmsRelationType type)
type
- the relation type to filterpublic CmsRelationFilter filterUserDefined()
public CmsRelationFilter filterWeak()
public java.lang.String getPath()
public CmsUUID getStructureId()
public java.util.Set<CmsRelationType> getTypes()
public boolean includesDefinedInContent()
true
if this filter includes relations defined in the contentpublic boolean isIncludeSubresources()
public boolean isSource()
public boolean isTarget()
public boolean matchType(CmsRelationType type)
true
if the given relation type matches this filter.type
- the relation type to testpublic java.lang.String toString()
toString
在类中 java.lang.Object
Object.toString()