use of javax.faces.model.ListDataModel in project acs-community-packaging by Alfresco.
the class CreateCompositeRuleWizard method setupCompositeConditionsMode.
public void setupCompositeConditionsMode() {
this.setAddingCompositeCondition(true);
this.currentCompositeConditionsDataModel = new ListDataModel();
this.currentCompositeConditionPropertiesList = new ArrayList<Map<String, Serializable>>();
}
use of javax.faces.model.ListDataModel in project acs-community-packaging by Alfresco.
the class CreateRuleWizard method readObject.
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
this.allConditionsDataModel = new ListDataModel();
this.allConditionsDataModel.setWrappedData(this.allConditionsPropertiesList);
}
use of javax.faces.model.ListDataModel in project acs-community-packaging by Alfresco.
the class AdminNodeBrowseBean method getAspects.
/**
* Gets the current node aspects
*
* @return node aspects
*/
public DataModel getAspects() {
if (aspects == null) {
List<QName> aspectNames = new ArrayList<QName>(getNodeService().getAspects(getNodeRef()));
aspects = new ListDataModel(aspectNames);
}
return aspects;
}
use of javax.faces.model.ListDataModel in project acs-community-packaging by Alfresco.
the class AdminNodeBrowseBean method getPermissions.
/**
* Gets the current node permissions
*
* @return the permissions
*/
public DataModel getPermissions() {
if (permissions == null) {
AccessStatus readPermissions = this.getPermissionService().hasPermission(nodeRef, PermissionService.READ_PERMISSIONS);
if (readPermissions.equals(AccessStatus.ALLOWED)) {
List<AccessPermission> nodePermissions = new ArrayList<AccessPermission>(getPermissionService().getAllSetPermissions(nodeRef));
permissions = new ListDataModel(nodePermissions);
} else {
List<NoReadPermissionGranted> noReadPermissions = new ArrayList<NoReadPermissionGranted>(1);
noReadPermissions.add(new NoReadPermissionGranted());
permissions = new ListDataModel(noReadPermissions);
}
}
return permissions;
}
use of javax.faces.model.ListDataModel in project acs-community-packaging by Alfresco.
the class AdminNodeBrowseBean method getParents.
/**
* Gets the current node parents
*
* @return node parents
*/
public DataModel getParents() {
if (parents == null) {
List<ChildAssociationRef> parentRefs = getNodeService().getParentAssocs(getNodeRef());
parents = new ListDataModel(parentRefs);
}
return parents;
}
Aggregations