use of javax.faces.model.ListDataModel in project acs-community-packaging by Alfresco.
the class AdminNodeBrowseBean method getStores.
/**
* Gets the list of repository stores
*
* @return stores
*/
public DataModel getStores() {
if (stores == null) {
List<StoreRef> storeRefs = getNodeService().getStores();
stores = new ListDataModel(storeRefs);
}
return stores;
}
use of javax.faces.model.ListDataModel in project acs-community-packaging by Alfresco.
the class AdminNodeBrowseBean method getSourceAssocs.
/**
* Gets the current source associations
*
* @return associations
*/
public DataModel getSourceAssocs() {
if (sourceAssocs == null) {
try {
List<AssociationRef> assocRefs = getNodeService().getSourceAssocs(getNodeRef(), RegexQNamePattern.MATCH_ALL);
sourceAssocs = new ListDataModel(assocRefs);
} catch (UnsupportedOperationException err) {
// some stores do not support associations
}
}
return sourceAssocs;
}
use of javax.faces.model.ListDataModel in project acs-community-packaging by Alfresco.
the class AdminNodeBrowseBean method getChildren.
/**
* Gets the current node children
*
* @return node children
*/
public DataModel getChildren() {
if (children == null) {
List<ChildAssociationRef> assocRefs = getNodeService().getChildAssocs(getNodeRef());
children = new ListDataModel(assocRefs);
}
return children;
}
use of javax.faces.model.ListDataModel in project acs-community-packaging by Alfresco.
the class AdminNodeBrowseBean method getAssocs.
/**
* Gets the current node associations
*
* @return associations
*/
public DataModel getAssocs() {
if (assocs == null) {
try {
List<AssociationRef> assocRefs = getNodeService().getTargetAssocs(getNodeRef(), RegexQNamePattern.MATCH_ALL);
assocs = new ListDataModel(assocRefs);
} catch (UnsupportedOperationException err) {
// some stores do not support associations
}
}
return assocs;
}
use of javax.faces.model.ListDataModel in project acs-community-packaging by Alfresco.
the class SearchProperties method readObject.
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
categoriesDataModel = new ListDataModel();
}
Aggregations