use of javax.faces.model.ListDataModel in project acs-community-packaging by Alfresco.
the class AdminNodeBrowseBean method getStorePermissionMasks.
/**
* Gets the current node permissions
*
* @return the permissions
*/
public DataModel getStorePermissionMasks() {
if (permissionMasks == null) {
List<NoStoreMask> noReadPermissions = new ArrayList<NoStoreMask>(1);
noReadPermissions.add(new NoStoreMask());
permissionMasks = new ListDataModel(noReadPermissions);
}
return permissionMasks;
}
use of javax.faces.model.ListDataModel in project acs-community-packaging by Alfresco.
the class AdminNodeBrowseBean method getProperties.
/**
* Gets the current node properties
*
* @return properties
*/
public DataModel getProperties() {
if (properties == null) {
Map<QName, Serializable> propertyValues = getNodeService().getProperties(getNodeRef());
List<Property> nodeProperties = new ArrayList<Property>(propertyValues.size());
for (Map.Entry<QName, Serializable> property : propertyValues.entrySet()) {
nodeProperties.add(new Property(property.getKey(), property.getValue()));
}
properties = new ListDataModel(nodeProperties);
}
return properties;
}
use of javax.faces.model.ListDataModel in project acs-community-packaging by Alfresco.
the class BaseInviteUsersWizard method readObject.
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
this.userRolesDataModel = new ListDataModel();
this.userRolesDataModel.setWrappedData(this.userGroupRoles);
}
use of javax.faces.model.ListDataModel in project acs-community-packaging by Alfresco.
the class NewEditionWizard method getDataModel.
/**
* Util metho which construct a data model with rows passed in parameter
*/
private DataModel getDataModel(Object rows) {
DataModel translationDataModel = new ListDataModel();
translationDataModel.setWrappedData(rows);
return translationDataModel;
}
Aggregations