final List<String> moveContainersPermissions;
public PageState(Page page) {
Attributes attrs = page.getAttributes();
Described described = page.adapt(Described.class);
//
List<String> accessPermissions = Collections.emptyList();
String editPermission = null;
if (page.isAdapted(ProtectedResource.class)) {
ProtectedResource pr = page.adapt(ProtectedResource.class);
accessPermissions = pr.getAccessPermissions();
editPermission = pr.getEditPermission();
}
//
this.factoryId = attrs.getValue(MappedAttributes.FACTORY_ID);
this.displayName = described.getName();
this.description = described.getDescription();
this.accessPermissions = Utils.safeImmutableList(accessPermissions);
this.editPermission = editPermission;
this.showMaxWindow = attrs.getValue(MappedAttributes.SHOW_MAX_WINDOW, false);
if (page.isAdapted(ProtectedContainer.class)) {