|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.contentmanagement.gcubedocumentlibrary.views.BaseCollectionView<E,P>
E
- the type of GCubeElement
s characterised by the view.P
- the type of the properties of the GCubeElement
s characterised by the view.public abstract class BaseCollectionView<E extends GCubeElement,P extends Property>
Partial implementation of CollectionView
that
act as a wrapper around View
proxies of the View Manager service.
Document views may be created bound to remote views, or else unbound (cf. isBound()
).
Method Summary | |
---|---|
void |
addProperty(javax.xml.namespace.QName name,
java.lang.String value)
Adds a property. |
void |
addProperty(ViewProperty p)
Adds a property to the view. |
long |
cardinality()
Returns the cardinality of the view. |
java.lang.String |
collectionId()
Returns the identifier of target collection of the view. |
void |
delete()
Delete the view and un-publish it. |
java.lang.String |
description()
Returns the description of the view. |
java.lang.String |
id()
Returns the identifier of the view. |
View |
inner()
Returns the untyped proxy of the view. |
boolean |
isBound()
Returns true if this proxy is bound. |
java.util.Calendar |
lastUpdate()
Returns the time in which the view was last updated. |
java.lang.String |
name()
Returns the name of the view. |
java.util.Map<javax.xml.namespace.QName,ViewProperty> |
properties()
Returns the generic properties of the view. |
void |
publish()
Publishes this proxy as a remote view. |
void |
publishAndBroadcast()
Publishes this proxy as a remote view and broadcasts the publication. |
ViewReader |
reader()
Returns a Reader for retrieving the elements of the view. |
GCUBEScope |
scope()
Returns the scope of the view. |
GCUBESecurityManager |
securityManager()
Returns the SecurityManager to use view discovery and view-based access. |
void |
setCollectionId(java.lang.String id)
Sets the identifier of the target collection. |
void |
setDescription(java.lang.String d)
Sets the description of the view. |
void |
setId(java.lang.String id)
Sets the identifier of the view. |
void |
setName(java.lang.String n)
Sets the name of the view. |
java.lang.String |
toString()
|
javax.xml.namespace.QName |
type()
Returns the type of the view. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.gcube.contentmanagement.gcubedocumentlibrary.views.CollectionView |
---|
findSimilar, projection |
Method Detail |
---|
public boolean isBound()
true
if this proxy is bound.
isBound
in interface CollectionView<E extends GCubeElement,P extends Property>
true
if this proxy is bound.public java.lang.String id()
id
in interface CollectionView<E extends GCubeElement,P extends Property>
public void setId(java.lang.String id) throws java.lang.IllegalStateException
id
- the identifier.
java.lang.IllegalStateException
- if the view is already bound to a remote view.public javax.xml.namespace.QName type()
type
in interface CollectionView<E extends GCubeElement,P extends Property>
public void setCollectionId(java.lang.String id)
id
- the identifier.public java.lang.String collectionId()
collectionId
in interface CollectionView<E extends GCubeElement,P extends Property>
public java.lang.String name()
name
in interface CollectionView<E extends GCubeElement,P extends Property>
public void setName(java.lang.String n)
n
- the name.public java.lang.String description()
description
in interface CollectionView<E extends GCubeElement,P extends Property>
public void setDescription(java.lang.String d)
d
- the description.public java.util.Calendar lastUpdate()
lastUpdate
in interface CollectionView<E extends GCubeElement,P extends Property>
public long cardinality()
cardinality
in interface CollectionView<E extends GCubeElement,P extends Property>
public GCUBEScope scope()
scope
in interface CollectionView<E extends GCubeElement,P extends Property>
public GCUBESecurityManager securityManager()
SecurityManager
to use view discovery and view-based access.
securityManager
in interface CollectionView<E extends GCubeElement,P extends Property>
public void publish() throws java.lang.IllegalStateException, GCUBEException, java.lang.Exception
publish
in interface CollectionView<E extends GCubeElement,P extends Property>
java.lang.IllegalStateException
- if the view is bound.
GCUBEException
- if the operation fails due to remote errors.
java.lang.Exception
- if the operation fails due to local errors.public void publishAndBroadcast() throws java.lang.IllegalStateException, GCUBEException, java.lang.Exception
publishAndBroadcast
in interface CollectionView<E extends GCubeElement,P extends Property>
java.lang.IllegalStateException
- if the view is bound.
GCUBEException
- if the operation fails due to remote errors.
java.lang.Exception
- if the operation fails due to local errors.public void delete() throws java.lang.Exception
delete
in interface CollectionView<E extends GCubeElement,P extends Property>
java.lang.IllegalStateException
- if the view is unbound.
java.lang.Exception
- if the operation fails due to local errors.public ViewReader reader() throws java.lang.IllegalStateException, java.lang.Exception
Reader
for retrieving the elements of the view.
reader
in interface CollectionView<E extends GCubeElement,P extends Property>
Reader
.
java.lang.IllegalStateException
- if the view is unbound.
java.lang.Exception
- if the Reader
could not be instantiated.public void addProperty(ViewProperty p)
p
- the property.public void addProperty(javax.xml.namespace.QName name, java.lang.String value)
name
- the property name.value
- the property valuepublic java.util.Map<javax.xml.namespace.QName,ViewProperty> properties()
properties
in interface CollectionView<E extends GCubeElement,P extends Property>
public View inner()
inner
in interface CollectionView<E extends GCubeElement,P extends Property>
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |